]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: verdin-am62: fix check for minimum memory size
authorEmanuele Ghidoli <emanuele.ghidoli@toradex.com>
Thu, 24 Aug 2023 08:08:50 +0000 (10:08 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 8 Sep 2023 14:07:11 +0000 (10:07 -0400)
verdin am62 SKUs comes in multiple memory configuration, check that
the detected memory is at least 512MB since we have some
reserved memory just before this threshold and therefore
the module cannot work with less memory.

Fixes: 7d1a10659f5b ("board: toradex: add verdin am62 support")
Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
Acked-by: Francesco Dolcini <francesco.dolcini@toradex.com>
board/toradex/verdin-am62/verdin-am62.c

index a3d1d07a0cbf529230fbba487e7382f625ac762e..d09dda5bccc9e3ee3aea35d6902630e1ae4d1908 100644 (file)
@@ -28,8 +28,8 @@ int dram_init(void)
 {
        gd->ram_size = get_ram_size((long *)CFG_SYS_SDRAM_BASE, CFG_SYS_SDRAM_SIZE);
 
-       if (gd->ram_size < SZ_64M)
-               puts("## WARNING: Less than 64MB RAM detected\n");
+       if (gd->ram_size < SZ_512M)
+               puts("## WARNING: Less than 512MB RAM detected\n");
 
        return 0;
 }