]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sandbox: Add a memory {} node
authorSimon Glass <sjg@chromium.org>
Sat, 18 May 2019 17:59:48 +0000 (11:59 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 10 Jul 2019 22:52:58 +0000 (16:52 -0600)
Add a memory node which indicates the size of sandbox memory.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/dts/sandbox.dts
arch/sandbox/dts/sandbox64.dts
include/configs/sandbox.h

index 9a949791a0eba7eadaaf57461a6260738ea0bcc1..16a33db87d3f3d2a2e3c95017b5ba76b7a4282ba 100644 (file)
@@ -1,5 +1,7 @@
 /dts-v1/;
 
+#include <config.h>
+
 / {
        #address-cells = <1>;
        #size-cells = <1>;
                spi0 = &spi;
        };
 
+       memory {
+               reg = <0 CONFIG_SYS_SDRAM_SIZE>;
+       };
+
        cros_ec: cros-ec {
                reg = <0 0>;
                u-boot,dm-pre-reloc;
index da2b4423fdcccf4a95e56518dd2d9da5aebced1c..37a5539ff47fa6cf3bab68c5f4ebab6eda665d62 100644 (file)
@@ -1,5 +1,7 @@
 /dts-v1/;
 
+#include <config.h>
+
 / {
        #address-cells = <2>;
        #size-cells = <2>;
                spi0 = &spi;
        };
 
+       memory {
+               reg = /bits/ 64 <0 CONFIG_SYS_SDRAM_SIZE>;
+       };
+
        cros_ec: cros-ec {
                reg = <0 0 0 0>;
                u-boot,dm-pre-reloc;
index 50affaf1a826db0a5df0264ad18730071249e77b..5d75021ed6b7dbede7335d6714a9a1a8cb8dfdd5 100644 (file)
        func(HOST, host, 1) \
        func(HOST, host, 0)
 
+#ifdef __ASSEMBLY__
+#define BOOTENV
+#else
 #include <config_distro_bootcmd.h>
+#endif
 
 #define CONFIG_KEEP_SERVERADDR
 #define CONFIG_UDP_CHECKSUM