summaryrefslogtreecommitdiff
path: root/board/freescale
diff options
context:
space:
mode:
authorAndy Fleming <afleming@freescale.com>2008-10-30 16:51:33 -0500
committerAndy Fleming <afleming@freescale.com>2009-02-16 18:07:43 -0600
commit80522dc8369a89938369fbcee572e662373bc9a3 (patch)
treea2aeb1c78f972249371fa4cbf309ac55a653e7ca /board/freescale
parent50586ef24ed5caf6ce5591df76f355009da2cd79 (diff)
downloadu-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')
-rw-r--r--board/freescale/mpc8536ds/mpc8536ds.c14
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, "