common: arm: Move s_init() to an ARM-specific header
authorSimon Glass <sjg@chromium.org>
Sat, 28 Dec 2019 17:44:55 +0000 (10:44 -0700)
committerJagan Teki <jagan@amarulasolutions.com>
Fri, 24 Jan 2020 17:36:48 +0000 (23:06 +0530)
This function is only used on ARM devices so does not belong in the global
common header file. Move it to an ARM header.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/arm/include/asm/u-boot-arm.h
include/common.h

index 2e8c8e5..62cb5b4 100644 (file)
@@ -23,6 +23,8 @@ extern ulong _datarellocal_start_ofs;
 extern ulong _datarelro_start_ofs;
 extern ulong IRQ_STACK_START_IN;       /* 8 bytes in IRQ stack */
 
+void s_init(void);
+
 /* cpu/.../cpu.c */
 int    cleanup_before_linux(void);
 
index 463eeb5..f38dc2e 100644 (file)
@@ -74,8 +74,6 @@ phys_size_t get_effective_memsize(void);
 int testdram(void);
 #endif /* CONFIG_SYS_DRAM_TEST */
 
-void s_init(void);
-
 void   upmconfig     (unsigned int, unsigned int *, unsigned int);
 ulong  get_tbclk     (void);
 void   reset_misc    (void);