diff options
author | Andy Fleming <afleming@freescale.com> | 2008-10-30 21:51:33 (GMT) |
---|---|---|
committer | Andy Fleming <afleming@freescale.com> | 2009-02-17 00:07:43 (GMT) |
commit | 80522dc8369a89938369fbcee572e662373bc9a3 (patch) | |
tree | a2aeb1c78f972249371fa4cbf309ac55a653e7ca /board/freescale/mpc8536ds/mpc8536ds.c | |
parent | 50586ef24ed5caf6ce5591df76f355009da2cd79 (diff) | |
download | u-boot-80522dc8369a89938369fbcee572e662373bc9a3.tar.xz |
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, " |