board_f: Drop return value from initdram()
[oweals/u-boot.git] / board / mpl / pip405 / pip405.c
index 7c7690ff555be6f0319d18ec4c7347fcf38eddff..c07d8f88b9a14a8369fdef44314a127599539e03 100644 (file)
@@ -605,14 +605,14 @@ int checkboard (void)
 /* ------------------------------------------------------------------------- */
 /* ------------------------------------------------------------------------- */
 /*
-  initdram(int board_type) reads EEPROM via I2c. EEPROM contains all of
+  initdram() reads EEPROM via I2c. EEPROM contains all of
   the necessary info for SDRAM controller configuration
 */
 /* ------------------------------------------------------------------------- */
 /* ------------------------------------------------------------------------- */
 static int test_dram (unsigned long ramsize);
 
-phys_size_t initdram (int board_type)
+int initdram(void)
 {
        unsigned long bank_reg[4], tmp, bank_size;
        int i, ds;
@@ -648,7 +648,9 @@ phys_size_t initdram (int board_type)
        (void) get_clocks();
        if (gd->cpu_clk > 220000000)
                TotalSize /= 2;
-       return (TotalSize * 1024 * 1024);
+       gd->ram_size = TotalSize * 1024 * 1024;
+
+       return 0;
 }
 
 /* ------------------------------------------------------------------------- */
@@ -777,7 +779,7 @@ void print_pip405_info (void)
                        ((sysman & 0x10) == 0x10) ? "" : "not ");
        printf ("INIT asserts %sINT1# (NMI)\n",
                        ((sysman & 0x20) == 0x20) ? "" : "not ");
-       printf ("INIT occured %d\n", (sysman >> 6) & 0x1);
+       printf ("INIT occurred %d\n", (sysman >> 6) & 0x1);
        printf ("SER1 is routed to %s\n",
                        ((flashcom & 0x1) == 0x1) ? "RS485" : "RS232");
        printf ("COM2 is routed to %s\n",