]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: dw_mmc: Handle wp-gpios from device tree
authorDoug Anderson <dianders@chromium.org>
Fri, 11 Jan 2013 17:03:53 +0000 (17:03 +0000)
committerChris Ball <cjb@laptop.org>
Mon, 11 Feb 2013 18:28:59 +0000 (13:28 -0500)
commitd5d24e6d5b985ab52843fe07169dcee95204cf0e
treeba8cb0a33243bb78418bb2eb5f0a79bfcf6bf037
parent2280a1dacca1b9c0b6a24f2605d41ee7134b40ca
mmc: dw_mmc: Handle wp-gpios from device tree

On some SoCs (like exynos5250) you need to use an external GPIO for
write protect.  Add support for wp-gpios to the core dw_mmc driver
since it could be useful across multiple SoCs.

With this change I am able to make use of the write protect for the
external SD slot on exynos5250-snow.

Signed-off-by: Doug Anderson <dianders@chromium.org>
Acked-by: Seungwon Jeon <tgih.jun@samsung.com>
Acked-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/dw_mmc.c