summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-12-28 20:45:05 +0300
committerTom Rini <trini@konsulko.com>2020-01-17 22:02:35 +0300
commit9b4a205f454dd19687aaf9a22a5bc01164182a90 (patch)
treeeeca3b94aec1800823498c7a237ba67186214443 /include
parent220a3a44a339a32b3dae13122ec85ccaede5d988 (diff)
downloadu-boot-9b4a205f454dd19687aaf9a22a5bc01164182a90.tar.xz
common: Move RAM-sizing functions to init.h
These functions relate to memory init so move them into the init header. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/common.h4
-rw-r--r--include/init.h3
2 files changed, 3 insertions, 4 deletions
diff --git a/include/common.h b/include/common.h
index c69bad9771..f9ad184f4a 100644
--- a/include/common.h
+++ b/include/common.h
@@ -59,10 +59,6 @@ void hang (void) __attribute__ ((noreturn));
#include <display_options.h>
-/* common/memsize.c */
-long get_ram_size (long *, long);
-phys_size_t get_effective_memsize(void);
-
#if defined(CONFIG_SYS_DRAM_TEST)
int testdram(void);
#endif /* CONFIG_SYS_DRAM_TEST */
diff --git a/include/init.h b/include/init.h
index c5498476f8..cb92c6a4b7 100644
--- a/include/init.h
+++ b/include/init.h
@@ -106,6 +106,9 @@ int dram_init(void);
*/
int dram_init_banksize(void);
+long get_ram_size(long *base, long size);
+phys_size_t get_effective_memsize(void);
+
/**
* arch_reserve_stacks() - Reserve all necessary stacks
*