diff options
author | Johan Rudholm <johan.rudholm@stericsson.com> | 2012-02-02 14:54:37 +0100 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@stericsson.com> | 2012-05-22 11:03:26 +0200 |
commit | 647bf84aaa59424e0b3ca9b8c181c7daed11bf2c (patch) | |
tree | 0d64de8e9121213fd37f54743619fcf622d3c0fc | |
parent | eacc602b9c20b99406705804c4e216f18403f7d7 (diff) |
stm: mach-ux500: Update U8520 SD-card GPIO pins
ST-Ericsson ID: 371953
Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com>
-rw-r--r-- | arch/arm/mach-ux500/board-mop500-stm.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/mach-ux500/board-mop500-stm.c b/arch/arm/mach-ux500/board-mop500-stm.c index 34e5892d18b..1bef2a01873 100644 --- a/arch/arm/mach-ux500/board-mop500-stm.c +++ b/arch/arm/mach-ux500/board-mop500-stm.c @@ -26,6 +26,9 @@ #define HREFV60_SDMMC_EN_GPIO 169 #define HREFV60_SDMMC_1V8_3V_GPIO 5 +#define U8520_SDMMC_EN_GPIO 78 +#define U8520_SDMMC_1V8_3V_GPIO 5 + #define STM_DEVICE (&u8500_stm_device.dev) #define STM_ERR(msg) dev_err(STM_DEVICE, msg) #define STM_WARN(msg) dev_warn(STM_DEVICE, msg) @@ -203,9 +206,12 @@ static void control_level_shifter_for_microsd(int gpio_dir) { int gpio[2]; - if (machine_is_hrefv60() || machine_is_u8520() || machine_is_u9540()) { + if (machine_is_hrefv60() || machine_is_u9540()) { gpio[0] = HREFV60_SDMMC_EN_GPIO; gpio[1] = HREFV60_SDMMC_1V8_3V_GPIO; + } else if (machine_is_u8520()) { + gpio[0] = U8520_SDMMC_EN_GPIO; + gpio[1] = U8520_SDMMC_1V8_3V_GPIO; } else { gpio[0] = MOP500_EGPIO(17); gpio[1] = MOP500_EGPIO(18); |