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>
Sun, 24 Feb 2013 19:36:54 +0000 (14:36 -0500)
commit55a6ceb2d5b845f198bcd76aa18910e05a47d0c2
treeba8cb0a33243bb78418bb2eb5f0a79bfcf6bf037
parent07b240411f1e7528ed36e09979f40ccf4b844c8c
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