]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: mmci: augment driver to handle gpio descriptors
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 27 Aug 2014 13:13:54 +0000 (15:13 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 9 Sep 2014 12:25:14 +0000 (14:25 +0200)
commit50fee2aa4b3a76390fa34018479e6e5bc56cc671
treea1bb1a55d565c1454d2d36519db910a7d16d0506
parentc5e543134357805fd0897a2af9ed55d955243064
mmc: mmci: augment driver to handle gpio descriptors

Currently the MMCI driver will only handle GPIO descriptors
implicitly through the device tree probe glue in mmc_of_init(),
but devices instatiated other ways such as through board files
and passing descriptors using the GPIO descriptor table will
not be able to exploit descriptors.

Augment the driver to look for a GPIO descriptor if device
tree is not used for the device, and if that doesn't work,
fall back to platform data GPIO assignment using the old
API. The end goal is to get rid of the platform data integer
GPIO assingments from the kernel.

This enable the MMCI-embedding platforms to be converted to
GPIO descritor tables.

Cc: Alexandre Courbot <gnurou@gmail.com>
Cc: Russell King <linux@arm.linux.org.uk>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/mmci.c