]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: toradex: verdin-imx8mm: increase maximum addressable ram to 4GB
authorEmanuele Ghidoli <emanuele.ghidoli@toradex.com>
Tue, 28 May 2024 09:59:38 +0000 (11:59 +0200)
committerFabio Estevam <festevam@gmail.com>
Mon, 3 Jun 2024 15:13:22 +0000 (12:13 -0300)
Add support for SKUs with higher memory sizes.
Actual memory size is auto-detected.

Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
board/toradex/verdin-imx8mm/verdin-imx8mm.c
include/configs/verdin-imx8mm.h

index 020ee67748076ff870a7450b9343ded6fdcc91fb..3659316e23b6e3b934255900bbbc37be95dda70b 100644 (file)
@@ -117,7 +117,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, PHYS_SDRAM_SIZE + PHYS_SDRAM_2_SIZE);
 
        return 0;
 }
index 34238d3b505cd4b443195d36215a55de42163fed..12d2b6823058cefc4fdf77cf8fd37f1847e5005e 100644 (file)
 #define CFG_SYS_SDRAM_BASE           0x40000000
 
 /* SDRAM configuration */
-#define PHYS_SDRAM                      0x40000000
-#define PHYS_SDRAM_SIZE                        SZ_2G /* 2GB DDR */
+#define PHYS_SDRAM                   0x40000000
+#define PHYS_SDRAM_SIZE              (long)(SZ_2G + SZ_1G)
+#define PHYS_SDRAM_2                 0x100000000
+#define PHYS_SDRAM_2_SIZE            (long)(SZ_1G)
 
 /* USB Configs */
 #define CFG_MXC_USB_PORTSC     (PORT_PTS_UTMI | PORT_PTS_PTW)