]> git.sur5r.net Git - u-boot/blobdiff - board/total5200/total5200.c
Moved initialization of NS8382X Ethernet controller to board_eth_init()
[u-boot] / board / total5200 / total5200.c
index f32dadf5a2cc1900a89cf233d21932da4ffc0873..c1848fc5a11d6f3e8923fac6fc8e2df3e7f0f15d 100644 (file)
@@ -27,6 +27,7 @@
 #include <common.h>
 #include <mpc5xxx.h>
 #include <pci.h>
+#include <netdev.h>
 
 #include "sdram.h"
 
@@ -36,7 +37,7 @@
 #include "mt48lc16m16a2-75.h"
 #endif
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        sdram_conf_t sdram_conf;
 
@@ -67,14 +68,14 @@ int checkboard (void)
        puts ("Board: Total5100 ");
 #endif
 
-/*
- * Retrieve FPGA Revision.
- */
-printf ("(FPGA %08X)\n", *(vu_long *) (CFG_FPGA_BASE + 0x400));
+       /*
       * Retrieve FPGA Revision.
       */
+       printf ("(FPGA %08lX)\n", *(vu_long *) (CFG_FPGA_BASE + 0x400));
 
-/*
- * Take all peripherals in power-up mode.
- */
+       /*
       * Take all peripherals in power-up mode.
       */
 #if CONFIG_TOTAL5200_REV==2
        *(vu_char *) (CFG_CPLD_BASE + 0x46) = 0x70;
 #else
@@ -118,7 +119,7 @@ void init_ide_reset (void)
 {
        debug ("init_ide_reset\n");
 
-       /* Configure IRDA_1 (PSC6_3) as GPIO output for ATA reset */
+       /* Configure IRDA_1 (PSC6_3) as GPIO output for ATA reset */
        *(vu_long *) MPC5XXX_GPIO_ENABLE |= GPIO_IRDA_1;
        *(vu_long *) MPC5XXX_GPIO_DIR    |= GPIO_IRDA_1;
 }
@@ -308,3 +309,8 @@ int board_get_height (void)
 }
 
 #endif /* CONFIG_VIDEO_SED13806 */
+
+int board_eth_init(bd_t *bis)
+{
+       return pci_eth_init(bis);
+}