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>
13 lines
241 B
C
13 lines
241 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __LINUX_MMC_JZ4740_MMC
|
|
#define __LINUX_MMC_JZ4740_MMC
|
|
|
|
struct jz4740_mmc_platform_data {
|
|
unsigned card_detect_active_low:1;
|
|
unsigned read_only_active_low:1;
|
|
|
|
unsigned data_1bit:1;
|
|
};
|
|
|
|
#endif
|