On 10/16/23 11:01, Stefan Roese wrote:
On 10/8/23 16:58, Josua Mayer wrote:
Handle 2GBit memory size value "2" from tlv eeprom on ddr
initialisation, to support SoMs with 512MB ddr memory.

Signed-off-by: Josua Mayer <jo...@solid-run.com>

Reviewed-by: Stefan Roese <s...@denx.de>

Applied to u-boot-marvell/master

Thanks,
Stefan


Thanks,
Stefan

---
  board/solidrun/clearfog/clearfog.c | 3 +++
  1 file changed, 3 insertions(+)

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;

Viele Grüße,
Stefan Roese


Viele Grüße,
Stefan Roese

--
DENX Software Engineering GmbH,      Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: s...@denx.de

Reply via email to