]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/mvs1/mvs1.c
bootm: refactor do_reset and os boot function args
[karo-tx-uboot.git] / board / mvs1 / mvs1.c
index fb7547f349e73f2a9e5b1be450f605ef8937d541..58b84f5ae163b7171852368a6774bbe11369bf08 100644 (file)
@@ -136,7 +136,7 @@ static void test_dram (unsigned long *start, unsigned long *end)
 
 /* ------------------------------------------------------------------------- */
 
-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;
@@ -197,14 +197,14 @@ long int initdram (int board_type)
         *
         * try 8 column mode
         */
-       size8 = dram_size (CFG_MAMR_8COL, (ulong *) SDRAM_BASE2_PRELIM,
+       size8 = dram_size (CFG_MAMR_8COL, SDRAM_BASE2_PRELIM,
                                           SDRAM_MAX_SIZE);
 
        udelay (1000);
        /*
         * try 9 column mode
         */
-       size9 = dram_size (CFG_MAMR_9COL, (ulong *) SDRAM_BASE2_PRELIM,
+       size9 = dram_size (CFG_MAMR_9COL, SDRAM_BASE2_PRELIM,
                                           SDRAM_MAX_SIZE);
 
        if (size8 < size9) {            /* leave configuration at 9 columns */