diff options
author | Marek Vasut <marek.vasut+renesas@gmail.com> | 2019-03-09 16:10:59 +0100 |
---|---|---|
committer | Marek Vasut <marek.vasut+renesas@gmail.com> | 2019-03-27 00:16:30 +0100 |
commit | 5a21f31331e211688cdcbc2ec7641cfbddf9a4a3 (patch) | |
tree | f9629875199da5c99d8e4840f828bfaa2e25e72d /plat/renesas | |
parent | 2c269b47364a0f154ca6c1ae3ec82b1b7f923c99 (diff) |
rcar_gen3: plat: Set M3W ULCB DRAM size to 2 GiB
The M3W ULCB board has 2 GiB of DRAM, set it so.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Diffstat (limited to 'plat/renesas')
-rw-r--r-- | plat/renesas/rcar/bl2_plat_setup.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plat/renesas/rcar/bl2_plat_setup.c b/plat/renesas/rcar/bl2_plat_setup.c index 350df127..de8588c6 100644 --- a/plat/renesas/rcar/bl2_plat_setup.c +++ b/plat/renesas/rcar/bl2_plat_setup.c @@ -568,9 +568,15 @@ static void bl2_advertise_dram_size(uint32_t product) break; case RCAR_PRODUCT_M3: +#if (RCAR_GEN3_ULCB == 1) + /* 2GB(1GBx2 2ch split) */ + dram_config[1] = 0x40000000ULL; + dram_config[5] = 0x40000000ULL; +#else /* 4GB(2GBx2 2ch split) */ dram_config[1] = 0x80000000ULL; dram_config[5] = 0x80000000ULL; +#endif break; case RCAR_PRODUCT_M3N: |