summaryrefslogtreecommitdiff
path: root/lib_ppc/board.c
diff options
context:
space:
mode:
authorwdenk <wdenk>2003-07-16 21:53:01 +0000
committerwdenk <wdenk>2003-07-16 21:53:01 +0000
commit945af8d723a29e9b6289d84250745ed0dc16fc81 (patch)
tree6798d0b717c05b01742df0c410038c702b8a1979 /lib_ppc/board.c
parentcb4dbb7bbc271f988e14ec353a5e86d7f10e1da0 (diff)
* Add support for IceCube board (with MGT5100 and MPC5200 CPUs)U-Boot-0_4_4
* Add support for MGT5100 and MPC5200 processors
Diffstat (limited to 'lib_ppc/board.c')
-rw-r--r--lib_ppc/board.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/lib_ppc/board.c b/lib_ppc/board.c
index a9b959b3d1c..278357d5055 100644
--- a/lib_ppc/board.c
+++ b/lib_ppc/board.c
@@ -33,6 +33,9 @@
#ifdef CONFIG_5xx
#include <mpc5xx.h>
#endif
+#ifdef CONFIG_MPC5XXX
+#include <mpc5xxx.h>
+#endif
#if (CONFIG_COMMANDS & CFG_CMD_IDE)
#include <ide.h>
#endif
@@ -304,6 +307,9 @@ init_fnc_t *init_sequence[] = {
prt_8260_clks,
#endif /* CONFIG_8260 */
checkcpu,
+#if defined(CONFIG_MPC5XXX)
+ prt_mpc5xxx_clks,
+#endif /* CONFIG_MPC5XXX */
checkboard,
INIT_FUNC_WATCHDOG_INIT
#if defined(CONFIG_BMW) || \
@@ -494,6 +500,9 @@ void board_init_f (ulong bootflag)
#if defined(CONFIG_8xx) || defined(CONFIG_8260) || defined(CONFIG_5xx)
bd->bi_immr_base = CFG_IMMR; /* base of IMMR register */
#endif
+#if defined(CONFIG_MPC5XXX)
+ bd->bi_mbar_base = CFG_MBAR; /* base of internal registers */
+#endif
bd->bi_bootflags = bootflag; /* boot / reboot flag (for LynxOS) */
@@ -506,7 +515,10 @@ void board_init_f (ulong bootflag)
bd->bi_sccfreq = gd->scc_clk;
bd->bi_vco = gd->vco_out;
#endif /* CONFIG_8260 */
-
+#if defined(CONFIG_MPC5XXX)
+ bd->bi_ipbfreq = gd->ipb_clk;
+ bd->bi_pcifreq = gd->pci_clk;
+#endif /* CONFIG_MPC5XXX */
bd->bi_baudrate = gd->baudrate; /* Console Baudrate */
#ifdef CFG_EXTBDINFO