From 49acd56e4f1b0cb76af73bb1b22db20c81af3f78 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sat, 28 Dec 2019 10:45:06 -0700 Subject: 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 --- include/common.h | 4 ---- include/init.h | 2 ++ 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/common.h b/include/common.h index f9ad184f4a5..b25744854c7 100644 --- a/include/common.h +++ b/include/common.h @@ -59,10 +59,6 @@ void hang (void) __attribute__ ((noreturn)); #include -#if defined(CONFIG_SYS_DRAM_TEST) -int testdram(void); -#endif /* CONFIG_SYS_DRAM_TEST */ - /* lib/uuid.c */ #include diff --git a/include/init.h b/include/init.h index cb92c6a4b75..2a33a3fd1e4 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 * -- cgit v1.2.3