X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2Fsorcery%2Fsorcery.c;h=90d4298020d1b3f53d299919f0d7aa1541c5807f;hb=47c5455a489c8e558ecb002a3a97a030ce490f9e;hp=a7ef85c9f09b8c04525249ca5148d8c40239c1a8;hpb=3c2b3d454daa6024cc20d166b2f50efde169c7fe;p=u-boot diff --git a/board/sorcery/sorcery.c b/board/sorcery/sorcery.c index a7ef85c9f0..90d4298020 100644 --- a/board/sorcery/sorcery.c +++ b/board/sorcery/sorcery.c @@ -25,14 +25,16 @@ #include #include #include +#include +#include -long int initdram (int board_type) +phys_size_t initdram (int board_type) { ulong size; size = dramSetup (); - return get_ram_size((ulong *)CFG_SDRAM_BASE, size); + return get_ram_size(CONFIG_SYS_SDRAM_BASE, size); } int checkboard (void) @@ -41,3 +43,26 @@ int checkboard (void) return 0; } + +#if defined(CONFIG_PCI) +/* + * Initialize PCI devices, report devices found. + */ +static struct pci_controller hose; + +#endif /* CONFIG_PCI */ + +void pci_init_board (void) +{ +#ifdef CONFIG_PCI + extern void pci_mpc8220_init (struct pci_controller *hose); + pci_mpc8220_init (&hose); +#endif /* CONFIG_PCI */ +} + +int board_eth_init(bd_t *bis) +{ + /* Initialize built-in FEC first */ + cpu_eth_init(bis); + return pci_eth_init(bis); +}