aboutsummaryrefslogtreecommitdiff
path: root/board/solidrun
diff options
context:
space:
mode:
authorJosua Mayer2023-10-08 16:58:04 +0200
committerStefan Roese2023-10-16 14:00:45 +0200
commitebf1de9372fa84dbc5805776cbd7ea2add703255 (patch)
tree776a27e9a04a42d48b4e0e61d54f2e1d4267180a /board/solidrun
parentfdd6069515d68e743e6aeb7982ba81c9b7905ad2 (diff)
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>
Diffstat (limited to 'board/solidrun')
-rw-r--r--board/solidrun/clearfog/clearfog.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/board/solidrun/clearfog/clearfog.c b/board/solidrun/clearfog/clearfog.c
index 4f4532b537e..6fa2fe5fe3e 100644
--- a/board/solidrun/clearfog/clearfog.c
+++ b/board/solidrun/clearfog/clearfog.c
@@ -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;