board: gateworks: venice: switch to 2-bank dram config
PATCH 1/1 board: gateworks: venice: switch to 2-bank dram config
Switch to a 2-bank dram config to properly support 4GiB.
Signed-off-by Tim Harvey <[email protected]>
--- board/gateworks/venice/venice.c | 2 +- include/configs/imx8mm_venice.h | 9 +++++---- include/configs/imx8mn_venice.h | 9 +++++---- include/configs/imx8mp_venice.h | 9 +++++---- 4 files changed, 16 insertions(+), 13 deletions(-)
board/gateworks/venice/venice.c +1 -1
@@ -17,7 +17,7 @@ int board_phys_sdram_size(phys_size_t *size)if (!size)return -EINVAL ; - *size =get_ram_size ((void *)PHYS_SDRAM ,PHYS_SDRAM_SIZE ); + *size =get_ram_size ((void *)PHYS_SDRAM , (long )PHYS_SDRAM_SIZE + (long )PHYS_SDRAM_2_SIZE );return 0 ; }
include/configs/imx8mm_venice.h +5 -4
@@ -32,10 +32,11 @@#define CFG_SYS_INIT_RAM_ADDR 0x40000000#define CFG_SYS_INIT_RAM_SIZE SZ_2M +/* SDRAM configuration: 4GiB */ #define CFG_SYS_SDRAM_BASE 0x40000000 - -/* SDRAM configuration */ -#define PHYS_SDRAM 0x40000000 -#define PHYS_SDRAM_SIZE SZ_4G +#define PHYS_SDRAM 0x40000000 +#define PHYS_SDRAM_SIZE 0x80000000/* 2 GB */ +#define PHYS_SDRAM_2 0xC0000000 +#define PHYS_SDRAM_2_SIZE 0x80000000/* 2 GB */ #endif
include/configs/imx8mn_venice.h +5 -4
@@ -26,10 +26,11 @@#define CFG_SYS_INIT_RAM_ADDR 0x40000000#define CFG_SYS_INIT_RAM_SIZE SZ_2M +/* SDRAM configuration: 4GiB */ #define CFG_SYS_SDRAM_BASE 0x40000000 - -/* SDRAM configuration */ -#define PHYS_SDRAM 0x40000000 -#define PHYS_SDRAM_SIZE SZ_4G +#define PHYS_SDRAM 0x40000000 +#define PHYS_SDRAM_SIZE 0x80000000/* 2 GB */ +#define PHYS_SDRAM_2 0xC0000000 +#define PHYS_SDRAM_2_SIZE 0x80000000/* 2 GB */ #endif
include/configs/imx8mp_venice.h +5 -4
@@ -26,10 +26,11 @@#define CFG_SYS_INIT_RAM_ADDR 0x40000000#define CFG_SYS_INIT_RAM_SIZE SZ_2M +/* SDRAM configuration: 4GiB */ #define CFG_SYS_SDRAM_BASE 0x40000000 - -/* SDRAM configuration */ -#define PHYS_SDRAM 0x40000000 -#define PHYS_SDRAM_SIZE SZ_4G +#define PHYS_SDRAM 0x40000000 +#define PHYS_SDRAM_SIZE 0x80000000/* 2 GB */ +#define PHYS_SDRAM_2 0xC0000000 +#define PHYS_SDRAM_2_SIZE 0x80000000/* 2 GB */ #endif
Signature · 1 line
2.25.1
Quoted 3 lines · Tim Harvey
Switch to a 2-bank dram config to properly support 4GiB.
Signed-off-by Tim Harvey<[email protected]>
Reviewed-by Peng Fan <[email protected]>
PATCH 1/1 board: gateworks: venice: switch to 2-bank dram config
In reply to Tim HarveyQuoted 3 lines
Switch to a 2-bank dram config to properly support 4GiB.
Signed-off-by Tim Harvey <[email protected]>Reviewed-by Peng Fan <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================