diff options
author | Tim Harvey <tharvey@gateworks.com> | 2025-05-23 10:20:10 -0700 |
---|---|---|
committer | Fabio Estevam <festevam@gmail.com> | 2025-05-30 19:10:55 -0300 |
commit | c83ab8264087282bbd339cc6c55f2033a6667ff9 (patch) | |
tree | dc58151eda1f055f14efc93d6ea7805a5e137d9d | |
parent | 1bf9f1e5501819dd39abcbfc87c823d4639c128e (diff) |
board: venice: fix dram size for GW7901-SP486
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>
-rw-r--r-- | board/gateworks/venice/eeprom.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/board/gateworks/venice/eeprom.c b/board/gateworks/venice/eeprom.c index afaabf34879..abe25256e66 100644 --- a/board/gateworks/venice/eeprom.c +++ b/board/gateworks/venice/eeprom.c @@ -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); } |