]> git.sur5r.net Git - u-boot/blobdiff - board/lubbock/lubbock.c
Blackfin: add support for BF538/BF539 processors
[u-boot] / board / lubbock / lubbock.c
index 2487a4cbae02e5e121fb252ac6a03089b6999e73..d8d6ffbf6174fdfc44318a06fc7fb204cd9568ef 100644 (file)
@@ -26,9 +26,9 @@
  */
 
 #include <common.h>
+#include <netdev.h>
 
-/* ------------------------------------------------------------------------- */
-
+DECLARE_GLOBAL_DATA_PTR;
 
 /*
  * Miscelaneous platform dependent initialisations
 
 int board_init (void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        /* memory and cpu-speed are setup before relocation */
        /* so we do _nothing_ here */
 
        /* arch number of Lubbock-Board */
-       gd->bd->bi_arch_number = 89;
+       gd->bd->bi_arch_number = MACH_TYPE_LUBBOCK;
 
        /* adress of boot parameters */
        gd->bd->bi_boot_params = 0xa0000100;
@@ -50,10 +48,16 @@ int board_init (void)
        return 0;
 }
 
-int dram_init (void)
+int board_late_init(void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
+       setenv("stdout", "serial");
+       setenv("stderr", "serial");
+       return 0;
+}
+
 
+int dram_init (void)
+{
        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;
@@ -63,5 +67,16 @@ int dram_init (void)
        gd->bd->bi_dram[3].start = PHYS_SDRAM_4;
        gd->bd->bi_dram[3].size = PHYS_SDRAM_4_SIZE;
 
-   return 0;
+       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