ppc4xx: Add missing APC405 to MAKEALL
[oweals/u-boot.git] / board / gcplus / gcplus.c
index 06b6098a3cdfbf39e6dee39d94dfa639fc597fad..71607f222311549b6a514f207ee54c39dd860e10 100644 (file)
  */
 
 #include <common.h>
+#include <netdev.h>
 #include <SA-1100.h>
-/* ------------------------------------------------------------------------- */
+
+DECLARE_GLOBAL_DATA_PTR;
 
 /*
  * Miscelaneous platform dependent initialisations
@@ -35,9 +37,7 @@
 int
 board_init(void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
-       gd->bd->bi_arch_number = 29;    /* ADS GraphicsClientPlus Board */
+       gd->bd->bi_arch_number = MACH_TYPE_GRAPHICSCLIENT;
 
        gd->bd->bi_boot_params = 0xc000003c; /* Weird address? */
 
@@ -62,8 +62,6 @@ board_init(void)
 int
 dram_init(void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
        gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
        gd->bd->bi_dram[1].start = PHYS_SDRAM_2;
@@ -71,3 +69,14 @@ dram_init(void)
 
        return (0);
 }
+
+#ifdef CONFIG_CMD_NET
+int board_eth_init(bd_t *bis)
+{
+       int rc = 0;
+#ifdef CONFIG_LAN91C96
+       rc = lan91c96_initialize(0, CONFIG_LAN91C96_BASE);
+#endif
+       return rc;
+}
+#endif