]> git.sur5r.net Git - u-boot/blobdiff - board/sorcery/sorcery.c
mx31: provide readable WEIM CS accessor
[u-boot] / board / sorcery / sorcery.c
index 2f53fac08442e35e9915da195c5c67909aec71e0..90d4298020d1b3f53d299919f0d7aa1541c5807f 100644 (file)
 #include <mpc8220.h>
 #include <asm/processor.h>
 #include <asm/mmu.h>
+#include <pci.h>
+#include <netdev.h>
 
-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);
+}