]> git.baikalelectronics.ru Git - kernel.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>
Sun, 24 Feb 2013 19:36:54 +0000 (14:36 -0500)
commit4b8a564578e213104460ae5b3c474a02361e7e0b
treeba8cb0a33243bb78418bb2eb5f0a79bfcf6bf037
parent7a83c75c492e6f03e4687d321f85b65c9c59d3a8
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