diff options
author | Heiko Schocher <hs@denx.de> | 2010-03-04 08:12:05 +0100 |
---|---|---|
committer | trix <trix@windriver.com> | 2010-04-17 20:52:43 -0500 |
commit | 9f6f58209e0a66b2f1a28c8655c38d8a55842a10 (patch) | |
tree | f9b875b59c3f163983acbbf384c8b9e6454b8ccb /arch | |
parent | eff3b9a742b2f43f177bd23dc1d1d453d2316c4b (diff) | |
download | u-boot-imx-9f6f58209e0a66b2f1a28c8655c38d8a55842a10.zip u-boot-imx-9f6f58209e0a66b2f1a28c8655c38d8a55842a10.tar.gz u-boot-imx-9f6f58209e0a66b2f1a28c8655c38d8a55842a10.tar.bz2 |
arm, mx27: add support for SDHC1 pin init
Signed-off-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/cpu/arm926ejs/mx27/generic.c | 17 | ||||
-rw-r--r-- | arch/arm/include/asm/arch-mx27/imx-regs.h | 1 |
2 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/cpu/arm926ejs/mx27/generic.c b/arch/arm/cpu/arm926ejs/mx27/generic.c index 30cf544..ae2ce58 100644 --- a/arch/arm/cpu/arm926ejs/mx27/generic.c +++ b/arch/arm/cpu/arm926ejs/mx27/generic.c @@ -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; diff --git a/arch/arm/include/asm/arch-mx27/imx-regs.h b/arch/arm/include/asm/arch-mx27/imx-regs.h index d36a6da..6ecddaa 100644 --- a/arch/arm/include/asm/arch-mx27/imx-regs.h +++ b/arch/arm/include/asm/arch-mx27/imx-regs.h @@ -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 */ |