]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
malta: Switch to using CONFIG_SYS_SDRAM_SIZE
authorTom Rini <trini@konsulko.com>
Sat, 23 Jul 2022 17:04:57 +0000 (13:04 -0400)
committerTom Rini <trini@konsulko.com>
Thu, 4 Aug 2022 20:18:47 +0000 (16:18 -0400)
This is the only platform defining and using CONFIG_SYS_MEM_SIZE, switch
to using CONFIG_SYS_SDRAM_SIZE for consistency.

Cc: Paul Burton <paul.burton@mips.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
board/imgtec/malta/lowlevel_init.S
board/imgtec/malta/malta.c
include/configs/malta.h

index ecb4424fd92afdb8b8f3b77cd59ae3195ebd97c0..bed24972f7a85901d8677f51dc3f883ec3af6634 100644 (file)
@@ -118,7 +118,7 @@ _msc01:
        /* setup basic address decode */
        PTR_LI  t0, CKSEG1ADDR(MALTA_MSC01_BIU_BASE)
        li      t1, 0x0
-       li      t2, -CONFIG_SYS_MEM_SIZE
+       li      t2, -CONFIG_SYS_SDRAM_SIZE
        sw      t1, MSC01_BIU_MCBAS1L_OFS(t0)
        sw      t2, MSC01_BIU_MCMSK1L_OFS(t0)
        sw      t1, MSC01_BIU_MCBAS2L_OFS(t0)
@@ -168,7 +168,7 @@ _msc01:
        sw      t3, MSC01_PCI_SC2PIOMAPL_OFS(t0)
 
        /* setup PCI_BAR0 memory window */
-       li      t1, -CONFIG_SYS_MEM_SIZE
+       li      t1, -CONFIG_SYS_SDRAM_SIZE
        sw      t1, MSC01_PCI_BAR0_OFS(t0)
 
        /* setup PCI to SysCon/CPU translation */
index d2e2e4ae2093c563e961325a8916fd71bab81d0c..9853a0ba82f6f90515c0150fb2737ba7351fbdab 100644 (file)
@@ -94,7 +94,7 @@ static enum sys_con malta_sys_con(void)
 
 int dram_init(void)
 {
-       gd->ram_size = CONFIG_SYS_MEM_SIZE;
+       gd->ram_size = CONFIG_SYS_SDRAM_SIZE;
 
        return 0;
 }
index c8b230ab21e9c22c6ccfd76b2bf787273fe09e90..98ea860655ea57ad8399a4cf3ec61244421ccc5d 100644 (file)
@@ -30,7 +30,7 @@
 #else
 # define CONFIG_SYS_SDRAM_BASE         0x80000000
 #endif
-#define CONFIG_SYS_MEM_SIZE            (256 * 1024 * 1024)
+#define CONFIG_SYS_SDRAM_SIZE          0x10000000      /* 256 MiB */
 
 #define CONFIG_SYS_INIT_SP_OFFSET      0x400000