]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: mach-shmobile: ap4evb: Fix hotplug for SDHI1
authorArnd Hannemann <arnd@arndnet.de>
Fri, 10 Sep 2010 16:54:20 +0000 (18:54 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 28 Oct 2010 22:29:14 +0000 (00:29 +0200)
commitd389c96a8a4e906cdfb6ad2db0897f48ae42610d
tree8b4df083ccea7a30f90f18b0858e7299c1089040
parent24e5ed30eb52d82d84c102779f2fb3a51ab9d0aa
ARM: mach-shmobile: ap4evb: Fix hotplug for SDHI1

On AP4EVB the card detect pin of the top SD/MMC slot is not directly
connected to the tmio/mmcif controller but to a GPIO pin, so polling
needs to be done for SDHI1 and MMCIF in order to support hotplug for
that slot. SHDI1 and MMCIF share that slot, and the used controller
is selected by a DIP switch.
This patch adds a helper function to check if a card is present in that
particular slot, registers this function with SDHI1 and MMCIF and enables
polling for SDHI1.

Signed-off-by: Arnd Hannemann <arnd@arndnet.de>
Tested-by: Yusuke Goda <yusuke.goda.sx@renesas.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
arch/arm/mach-shmobile/board-ap4evb.c