Browse Source

feat(plat/rcar3): add a DRAM size setting for M3N

This commit adds a DRAM size setting when building with
RCAR_DRAM_LPDDR4_MEMCONF=2 for M3N Ver.1.1 4GB DRAM.

Signed-off-by: Toshiyuki Ogasahara <toshiyuki.ogasahara.bo@hitachi.com>
Signed-off-by: Yoshifumi Hosoya <yoshifumi.hosoya.wj@renesas.com>
Change-Id: Ib7fea862ab2e0bcafaf39ec030384f0fddda9b96
pull/1944/head
Toshiyuki Ogasahara 4 years ago
committed by Marek Vasut
parent
commit
f95d551217
  1. 5
      plat/renesas/rcar/bl2_plat_setup.c

5
plat/renesas/rcar/bl2_plat_setup.c

@ -718,8 +718,13 @@ static void bl2_advertise_dram_size(uint32_t product)
break;
case PRR_PRODUCT_M3N:
#if (RCAR_DRAM_LPDDR4_MEMCONF == 2)
/* 4GB(4GBx1) */
dram_config[1] = 0x100000000ULL;
#elif (RCAR_DRAM_LPDDR4_MEMCONF == 1)
/* 2GB(1GBx2) */
dram_config[1] = 0x80000000ULL;
#endif
break;
case PRR_PRODUCT_V3M:

Loading…
Cancel
Save