diff options
author | Simon Glass | 2019-12-28 10:45:05 -0700 |
---|---|---|
committer | Jagan Teki | 2020-01-24 23:06:49 +0530 |
commit | 91527c9a306fca0f8162a22d8ecc4c7be0dfe332 (patch) | |
tree | d5f2844bc33c47369b5b73e75a58d12127cc37ad /include | |
parent | f32934916c65d3c26c5436b393d886fce8b9ab9f (diff) |
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.h | 4 | ||||
-rw-r--r-- | include/init.h | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/include/common.h b/include/common.h index c69bad97714..f9ad184f4a5 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 c5498476f8c..cb92c6a4b75 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 * |