summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-07-13 06:06:58 -0600
committerSimon Glass <sjg@chromium.org>2022-07-26 02:30:56 -0600
commit281996110c1f42b5476e43040798cb38169b6119 (patch)
tree01b20167e46f50bead23e6d34bc5335ff58356bc /board
parent109dbdf042e2a034edd8ed7b711143c522cb1465 (diff)
downloadu-boot-281996110c1f42b5476e43040798cb38169b6119.tar.gz
u-boot-281996110c1f42b5476e43040798cb38169b6119.tar.bz2
u-boot-281996110c1f42b5476e43040798cb38169b6119.zip
addrmap: Support on sandbox
Update this feature so that it works on sandbox, using a basic identity mapping. This allows us to run the 'ut addrmap' test. Also fix up the test to use the correct macros to access the linker list, so that the 'ut addrmap' command actually works. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'board')
-rw-r--r--board/sandbox/sandbox.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/board/sandbox/sandbox.c b/board/sandbox/sandbox.c
index e054f300c4..ca9a2ca5b1 100644
--- a/board/sandbox/sandbox.c
+++ b/board/sandbox/sandbox.c
@@ -4,6 +4,7 @@
*/
#include <common.h>
+#include <addr_map.h>
#include <cpu_func.h>
#include <cros_ec.h>
#include <dm.h>
@@ -155,3 +156,11 @@ int board_late_init(void)
return 0;
}
#endif
+
+int init_addr_map(void)
+{
+ if (IS_ENABLED(CONFIG_ADDR_MAP))
+ addrmap_set_entry(0, 0, CONFIG_SYS_SDRAM_SIZE, 0);
+
+ return 0;
+}