arm, mx27: add support for SDHC1 pin init
authorHeiko Schocher <hs@denx.de>
Thu, 4 Mar 2010 07:12:05 +0000 (08:12 +0100)
committertrix <trix@windriver.com>
Fri, 30 Apr 2010 10:23:23 +0000 (05:23 -0500)
Signed-off-by: Heiko Schocher <hs@denx.de>
arch/arm/cpu/arm926ejs/mx27/generic.c
arch/arm/include/asm/arch-mx27/imx-regs.h

index 30cf54471212adea3865fcd7e6d61d8557873ba9..ae2ce5841c73bc12fafd971252fd12ab2c8375b2 100644 (file)
@@ -316,6 +316,23 @@ void mx27_fec_init_pins(void)
 #endif /* CONFIG_FEC_MXC */
 
 #ifdef CONFIG_MXC_MMC
+void mx27_sd1_init_pins(void)
+{
+       int i;
+       unsigned int mode[] = {
+               PE18_PF_SD1_D0,
+               PE19_PF_SD1_D1,
+               PE20_PF_SD1_D2,
+               PE21_PF_SD1_D3,
+               PE22_PF_SD1_CMD,
+               PE23_PF_SD1_CLK,
+       };
+
+       for (i = 0; i < ARRAY_SIZE(mode); i++)
+               imx_gpio_mode(mode[i]);
+
+}
+
 void mx27_sd2_init_pins(void)
 {
        int i;
index d36a6da96d32142ffc381f89f5d0d13ae34915f7..6ecddaae8571a64304bed33410789e6b60330c96 100644 (file)
@@ -37,6 +37,7 @@ extern void mx27_fec_init_pins(void);
 #endif /* CONFIG_FEC_MXC */
 
 #ifdef CONFIG_MXC_MMC
+extern void mx27_sd1_init_pins(void);
 extern void mx27_sd2_init_pins(void);
 #endif /* CONFIG_MXC_MMC */