arm, mx27: add support for SDHC1 pin init
PATCH 1/2 arm, mx27: add support for SDHC1 pin init
Signed-off-by Heiko Schocher <[email protected]>
---
against current git://git.denx.de/u-boot-imx.git
cpu/arm926ejs/mx27/generic.c | 17 +++++++++++++++++ include/asm-arm/arch-mx27/imx-regs.h | 1 + 2 files changed, 18 insertions(+), 0 deletions(-)
cpu/arm926ejs/mx27/generic.c +17 -0
@@ -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;
include/asm-arm/arch-mx27/imx-regs.h +1 -0
@@ -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 */
Signature · 5 lines
1.6.2.5 -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
PATCH 1/2 arm, mx27: add support for SDHC1 pin init
Quoted 7 lines · Heiko Schocher
Signed-off-by Heiko Schocher <[email protected]>---
against currentgit://git.denx.de/u-boot-imx.gitcpu/arm926ejs/mx27/generic.c | 17 +++++++++++++++++ include/asm-arm/arch-mx27/imx-regs.h | 1 + 2 files changed, 18 insertions(+), 0 deletions(-)
Applied to u-boot-imx, thanks.
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de =====================================================================