]> git.sur5r.net Git - u-boot/blobdiff - board/esteem192e/esteem192e.c
FSL DDR: Convert MPC8560ADS to new DDR code.
[u-boot] / board / esteem192e / esteem192e.c
index f080d6731cf03dd680c63021ce286d57f23404e8..f3c8662cdba42b37693ffb90640ff5d6cad970dd 100644 (file)
@@ -101,7 +101,7 @@ int checkboard (void)
 /* ------------------------------------------------------------------------- */
 
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
@@ -113,7 +113,7 @@ long int initdram (int board_type)
 
        memctl->memc_mptpr = 0x0200;    /* divide by 32 */
 
-       memctl->memc_mamr = 0x18003112; /*CFG_MAMR_8COL; *//* 0x18005112 TODO: explain here */
+       memctl->memc_mamr = 0x18003112; /*CFG_MAMR_8COL; */ /* 0x18005112 TODO: explain here */
 
        upmconfig (UPMA, (uint *) sdram_table,
                   sizeof (sdram_table) / sizeof (uint));
@@ -147,8 +147,8 @@ long int initdram (int board_type)
         * Check Bank 0 Memory Size for re-configuration
         *
         */
-       size_b0 = get_ram_size ((ulong *) SDRAM_BASE2_PRELIM, SDRAM_MAX_SIZE);
-       size_b1 = get_ram_size ((ulong *) SDRAM_BASE3_PRELIM, SDRAM_MAX_SIZE);
+       size_b0 = get_ram_size ( (long *)SDRAM_BASE2_PRELIM, SDRAM_MAX_SIZE);
+       size_b1 = get_ram_size ( (long *)SDRAM_BASE3_PRELIM, SDRAM_MAX_SIZE);
 
        printf ("\nbank 0 size %lu\nbank 1 size %lu\n", size_b0, size_b1);