summaryrefslogtreecommitdiff
path: root/board/digsy_mtc/digsy_mtc.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2009-07-07 21:06:07 +0200
committerWolfgang Denk <wd@denx.de>2009-07-07 21:06:07 +0200
commitbec9cab9291bb221714d559a44fe37669a8ca604 (patch)
tree81498e05ecb1efdeae49915d4f2015653c1f4a0b /board/digsy_mtc/digsy_mtc.c
parent37572cde7f0bf3f33b6d3b9ed5cc7c479f6802c4 (diff)
parent1260233982f7dfbdfd1adee12daa95a0c0e84a43 (diff)
downloadu-boot-imx-bec9cab9291bb221714d559a44fe37669a8ca604.zip
u-boot-imx-bec9cab9291bb221714d559a44fe37669a8ca604.tar.gz
u-boot-imx-bec9cab9291bb221714d559a44fe37669a8ca604.tar.bz2
Merge branch 'master' of git://git.denx.de/u-boot-mpc5xxx
Diffstat (limited to 'board/digsy_mtc/digsy_mtc.c')
-rw-r--r--board/digsy_mtc/digsy_mtc.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/board/digsy_mtc/digsy_mtc.c b/board/digsy_mtc/digsy_mtc.c
index 83d5864..9d77e54 100644
--- a/board/digsy_mtc/digsy_mtc.c
+++ b/board/digsy_mtc/digsy_mtc.c
@@ -186,6 +186,9 @@ int checkboard(void)
int board_early_init_r(void)
{
+#ifdef CONFIG_MPC52XX_SPI
+ struct mpc5xxx_gpt *gpt = (struct mpc5xxx_gpt*)MPC5XXX_GPT;
+#endif
/*
* Now, when we are in RAM, enable flash write access for detection
* process. Note that CS_BOOT cannot be cleared when executing in
@@ -202,6 +205,13 @@ int board_early_init_r(void)
/* Low level USB init, required for proper kernel operation */
usb_cpu_init();
#endif
+#ifdef CONFIG_MPC52XX_SPI
+ /* GPT 6 Output Enable */
+ out_be32(&gpt[6].emsr, 0x00000034);
+ /* GPT 7 Output Enable */
+ out_be32(&gpt[7].emsr, 0x00000034);
+#endif
+
return (0);
}
@@ -230,6 +240,7 @@ void board_get_enetaddr (uchar * enet)
int misc_init_r(void)
{
+ extern int mtc_cmd_init_r (void);
uchar enetaddr[6];
if (!eth_getenv_enetaddr("ethaddr", enetaddr)) {
@@ -237,6 +248,7 @@ int misc_init_r(void)
eth_setenv_enetaddr("ethaddr", enetaddr);
}
+ mtc_cmd_init_r();
return 0;
}