mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-09 03:58:18 -04:00
- PPC405EP support added.
- "nand_init" (NAND FLASH) added.
This commit is contained in:
parent
5d232d0e7e
commit
bedc497029
@ -73,6 +73,9 @@ void doc_init (void);
|
|||||||
defined(CONFIG_SOFT_I2C)
|
defined(CONFIG_SOFT_I2C)
|
||||||
#include <i2c.h>
|
#include <i2c.h>
|
||||||
#endif
|
#endif
|
||||||
|
#if (CONFIG_COMMANDS & CFG_CMD_NAND)
|
||||||
|
void nand_init (void);
|
||||||
|
#endif
|
||||||
|
|
||||||
static char *failed = "*** failed ***\n";
|
static char *failed = "*** failed ***\n";
|
||||||
|
|
||||||
@ -171,7 +174,7 @@ static void syscalls_init (void)
|
|||||||
/* Initialize syscalls stack pointer */
|
/* Initialize syscalls stack pointer */
|
||||||
addr = (ulong *) 0xCFC;
|
addr = (ulong *) 0xCFC;
|
||||||
*addr = (ulong)addr;
|
*addr = (ulong)addr;
|
||||||
#ifndef CONFIG_5xx
|
#ifndef CONFIG_5xx
|
||||||
flush_cache ((ulong)addr, 0x10);
|
flush_cache ((ulong)addr, 0x10);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@ -532,7 +535,7 @@ void board_init_f (ulong bootflag)
|
|||||||
|
|
||||||
bd->bi_procfreq = gd->cpu_clk; /* Processor Speed, In Hz */
|
bd->bi_procfreq = gd->cpu_clk; /* Processor Speed, In Hz */
|
||||||
bd->bi_plb_busfreq = gd->bus_clk;
|
bd->bi_plb_busfreq = gd->bus_clk;
|
||||||
#ifdef CONFIG_405GP
|
#if defined(CONFIG_405GP) || defined(CONFIG_405EP)
|
||||||
bd->bi_pci_busfreq = get_PCI_freq ();
|
bd->bi_pci_busfreq = get_PCI_freq ();
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
@ -911,6 +914,11 @@ void board_init_r (gd_t *id, ulong dest_addr)
|
|||||||
doc_init ();
|
doc_init ();
|
||||||
#endif
|
#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)
|
#if (CONFIG_COMMANDS & CFG_CMD_NET) && defined(CONFIG_NET_MULTI)
|
||||||
WATCHDOG_RESET ();
|
WATCHDOG_RESET ();
|
||||||
puts ("Net: ");
|
puts ("Net: ");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user