mmc: omap_hsmmc: Pin remux workaround to support SDIO interrupt on AM335x
authorAndreas Fenkart <afenkart@gmail.com>
Thu, 29 May 2014 08:28:05 +0000 (10:28 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 9 Jul 2014 09:26:06 +0000 (11:26 +0200)
commit455e5cd6f736478d63a076086c732d287623e366
tree6d1e4b37041d8d7a7f7ac983143663fa64fb1289
parent97978a4439fb49d05fbc1dfd075e3c5fb22ea956
mmc: omap_hsmmc: Pin remux workaround to support SDIO interrupt on AM335x

The am335x can't detect pending cirq in PM runtime suspend.
This patch reconfigures dat1 as a GPIO before going to suspend.
SDIO interrupts are detected with the GPIO, the GPIO will only wake
the module from suspend, SDIO irq detection will still happen through the
IP block.

Idea of remuxing the pins by Tony Lindgren. Code contributions from
Tony Lindgren and Balaji T K <balajitk@ti.com>

Signed-off-by: Andreas Fenkart <afenkart@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Acked-by: Balaji T K <balajitk@ti.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Documentation/devicetree/bindings/mmc/ti-omap-hsmmc.txt
drivers/mmc/host/omap_hsmmc.c