OSDN Git Service

mmc: mmc_spi: Support CD/RO GPIOs
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Thu, 8 Aug 2013 10:38:32 +0000 (12:38 +0200)
committerChris Ball <cjb@laptop.org>
Sun, 25 Aug 2013 03:45:22 +0000 (23:45 -0400)
commitbf287a90ceedf86e3313ba0dcff606ac5399b39a
treea3337495e68fde2270c406574774a283c0b4e002
parent214fc309d1387e822d606a33a10e31cacfe83520
mmc: mmc_spi: Support CD/RO GPIOs

Add support for passing CD/RO GPIO numbers directly to the mmc_spi
driver instead of relying solely on board code callbacks to retrieve the
CD/RO signals values. The driver will enable debouncing on the card
detect GPIO if the cd_debounce field is set to a non-zero value.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/mmc_spi.c
drivers/mmc/host/of_mmc_spi.c
include/linux/spi/mmc_spi.h