summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-12-28 20:45:06 +0300
committerTom Rini <trini@konsulko.com>2020-01-17 22:02:35 +0300
commit49acd56e4f1b0cb76af73bb1b22db20c81af3f78 (patch)
tree457e7b68186c0f1f0780408ac170b3e25e74f284 /include
parent9b4a205f454dd19687aaf9a22a5bc01164182a90 (diff)
downloadu-boot-49acd56e4f1b0cb76af73bb1b22db20c81af3f78.tar.xz
common: Move testdram() into init.h
This function is called during init so move it to the init header file. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/common.h4
-rw-r--r--include/init.h2
2 files changed, 2 insertions, 4 deletions
diff --git a/include/common.h b/include/common.h
index f9ad184f4a..b25744854c 100644
--- a/include/common.h
+++ b/include/common.h
@@ -59,10 +59,6 @@ void hang (void) __attribute__ ((noreturn));
#include <display_options.h>
-#if defined(CONFIG_SYS_DRAM_TEST)
-int testdram(void);
-#endif /* CONFIG_SYS_DRAM_TEST */
-
/* lib/uuid.c */
#include <uuid.h>
diff --git a/include/init.h b/include/init.h
index cb92c6a4b7..2a33a3fd1e 100644
--- a/include/init.h
+++ b/include/init.h
@@ -109,6 +109,8 @@ int dram_init_banksize(void);
long get_ram_size(long *base, long size);
phys_size_t get_effective_memsize(void);
+int testdram(void);
+
/**
* arch_reserve_stacks() - Reserve all necessary stacks
*