summaryrefslogtreecommitdiffstats
path: root/board/digsy_mtc/digsy_mtc.c
diff options
context:
space:
mode:
authorGrzegorz Bernacki <gjb@semihalf.com>2009-06-12 11:33:53 +0200
committerWolfgang Denk <wd@denx.de>2009-06-14 23:03:57 +0200
commitf1f66edfc76f4a9f5b9f63972d90309784a8cae5 (patch)
tree5afbac673379b5b1a8bccc1d175b4210aeae0903 /board/digsy_mtc/digsy_mtc.c
parent6325b7780dad8be26ba6fc25ef88ba338c50205b (diff)
downloadblackbird-obmc-uboot-f1f66edfc76f4a9f5b9f63972d90309784a8cae5.tar.gz
blackbird-obmc-uboot-f1f66edfc76f4a9f5b9f63972d90309784a8cae5.zip
digsy MTC: Add SPI support.
Signed-off-by: Grzegorz Bernacki <gjb@semihalf.com>
Diffstat (limited to 'board/digsy_mtc/digsy_mtc.c')
-rw-r--r--board/digsy_mtc/digsy_mtc.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/board/digsy_mtc/digsy_mtc.c b/board/digsy_mtc/digsy_mtc.c
index 83d58645e9..cc6087b339 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);
}
OpenPOWER on IntegriCloud