From 945af8d723a29e9b6289d84250745ed0dc16fc81 Mon Sep 17 00:00:00 2001 From: wdenk Date: Wed, 16 Jul 2003 21:53:01 +0000 Subject: * Add support for IceCube board (with MGT5100 and MPC5200 CPUs) * Add support for MGT5100 and MPC5200 processors --- lib_ppc/board.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'lib_ppc') diff --git a/lib_ppc/board.c b/lib_ppc/board.c index a9b959b3d1..278357d505 100644 --- a/lib_ppc/board.c +++ b/lib_ppc/board.c @@ -33,6 +33,9 @@ #ifdef CONFIG_5xx #include #endif +#ifdef CONFIG_MPC5XXX +#include +#endif #if (CONFIG_COMMANDS & CFG_CMD_IDE) #include #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 -- cgit