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
This commit is contained in:
Toshiyuki Ogasahara 2020-12-15 18:22:16 +09:00 committed by Marek Vasut
parent c5f5bb17ab
commit f95d551217
1 changed files with 5 additions and 0 deletions

View File

@ -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: