diff options
author | Andy Fleming <afleming@freescale.com> | 2008-10-30 16:51:33 -0500 |
---|---|---|
committer | Andy Fleming <afleming@freescale.com> | 2009-02-16 18:07:43 -0600 |
commit | 80522dc8369a89938369fbcee572e662373bc9a3 (patch) | |
tree | a2aeb1c78f972249371fa4cbf309ac55a653e7ca /board/freescale/mpc8536ds/mpc8536ds.c | |
parent | 50586ef24ed5caf6ce5591df76f355009da2cd79 (diff) | |
download | u-boot-imx-80522dc8369a89938369fbcee572e662373bc9a3.zip u-boot-imx-80522dc8369a89938369fbcee572e662373bc9a3.tar.gz u-boot-imx-80522dc8369a89938369fbcee572e662373bc9a3.tar.bz2 |
85xx: Add eSDHC support for 8536 DS
Signed-off-by: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'board/freescale/mpc8536ds/mpc8536ds.c')
-rw-r--r-- | board/freescale/mpc8536ds/mpc8536ds.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/board/freescale/mpc8536ds/mpc8536ds.c b/board/freescale/mpc8536ds/mpc8536ds.c index bddc78f..31c1e15 100644 --- a/board/freescale/mpc8536ds/mpc8536ds.c +++ b/board/freescale/mpc8536ds/mpc8536ds.c @@ -44,6 +44,20 @@ phys_size_t fixed_sdram(void); +int board_early_init_f (void) +{ +#ifdef CONFIG_MMC + volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR); + + setbits_be32(&gur->pmuxcr, + (MPC85xx_PMUXCR_SD_DATA | + MPC85xx_PMUXCR_SDHC_CD | + MPC85xx_PMUXCR_SDHC_WP)); + +#endif + return 0; +} + int checkboard (void) { printf ("Board: MPC8536DS, System ID: 0x%02x, " |