summaryrefslogtreecommitdiff
path: root/Documentation
AgeCommit message (Collapse)Author
2015-12-26dtb, i2c-imx.txt: fix typosMax Krummenacher
(cherry picked from commit 602505a35f2bf10963bb1f97adeaeb66e610de24)
2015-12-26extcon: usb-gpio: Introduce gpio usb extcon driverRoger Quadros
This driver observes the USB ID pin connected over a GPIO and updates the USB cable extcon states accordingly. The existing GPIO extcon driver is not suitable for this purpose as it needs to be taught to understand USB cable states and it can't handle more than one cable per instance. For the USB case we need to handle 2 cable states. 1) USB (attach/detach) 2) USB-HOST (attach/detach) This driver can be easily updated in the future to handle VBUS events in case it happens to be available on GPIO for any platform. Signed-off-by: Roger Quadros <rogerq@ti.com> Reviewed-by: Felipe Balbi <balbi@ti.com> Acked-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> (cherry picked from commit e52817faae359ce95c93c2b6eb88b16d4b430181)
2015-12-26of: Make device nodes kobjects so they show up in sysfsGrant Likely
Device tree nodes are already treated as objects, and we already want to expose them to userspace which is done using the /proc filesystem today. Right now the kernel has to do a lot of work to keep the /proc view in sync with the in-kernel representation. If device_nodes are switched to be kobjects then the device tree code can be a whole lot simpler. It also turns out that switching to using /sysfs from /proc results in smaller code and data size, and the userspace ABI won't change if /proc/device-tree symlinks to /sys/firmware/devicetree/base. v7: Add missing sysfs_bin_attr_init() v6: Add __of_add_property() early init fixes from Pantelis v5: Rename firmware/ofw to firmware/devicetree Fix updating property values in sysfs v4: Fixed build error on Powerpc Fixed handling of dynamic nodes on powerpc v3: Fixed handling of duplicate attribute and child node names v2: switch to using sysfs bin_attributes which solve the problem of reporting incorrect property size. Signed-off-by: Grant Likely <grant.likely@secretlab.ca> Tested-by: Sascha Hauer <s.hauer@pengutronix.de> Cc: Rob Herring <rob.herring@calxeda.com> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: David S. Miller <davem@davemloft.net> Cc: Nathan Fontenot <nfont@linux.vnet.ibm.com> Cc: Pantelis Antoniou <panto@antoniou-consulting.com> (cherry picked from commit 75b57ecf9d1d1e17d099ab13b8f48e6e038676be)
2015-12-26gpio / ACPI: Add support for _DSD device propertiesMika Westerberg
With release of ACPI 5.1 and _DSD method we can finally name GPIOs (and other things as well) returned by _CRS. Previously we were only able to use integer index to find the corresponding GPIO, which is pretty error prone if the order changes. With _DSD we can now query GPIOs using name instead of an integer index, like the below example shows: // Bluetooth device with reset and shutdown GPIOs Device (BTH) { Name (_HID, ...) Name (_CRS, ResourceTemplate () { GpioIo (Exclusive, PullUp, 0, 0, IoRestrictionInputOnly, "\\_SB.GPO0", 0, ResourceConsumer) {15} GpioIo (Exclusive, PullUp, 0, 0, IoRestrictionInputOnly, "\\_SB.GPO0", 0, ResourceConsumer) {27, 31} }) Name (_DSD, Package () { ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), Package () { Package () {"reset-gpio", Package() {^BTH, 1, 1, 0 }}, Package () {"shutdown-gpio", Package() {^BTH, 0, 0, 0 }}, } }) } The format of the supported GPIO property is: Package () { "name", Package () { ref, index, pin, active_low }} ref - The device that has _CRS containing GpioIo()/GpioInt() resources, typically this is the device itself (BTH in our case). index - Index of the GpioIo()/GpioInt() resource in _CRS starting from zero. pin - Pin in the GpioIo()/GpioInt() resource. Typically this is zero. active_low - If 1 the GPIO is marked as active_low. Since ACPI GpioIo() resource does not have field saying whether it is active low or high, the "active_low" argument can be used here. Setting it to 1 marks the GPIO as active low. In our Bluetooth example the "reset-gpio" refers to the second GpioIo() resource, second pin in that resource with the GPIO number of 31. This patch implements necessary support to gpiolib for extracting GPIOs using _DSD device properties. Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Grant Likely <grant.likely@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> (cherry picked from commit 0d9a693cc8619b28f0eeb689a554647d42848fde)
2015-12-26gpio: add flags argument to gpiod_get*() functionsAlexandre Courbot
The huge majority of GPIOs have their direction and initial value set right after being obtained by one of the gpiod_get() functions. The integer GPIO API had gpio_request_one() that took a convenience flags parameter allowing to specify an direction and value applied to the returned GPIO. This feature greatly simplifies client code and ensures errors are always handled properly. A similar feature has been requested for the gpiod API. Since setting the direction of a GPIO is so often the very next action done after obtaining its descriptor, we prefer to extend the existing functions instead of introducing new functions that would raise the number of gpiod getters to 16 (!). The drawback of this approach is that all gpiod clients need to be updated. To limit the pain, temporary macros are introduced that allow gpiod_get*() to be called with or without the extra flags argument. They will be removed once all consumer code has been updated. Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Reviewed-by: Mark Brown <broonie@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> (cherry picked from commit 39b2bbe3d715cf5013b5c48695ccdd25bd3bf120)
2015-12-26gpio: Add helpers for optional GPIOsThierry Reding
Introduce gpiod_get_optional() and gpiod_get_index_optional() helpers that make it easier for drivers to handle optional GPIOs. Currently in order to handle optional GPIOs, a driver needs to special case error handling for -ENOENT, such as this: gpio = gpiod_get(dev, "foo"); if (IS_ERR(gpio)) { if (PTR_ERR(gpio) != -ENOENT) return PTR_ERR(gpio); gpio = NULL; } if (gpio) { /* set up GPIO */ } With these new helpers the above is reduced to: gpio = gpiod_get_optional(dev, "foo"); if (IS_ERR(gpio)) return PTR_ERR(gpio); if (gpio) { /* set up GPIO */ } While at it, device-managed variants of these functions are also provided. Signed-off-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> (cherry picked from commit 29a1f2333e07bbbecb920cc78fd035fe8f53207a)
2015-12-26i2c-imx: add gpio recovery functionalityMax Krummenacher
If the I2C is disturbed by other signals sometimes the i2c-imx bus gets stuck with SDA being low. This adds a recovery function to the bus driver. When e.g. a device driver detects a stuck bus int i2c_recover_bus(struct i2c_adapter *adap) can be called to try to recover the bus. (cherry picked from commit 88731dc0e8b6ba244e097b412b302acf3b9cc889) Conflicts: arch/arm/boot/dts/imx6qdl-apalis.dtsi drivers/i2c/busses/i2c-imx.c
2015-12-26stmpe-adc: add device tree bindingsMax Krummenacher
2015-09-17MLK-11550-1: regulator: pfuze100: restore some registers after LPSR for ↵Robin Gong
pfuze3000 Some registers on pfuze3000 will lost after exit from LPSR, need restore them, otherwise system may reboot with below command after system enter LPSR one time: root@imx7d_all:~# echo enabled > /sys/class/tty/ttymxc0/power/wakeup root@imx7d_all:~# echo mem > /sys/power/state because LDOGCTL not recover as 1. Add 'fsl,lpsr-mode' property to this case, please add this property if your board support LPSR mode as imx7d-12x12-lpddr3-arm2 board. Signed-off-by: Robin Gong <b38343@freescale.com>
2015-09-17MLK-11360-02 input: keyboard: snvs_pwrkey: add clock managementFugang Duan
Add snvs HP/LP clock management for the driver. Signed-off-by: Fugang Duan <B38611@freescale.com>
2015-09-17MLK-11360-01 crypto: caam_snvs: add snvs clock managementFugang Duan
caam_snvs driver involves snvs HP registers access that needs to enable snvs clock source. The patch add the clock management. Signed-off-by: Fugang Duan <B38611@freescale.com>
2015-09-17MLK-11319-2 doc: usb: ci-hdrc-imx: rename imx6_usb_charger_detectionLi Jun
Rename imx6_usb_charger_detection to be imx_usb_charger_detection to cover both imx6 and imx7. Acked-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Li Jun <jun.li@freescale.com>
2015-09-17MLK-11123-32 Documentation: usb: chipidea: update for otg testsLi Jun
After introduce otg features in dts, and remove hnp_enable, we should update otg test document for how to enable HNP, SRP and ADP. Signed-off-by: Li Jun <jun.li@freescale.com>
2015-09-17MLK-11123-6 doc: dt-binding: usb: add otg related propertiesLi Jun
Add otg version, srp, hnp and adp support for usb OTG port, then those OTG features don't have to be decided by usb gadget drivers. Signed-off-by: Li Jun <jun.li@freescale.com>
2015-09-17MLK-11179 ASoC: fsl: implement specify audio DMA buffer size from devicetreeZidan Wang
If the property "fsl,dma-buffer-size" is present, using the specified buffer size. Otherwise, using the default audio buffer size. Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
2015-09-17MLK-11005-6 Documentation: usb: chipidea: add usb OTG ADP testLi Jun
Add how to enable USB OTG ADP feature and test sequence. Signed-off-by: Li Jun <jun.li@freescale.com>
2015-09-17MLK-11005-5: dt-binding: usb: add usb otg ADP propertyLi Jun
Add adp-support property for USB OTG port. Signed-off-by: Li Jun <jun.li@freescale.com>
2015-09-17MLK-10912-1 input: touchscreen: add imx6ul_tsc driver supportHaibo Chen
Freescale i.MX6UL contains a internal touchscreen controller, this patch add a driver to support this controller. Signed-off-by: Haibo Chen <haibo.chen@freescale.com>
2015-09-17MLK-10930-1 doc: usb: ci-hdrc-imx: add phy-clkgate-delay-us propertyLi Jun
It's optional, for delay time between putting phy into low power mode and turn off PHY clock. Signed-off-by: Li Jun <jun.li@freescale.com>
2015-09-17MLK-10939-01 net: fec: add stop mode support for dts register setFugang Duan
The current driver support stop mode by calling machine api. The patch add dts support to set gpr register for stop request. After magic pattern comming during system suspend status, system will be waked up, and irq handler will be running, there have enet register access. Since all clocks are disabled in suspend, and clocks are enabled after resume function. But irq handler run before resume function. For imx7d chip, access register need some clocks enabled, otherwise system hang. So the patch also disable wake up irq in the suspend, after resume back enable the irq, which can avoid system hang issue. Signed-off-by: Fugang Duan <B38611@freescale.com>
2015-09-17MLK-10788-1 ARM: dts: imx: rename busfreq compatible stringAnson Huang
Rename busfreq compatible string name from "fsl,imx6_busfreq to "fsl,imx_busfreq". Signed-off-by: Anson Huang <b20788@freescale.com>
2015-09-17MLK-10783-7 doc: dt-binding: mxs-phy: add compatible string "fsl,imx6ul-usbphy"Peter Chen
add compatible string "fsl,imx6ul-usbphy" Signed-off-by: Peter Chen <peter.chen@freescale.com>
2015-09-17MLK-10783-6 doc: dt-binding: usbmisc_imx: add compatible string ↵Peter Chen
"fsl,imx6ul-usbmisc" Add compatible string "fsl,imx6ul-usbmisc" Signed-off-by: Peter Chen <peter.chen@freescale.com>
2015-09-17MLK-10724-2 pinctrl: imx: add i.mx6ul pinctrl driverAnson Huang
Add i.MX6UL pinctrl driver support. Signed-off-by: Anson Huang <b20788@freescale.com>
2015-09-17MLK-10629-2 mmc: sdhci-esdhc-imx: implement wifi_card_detect functionDong Aisheng
WiFi driver could call wifi_card_detect function to re-detect card, this is required by some special WiFi cards like broadcom WiFi. To use this function, a new property is introduced to indicate a wifi host. Signed-off-by: Dong Aisheng <b29396@freescale.com>
2015-09-17MLK-10449-2: Document: Add registers-default property for 74x164Sandor Yu
Add new property registers-default to gpio-74x164. Signed-off-by: Sandor Yu <R01008@freescale.com>
2015-09-17MLK-10015-2 Documentation: usb: chipidea: update for hnp_enable usageLi Jun
Add documentation for how to use hnp_enable input file to enable or disable full OTG HNP function in runtime. Acked-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Li Jun <jun.li@freescale.com> (cherry picked from commit cd7a4868a63297e11a699b5f96f118df2bc9f437)
2015-09-17MLK-10237-4 mmc: sdhci-esdhc-imx: add tuning-step setting supportHaibo Chen
tuning-step is the delay cell steps in tuning procedure. This patch add the tuning-step setting in driver, so that user can set the tuning-step value in dts. e.g. tuning-step = <2>; this example set the tuning-step as value 2. This patch also set the tuning-step of i.MX7D as 2, so that the tuning procedure can execute successfully. Signed-off-by: Haibo Chen <haibo.chen@freescale.com>
2015-09-17MLK-10282-2 doc: add imx7d to usbmisc-imx binding docPeter Chen
Add imx7d to usbmisc-imx binding doc Signed-off-by: Peter Chen <peter.chen@freescale.com>
2015-09-17MLK-10244-6 regulator: pfuze100-regulator: add pfuze3000 supportRobin Gong
Add pfuze3000 chip support. Signed-off-by: Robin Gong <b38343@freescale.com> (cherry picked from commit e874ae660887ea364d332b84eda45eb7c73da323)
2015-09-17PM / Domains: Add generic OF-based PM domain look-upTomasz Figa
This patch introduces generic code to perform PM domain look-up using device tree and automatically bind devices to their PM domains. Generic device tree bindings are introduced to specify PM domains of devices in their device tree nodes. Backwards compatibility with legacy Samsung-specific PM domain bindings is provided, but for now the new code is not compiled when CONFIG_ARCH_EXYNOS is selected to avoid collision with legacy code. This will change as soon as the Exynos PM domain code gets converted to use the generic framework in further patch. This patch was originally submitted by Tomasz Figa when he was employed by Samsung. Link: http://marc.info/?l=linux-pm&m=139955349702152&w=2 Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Acked-by: Rob Herring <robh@kernel.org> Tested-by: Philipp Zabel <p.zabel@pengutronix.de> Reviewed-by: Kevin Hilman <khilman@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> (cherry picked from commit aa42240ab2544a8bcb2efb400193826f57f3175e)
2015-09-17PM / domains: Add pd_ignore_unused to keep power domains enabledTushar Behera
Keep all power-domains already enabled by bootloader on, even if no driver has claimed them. This is useful for debug and development, but should not be needed on a platform with proper driver support. Signed-off-by: Tushar Behera <tushar.behera@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> (cherry picked from commit 39ac5ba51b69a77a30d2e783aed02ec73c9f6d70)
2015-09-17MLK-10238-1: Revert "base: power: Add generic OF-based power domain look-up"Robin Gong
This reverts commit 4aa055cb0634bc8d0389070104fe6aa7cfa99b8c. Signed-off-by: Robin Gong <b38343@freescale.com>
2015-09-17MLK-10202-2 doc: usb: mxs-phy: add tx-d-cal propertyPeter Chen
Add tx-d-cal property Signed-off-by: Peter Chen <peter.chen@freescale.com>
2015-09-17clocksource: arch_timer: Allow the device tree to specify uninitialized ↵Doug Anderson
timer registers Some 32-bit (ARMv7) systems are architected like this: * The firmware doesn't know and doesn't care about hypervisor mode and we don't want to add the complexity of hypervisor there. * The firmware isn't involved in SMP bringup or resume. * The ARCH timer come up with an uninitialized offset (CNTVOFF) between the virtual and physical counters. Each core gets a different random offset. * The device boots in "Secure SVC" mode. * Nothing has touched the reset value of CNTHCTL.PL1PCEN or CNTHCTL.PL1PCTEN (both default to 1 at reset) On systems like the above, it doesn't make sense to use the virtual counter. There's nobody managing the offset and each time a core goes down and comes back up it will get reinitialized to some other random value. This adds an optional property which can inform the kernel of this situation, and firmware is free to remove the property if it is going to initialize the CNTVOFF registers when each CPU comes out of reset. Currently, the best course of action in this case is to use the physical timer, which is why it is important that CNTHCTL hasn't been changed from its reset value and it's a reasonable assumption given that the firmware has never entered HYP mode. Note that it's been said that on ARMv8 systems the firmware and kernel really can't be architected as described above. That means using the physical timer like this really only makes sense for ARMv7 systems. Signed-off-by: Doug Anderson <dianders@chromium.org> Signed-off-by: Sonny Rao <sonnyrao@chromium.org> Reviewed-by: Mark Rutland <mark.rutland@arm.com> Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org> Acked-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Olof Johansson <olof@lixom.net>
2015-09-17clocksource: arch_arm_timer: Fix age-old arch timer C3STOP detection issueLorenzo Pieralisi
ARM arch timers are tightly coupled with the CPU logic and lose context on platform implementing HW power management when cores are powered down at run-time. Marking the arch timers as C3STOP regardless of power management capabilities causes issues on platforms with no power management, since in that case the arch timers cannot possibly enter states where the timer loses context at runtime and therefore can always be used as a high resolution clockevent device. In order to fix the C3STOP issue in a way compliant with how real HW works, this patch adds a boolean property to the arch timer bindings to define if the arch timer is managed by an always-on power domain. This power domain is present on all ARM platforms to date, and manages HW that must not be turned off, whatever the state of other HW components (eg power controller). On platforms with no power management capabilities, it is the only power domain present, which encompasses and manages power supply for all HW components in the system. If the timer is powered by the always-on power domain, the always-on property must be present in the bindings which means that the timer cannot be shutdown at runtime, so it is not a C3STOP clockevent device. If the timer binding does not contain the always-on property, the timer is assumed to be power-gateable, hence it must be defined as a C3STOP clockevent device. Cc: Daniel Lezcano <daniel.lezcano@linaro.org> Cc: Magnus Damm <damm@opensource.se> Cc: Marc Carino <marc.ceeeee@gmail.com> Cc: Mark Rutland <mark.rutland@arm.com> Acked-by: Marc Zyngier <marc.zyngier@arm.com> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2015-09-17MLK-10196-2 doc: anatop-regulator: add anatop-enable-bit propertyPeter Chen
It is optional, and only for 3p0, 2p5, and 1p1. Signed-off-by: Peter Chen <peter.chen@freescale.com>
2015-09-17MLK-9618-1 doc: usb: chipidea: select gadget drivers for otg compliance testLi Jun
This patch adds guide for selecting available gadget drivers for otg and EH compliance tests. Acked-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Li Jun <b47624@freescale.com> (cherry picked from commit 520cac9e4fe938887dd45b5b4df6c8e35e125a59)
2015-09-17MLK-10086-1 usb: doc: ci-hdrc-imx: update for hsic controllerLi Jun
Update for HSIC controller Signed-off-by: Peter Chen <peter.chen@freescale.com>
2015-09-17ENGR00319720-9 Documentation: usb: chipidea: Update test procedure for HNP ↵Li Jun
polling support Update HNP test procedure as HNP polling is supported. Signed-off-by: Li Jun <b47624@freescale.com>
2015-09-17MLK-9975-1 doc: flexcan: add trx_wakeup_gpio optional propertyDong Aisheng
This property is used to wakeup transceiver if it's in sleep mode. Signed-off-by: Dong Aisheng <b29396@freescale.com> (cherry picked from commit 9fa3b150ae0c4249ca1b6a7aba57d844540aa383) (cherry picked from commit b492b7ca89bf8826a3cd5b2513b3235be63101d8)
2015-09-17ASoC: fsl-sai: using 'lsb-first' property instead of 'big-endian-data'.Xiubo Li
The 'big-endian-data' property is originally used to indicate whether the LSB firstly or MSB firstly will be transmitted to the CODEC or received from the CODEC, and there has nothing relation to the memory data. Generally, if the audio data in big endian format, which will be using the bytes reversion, Here this can only be used to bits reversion. So using the 'lsb-first' instead of 'big-endian-data' can make the code to be readable easier and more easy to understand what this property is used to do. This property used for configuring whether the LSB or the MSB is transmitted first for the fifo data. Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com> Acked-by: Nicolin Chen <nicoleotsuka@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org> (cherry picked from commit eadb0019d206591e34e864b62059b292e157d8fc)
2015-09-17ASoC: fsl-sai: Convert to use regmap framework's endianness method.Xiubo Li
Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com> Signed-off-by: Mark Brown <broonie@linaro.org> (cherry picked from commit 014fd22ef9c6a7e9536b7e16635714a1a34810a8)
2015-09-17MLK-10085-4 usb: doc: chipidea: imx: add imx6-usb-charger-detection propertyLi Jun
It is used to indicate whether we use SoC's usb charger detection or not. Besides, we add anatop phandle since we need to use anatop register to do most of charger detect operations. Signed-off-by: Peter Chen <peter.chen@freescale.com>
2015-09-17MLK-9941 mtd: qspi: Update device tree binding doc for ddrsmp propertyYe.Li
The new property "ddrsmp" was added into device tree. Update the doc accordingly. Signed-off-by: Ye.Li <B37916@freescale.com> (cherry picked from commit 4239df12c5d6c3ac19a25e120ffe17df93c358a3)
2015-09-17MLK-10088-12 doc: usb: usbmisc-imx: add imx6sx compatible stringPeter Chen
Add compatible string for imx6sx-usbmisc. Signed-off-by: Peter Chen <peter.chen@freescale.com>
2015-09-17MLK-10088-10 doc: usb: chipidea: add usb wakeup enable examplePeter Chen
Add the example for how to enable USB as system wakeup source. Signed-off-by: Peter Chen <peter.chen@freescale.com>
2015-09-17spi: spi-imx: add DMA supportRobin Gong
Enable DMA support on i.mx6. The read speed can increase from 600KB/s to 1.2MB/s on i.mx6q. You can disable or enable dma function in dts. If not set "dma-names" in dts, spi will use PIO mode. This patch only validate on i.mx6, not i.mx5, but encourage ones to apply this patch on i.mx5 since they share the same IP. Note: Sometime, there is a weid data in rxfifo after one full tx/rx transfer finish by DMA on i.mx6dl, so we disable dma functhion on i.mx6dl. Signed-off-by: Frank Li <Frank.Li@freescale.com> Signed-off-by: Robin Gong <b38343@freescale.com> Acked-by: Marek Vasut <marex@denx.de> Signed-off-by: Mark Brown <broonie@kernel.org> (cherry picked from commit f62caccd12c17e4cb516d43a6e4dd8a3abc1f7e0) (cherry picked from commit b87c98a8944c76840ed1375ed4792ef608de5c01)
2015-09-17spi: add "spi-lsb-first" to devicetreeZhao Qiang
add optional property devicetree for SPI slave nodes into devicetree so that LSB mode can be enabled by devicetree. Signed-off-by: Zhao Qiang <B45475@freescale.com> Signed-off-by: Mark Brown <broonie@linaro.org> (cherry picked from commit cd6339e6ced387ad67b5551dd2931cfd7e8b970b) (cherry picked from commit 09623c20b3e6b11a914343d4b0f15b63e683f0d8)
2015-09-17net: fec: add Wake-on-LAN supportFugang Duan
Support for Wake-on-LAN using Magic Packet. ENET IP supports sleep mode in low power status, when system enter suspend status, Magic packet can wake up system even if all SOC clocks are gate. The patch doing below things: - flagging the device as a wakeup source for the system, as well as its Wake-on-LAN interrupt - prepare the hardware for entering WoL mode - add standard ethtool WOL interface - enable the ENET interrupt to wake us Tested on i.MX6q/dl sabresd, sabreauto boards, i.MX6SX arm2 boards. Signed-off-by: Fugang Duan <B38611@freescale.com> Signed-off-by: David S. Miller <davem@davemloft.net>