board/[m-p]*: Remove obsolete references to CONFIG_COMMANDS
[oweals/u-boot.git] / board / lubbock / lubbock.c
index 2487a4cbae02e5e121fb252ac6a03089b6999e73..58291706c0d91b044cdaaee362f92a7a206e035e 100644 (file)
@@ -27,8 +27,7 @@
 
 #include <common.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 +47,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 +66,5 @@ 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;
 }