]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/mpl/pati/pati.c
powerpc, 8260: remove support for mpc8260
[people/ms/u-boot.git] / board / mpl / pati / pati.c
index 958cdec1365cacceebb8d2c703a05a30146ed82f..1288f743cc6bfa0b0b78c020cb94b99166e868c4 100644 (file)
@@ -29,6 +29,7 @@
  **********************************************************************************/
 
 #include <common.h>
+#include <console.h>
 #include <mpc5xx.h>
 #include <stdio_dev.h>
 #include <pci_ids.h>
@@ -54,6 +55,8 @@
                asm (GEN_SYMNAME(name) " = " GEN_VALUE(value))
 
 
+DECLARE_GLOBAL_DATA_PTR;
+
 /************************************************************************
  * Early debug routines
  */
@@ -132,7 +135,7 @@ extern int mem_test (unsigned long start, unsigned long ramsize, int quiet);
 /*
  * Get RAM size.
  */
-phys_size_t initdram(int board_type)
+int dram_init(void)
 {
        unsigned char board_rev;
        unsigned long reg;
@@ -208,8 +211,10 @@ phys_size_t initdram(int board_type)
        /* we have a x32 bit bus to the SDRAM, so shift the addr with 2 */
        lmr<<=2;
        in32(CONFIG_SYS_SDRAM_BASE + lmr);
-       /* ok, we're done, return SDRAM size */
-       return ((0x400000 << sdram_table[i].sz));               /* log2 value of 4MByte  */
+       /* ok, we're done, set SDRAM size to log2 value of 4MByte*/
+       gd->ram_size = 0x400000 << sdram_table[i].sz;
+
+       return 0;
 }