arm: mvebu: clearfog: support 512MB memory size from tlv eeprom

Handle 2GBit memory size value "2" from tlv eeprom on ddr
initialisation, to support SoMs with 512MB ddr memory.

Signed-off-by: Josua Mayer <josua@solid-run.com>
Reviewed-by: Stefan Roese <sr@denx.de>
This commit is contained in:
Josua Mayer 2023-10-08 16:58:04 +02:00 committed by Stefan Roese
parent fdd6069515
commit ebf1de9372

View file

@ -159,6 +159,9 @@ struct mv_ddr_topology_map *mv_ddr_topology_map_get(void)
cf_read_tlv_data();
switch (cf_tlv_data.ram_size) {
case 2:
ifp->memory_size = MV_DDR_DIE_CAP_2GBIT;
break;
case 4:
default:
ifp->memory_size = MV_DDR_DIE_CAP_4GBIT;