]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
board: venice: fix dram size for GW7901-SP486
authorTim Harvey <tharvey@gateworks.com>
Fri, 23 May 2025 17:20:10 +0000 (10:20 -0700)
committerFabio Estevam <festevam@gmail.com>
Fri, 30 May 2025 22:10:55 +0000 (19:10 -0300)
The GW7901-SP486 with the exception of the -C revision has 2GB DRAM
loaded but incorrectly specifies 1GB in the EEPROM. Adjust the DRAM size
to account for this.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
board/gateworks/venice/eeprom.c

index afaabf3487933f1b7975ea9bb1112717e6a39892..abe25256e668ee79a23c63e9cdd3c42ef2add0b6 100644 (file)
@@ -350,6 +350,11 @@ int venice_eeprom_init(int quiet)
        if (!quiet)
                eeprom_info(false);
 
+       if (!strncmp(venice_model, "GW7901-SP486", 12) &&
+           strcmp(venice_model, "GW7901-SP486-C")) {
+               return 2048;
+       }
+
        return (16 << som_info.sdram_size);
 }