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 9a94979..16a33db 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 da2b442..37a5539 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 50affaf..5d75021 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