diff options
author | stroese <stroese> | 2003-05-23 11:16:49 +0000 |
---|---|---|
committer | stroese <stroese> | 2003-05-23 11:16:49 +0000 |
commit | bedc4970297fcd83121cac456d6b1188f2336aac (patch) | |
tree | 830ca4df33d363e3ea08fa609547d48fde7d32e7 | |
parent | 5d232d0e7ea982d859d028ab482d95eb68460b19 (diff) | |
download | u-boot-bedc4970297fcd83121cac456d6b1188f2336aac.zip u-boot-bedc4970297fcd83121cac456d6b1188f2336aac.tar.gz u-boot-bedc4970297fcd83121cac456d6b1188f2336aac.tar.bz2 |
- PPC405EP support added.
- "nand_init" (NAND FLASH) added.
-rw-r--r-- | lib_ppc/board.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib_ppc/board.c b/lib_ppc/board.c index a11288d..bba62d8 100644 --- a/lib_ppc/board.c +++ b/lib_ppc/board.c @@ -73,6 +73,9 @@ void doc_init (void); defined(CONFIG_SOFT_I2C) #include <i2c.h> #endif +#if (CONFIG_COMMANDS & CFG_CMD_NAND) +void nand_init (void); +#endif static char *failed = "*** failed ***\n"; @@ -171,7 +174,7 @@ static void syscalls_init (void) /* Initialize syscalls stack pointer */ addr = (ulong *) 0xCFC; *addr = (ulong)addr; -#ifndef CONFIG_5xx +#ifndef CONFIG_5xx flush_cache ((ulong)addr, 0x10); #endif } @@ -532,7 +535,7 @@ void board_init_f (ulong bootflag) bd->bi_procfreq = gd->cpu_clk; /* Processor Speed, In Hz */ bd->bi_plb_busfreq = gd->bus_clk; -#ifdef CONFIG_405GP +#if defined(CONFIG_405GP) || defined(CONFIG_405EP) bd->bi_pci_busfreq = get_PCI_freq (); #endif #endif @@ -911,6 +914,11 @@ void board_init_r (gd_t *id, ulong dest_addr) doc_init (); #endif +#if (CONFIG_COMMANDS & CFG_CMD_NAND) + WATCHDOG_RESET (); + nand_init(); /* go init the NAND */ +#endif + #if (CONFIG_COMMANDS & CFG_CMD_NET) && defined(CONFIG_NET_MULTI) WATCHDOG_RESET (); puts ("Net: "); |