From 91527c9a306fca0f8162a22d8ecc4c7be0dfe332 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sat, 28 Dec 2019 10:45:05 -0700 Subject: 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 --- include/common.h | 4 ---- include/init.h | 3 +++ 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'include') 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 -/* 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 * -- cgit v1.3.1