mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
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:
parent
fdd6069515
commit
ebf1de9372
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue