summaryrefslogtreecommitdiff
path: root/board/gdsys
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-07-23 13:04:56 -0400
committerTom Rini <trini@konsulko.com>2022-08-04 16:18:47 -0400
commit9a56ab96aa3206001c89151eb2755479f708f084 (patch)
treef34f024e11ae18f3c902736f83094ca44789426e /board/gdsys
parentb72713dc0bb76a7629dab3746694633089e51339 (diff)
downloadu-boot-9a56ab96aa3206001c89151eb2755479f708f084.tar.gz
powerpc: Move CONFIG_SYS_DDR_SIZE to CONFIG_SYS_SDRAM_SIZE
We have a number of CONFIG_SYS_xxx_SIZE options to describe the amount main memory available. Rework CONFIG_SYS_DDR_SIZE, which described a size in number of MiB to use CONFIG_SYS_SDRAM_SIZE which is most often used as a number of bytes. Use shifts of this option when required. Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board/gdsys')
-rw-r--r--board/gdsys/mpc8308/sdram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/gdsys/mpc8308/sdram.c b/board/gdsys/mpc8308/sdram.c
index bfd55f54e4..47b8804352 100644
--- a/board/gdsys/mpc8308/sdram.c
+++ b/board/gdsys/mpc8308/sdram.c
@@ -34,7 +34,7 @@ DECLARE_GLOBAL_DATA_PTR;
static long fixed_sdram(void)
{
immap_t *im = (immap_t *)CONFIG_SYS_IMMR;
- u32 msize = CONFIG_SYS_DDR_SIZE * 1024 * 1024;
+ u32 msize = CONFIG_SYS_SDRAM_SIZE;
u32 msize_log2 = __ilog2(msize);
out_be32(&im->sysconf.ddrlaw[0].bar,