summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Langlais <philippe.langlais@linaro.org>2012-03-09 08:22:48 +0100
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-05-22 11:03:03 +0200
commit4d982e5cc14492aaccfd977ebf72820c1d042394 (patch)
tree0b79a83f3303277fe7e21ec5236f9d4a57ecad4d
parent54899fce7321b4548fdc97acd430547e675107b6 (diff)
mmc: 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-sdi.c15
-rw-r--r--arch/arm/mach-ux500/board-mop500.c5
2 files changed, 19 insertions, 1 deletions
diff --git a/arch/arm/mach-ux500/board-mop500-sdi.c b/arch/arm/mach-ux500/board-mop500-sdi.c
index 1e3d8b25b2d..828b230dd27 100644
--- a/arch/arm/mach-ux500/board-mop500-sdi.c
+++ b/arch/arm/mach-ux500/board-mop500-sdi.c
@@ -323,3 +323,18 @@ void __init hrefv60_sdi_init(struct device *parent)
/* WLAN SDIO channel */
db8500_add_sdi1(parent, &mop500_sdi1_data, U8500_SDI_V2_PERIPHID);
}
+
+void __init mach_u8520_sdi_init(struct device *parent)
+{
+ /* PoP:ed eMMC */
+ db8500_add_sdi2(parent, &mop500_sdi2_data, U8500_SDI_V2_PERIPHID);
+ /* On-board eMMC */
+ db8500_add_sdi4(parent, &mop500_sdi4_data, U8500_SDI_V2_PERIPHID);
+ /* External Micro SD slot */
+ mop500_sdi0_data.gpio_cd = U8520_SDMMC_CD_GPIO;
+ sdi0_en = U8520_SDMMC_EN_GPIO;
+ sdi0_vsel = U8520_SDMMC_1V8_3V_GPIO;
+ sdi0_configure(parent);
+ /* WLAN SDIO channel */
+ db8500_add_sdi1(parent, &mop500_sdi1_data, U8500_SDI_V2_PERIPHID);
+}
diff --git a/arch/arm/mach-ux500/board-mop500.c b/arch/arm/mach-ux500/board-mop500.c
index 77d03c1fbd0..3b8bd438b7c 100644
--- a/arch/arm/mach-ux500/board-mop500.c
+++ b/arch/arm/mach-ux500/board-mop500.c
@@ -697,7 +697,10 @@ static void __init hrefv60_init_machine(void)
ARRAY_SIZE(mop500_platform_devs));
mop500_i2c_init(parent);
- hrefv60_sdi_init(parent);
+ if (machine_is_u8520())
+ mach_u8520_sdi_init(parent);
+ else
+ hrefv60_sdi_init(parent);
mop500_spi_init(parent);
mop500_uart_init(parent);