]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: jz4740: Get CD/WP GPIOs from descriptors
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 12 Nov 2018 14:12:31 +0000 (15:12 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 17 Dec 2018 07:26:24 +0000 (08:26 +0100)
commitd5c50d135e4939b5aed427e1bc7a730814dc508c
tree46e795463dcbb51c1310face9f77ebbce7ff4a83
parentf4f04ce70462dc560d6065c0c1dfabb87b0a3d42
mmc: jz4740: Get CD/WP GPIOs from descriptors

Modifty the JZ4740 driver to retrieve card detect and write
protect GPIO pins from GPIO descriptors instead of hard-coded
global numbers. Augment the only board file using this in the
process and cut down on passed in platform data.

Preserve the code setting the caps2 flags for CD and WP
as active low or high since the slot GPIO code currently
ignores the gpiolib polarity inversion semantice and uses
the raw accessors to read the GPIO lines, but set the right
polarity flags in the descriptor table for jz4740.

Cc: Paul Cercueil <paul@crapouillou.net>
Cc: linux-mips@linux-mips.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Paul Burton <paul.burton@mips.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
arch/mips/include/asm/mach-jz4740/jz4740_mmc.h
arch/mips/jz4740/board-qi_lb60.c
drivers/mmc/host/jz4740_mmc.c