]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: jz4740: Use GPIO descriptor for power
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 12 Nov 2018 14:12:32 +0000 (15:12 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 17 Dec 2018 07:26:24 +0000 (08:26 +0100)
commit7fcd30527d14afe487d814b5f9560eff530e113e
treef0dc60f119c2612beaf605c1b1676c868e6ac560
parentd5c50d135e4939b5aed427e1bc7a730814dc508c
mmc: jz4740: Use GPIO descriptor for power

The power GPIO line is passed with inversion flags and all from
the platform data. Switch to using an optional GPIO descriptor and
use this to switch the power.

Augment the only boardfile to pass in the proper "power" descriptor
in the GPIO descriptor machine table instead.

As the GPIO handling is now much simpler, we can cut down on some
overhead code.

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