linux-stable/arch/mips/jz4740
Linus Walleij 33d127eae6 mmc: jz4740: Get CD/WP GPIOs from descriptors
[ Upstream commit 0c901c0566 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-02-12 19:47:10 +01:00
..
board-qi_lb60.c mmc: jz4740: Get CD/WP GPIOs from descriptors 2019-02-12 19:47:10 +01:00
Kconfig MIPS: ingenic: Initial GCW Zero support 2018-01-18 22:08:10 +00:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Platform MIPS: jz4740: Bump zload address 2018-07-23 17:35:19 -07:00
platform.c MIPS: JZ4740: dts: Add bindings for the jz4740-wdt driver 2018-05-14 23:58:23 +01:00
pm.c MIPS: JZ4740: remove clock.h 2015-06-21 21:53:21 +02:00
prom.c MIPS: ingenic: Detect machtype from SoC compatible string 2018-01-18 22:07:24 +00:00
reset.c MIPS: JZ4740: Drop old platform reset code 2018-05-14 23:58:23 +01:00
reset.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
setup.c MIPS: ingenic: Detect machtype from SoC compatible string 2018-01-18 22:07:24 +00:00
time.c MIPS: ingenic: Initial JZ4770 support 2018-01-18 22:07:31 +00:00
timer.c MIPS: Audit and remove any unnecessary uses of module.h 2017-02-14 09:00:25 +00:00