diff options
author | wdenk <wdenk> | 2004-10-28 00:09:35 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2004-10-28 00:09:35 +0000 |
commit | 983fda8391fa0ccfd4e0fd0bfb5a5e662e07b222 (patch) | |
tree | b39fd35e9f0bf906338bfce8f83eb7c8ff850428 /lib_ppc | |
parent | e3c9b9f9287a17c2a20d9b1b77747bd209e8408b (diff) | |
download | u-boot-imx-983fda8391fa0ccfd4e0fd0bfb5a5e662e07b222.zip u-boot-imx-983fda8391fa0ccfd4e0fd0bfb5a5e662e07b222.tar.gz u-boot-imx-983fda8391fa0ccfd4e0fd0bfb5a5e662e07b222.tar.bz2 |
Patch by TsiChung Liew, 23 Sep 2004:
- add support for MPC8220 CPU
- Add support for Alaska and Yukon boards
Diffstat (limited to 'lib_ppc')
-rw-r--r-- | lib_ppc/board.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lib_ppc/board.c b/lib_ppc/board.c index 12439fe..10f7008 100644 --- a/lib_ppc/board.c +++ b/lib_ppc/board.c @@ -297,6 +297,9 @@ init_fnc_t *init_sequence[] = { #if defined(CONFIG_MPC5xxx) prt_mpc5xxx_clks, #endif /* CONFIG_MPC5xxx */ +#if defined(CONFIG_MPC8220) + prt_mpc8220_clks, +#endif checkboard, INIT_FUNC_WATCHDOG_INIT #if defined(CONFIG_MISC_INIT_F) @@ -477,6 +480,9 @@ void board_init_f (ulong bootflag) #ifdef CONFIG_IP860 bd->bi_sramstart = SRAM_BASE; /* start of SRAM memory */ bd->bi_sramsize = SRAM_SIZE; /* size of SRAM memory */ +#elif defined CONFIG_MPC8220 + bd->bi_sramstart = CFG_SRAM_BASE; /* start of SRAM memory */ + bd->bi_sramsize = CFG_SRAM_SIZE; /* size of SRAM memory */ #else bd->bi_sramstart = 0; /* FIXME */ /* start of SRAM memory */ bd->bi_sramsize = 0; /* FIXME */ /* size of SRAM memory */ @@ -489,6 +495,26 @@ void board_init_f (ulong bootflag) #if defined(CONFIG_MPC5xxx) bd->bi_mbar_base = CFG_MBAR; /* base of internal registers */ #endif +#if defined(CONFIG_MPC8220) + bd->bi_mbar_base = CFG_MBAR; /* base of internal registers */ + bd->bi_inpfreq = gd->inp_clk; + bd->bi_pcifreq = gd->pci_clk; + bd->bi_vcofreq = gd->vco_clk; + bd->bi_pevfreq = gd->pev_clk; + bd->bi_flbfreq = gd->flb_clk; + + /* store bootparam to sram (backward compatible), here? */ + { + u32 *sram = (u32 *)CFG_SRAM_BASE; + *sram++ = gd->ram_size; + *sram++ = gd->bus_clk; + *sram++ = gd->inp_clk; + *sram++ = gd->cpu_clk; + *sram++ = gd->vco_clk; + *sram++ = gd->flb_clk; + *sram++ = 0xb8c3ba11; /* boot signature */ + } +#endif bd->bi_bootflags = bootflag; /* boot / reboot flag (for LynxOS) */ |