]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/sorcery/sorcery.c
imported Freescale specific U-Boot additions for i.MX28,... release L2.6.31_10.08.01
[karo-tx-uboot.git] / board / sorcery / sorcery.c
index 165e9e2999fd48214efa3f4bf17f07ceae59a172..90d4298020d1b3f53d299919f0d7aa1541c5807f 100755 (executable)
 #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(CFG_SDRAM_BASE, size);
+       return get_ram_size(CONFIG_SYS_SDRAM_BASE, size);
 }
 
 int checkboard (void)
@@ -58,3 +59,10 @@ void pci_init_board (void)
        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);
+}