Skip to content
Snippets Groups Projects
Commit 96d4b75c authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

board_f: Make init_helpers generic


This header file is used by two archs. It could be used by all of them
since it allows the cache to be on during relocation. Move it into a
generic file.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent e5fb573f
No related branches found
No related tags found
No related merge requests found
/*
* Copyright (C) 2013-2015 Synopsys, Inc. All rights reserved.
*
* SPDX-License-Identifier: GPL-2.0+
*/
#ifndef _ASM_ARC_INIT_HELPERS_H
#define _ASM_ARC_INIT_HELPERS_H
int init_cache_f_r(void);
#endif /* _ASM_ARC_INIT_HELPERS_H */
...@@ -6,9 +6,9 @@ ...@@ -6,9 +6,9 @@
#include <common.h> #include <common.h>
#include <debug_uart.h> #include <debug_uart.h>
#include <init_helpers.h>
#include <spl.h> #include <spl.h>
#include <asm/cpu.h> #include <asm/cpu.h>
#include <asm/init_helpers.h>
#include <asm/mtrr.h> #include <asm/mtrr.h>
#include <asm/processor.h> #include <asm/processor.h>
#include <asm-generic/sections.h> #include <asm-generic/sections.h>
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#include <fs.h> #include <fs.h>
#include <i2c.h> #include <i2c.h>
#include <initcall.h> #include <initcall.h>
#include <init_helpers.h>
#include <logbuff.h> #include <logbuff.h>
#include <malloc.h> #include <malloc.h>
#include <mapmem.h> #include <mapmem.h>
...@@ -46,9 +47,6 @@ ...@@ -46,9 +47,6 @@
#include <watchdog.h> #include <watchdog.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/sections.h> #include <asm/sections.h>
#if defined(CONFIG_X86) || defined(CONFIG_ARC)
#include <asm/init_helpers.h>
#endif
#if defined(CONFIG_X86) || defined(CONFIG_ARC) || defined(CONFIG_XTENSA) #if defined(CONFIG_X86) || defined(CONFIG_ARC) || defined(CONFIG_XTENSA)
#include <asm/relocate.h> #include <asm/relocate.h>
#endif #endif
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include <ide.h> #include <ide.h>
#endif #endif
#include <initcall.h> #include <initcall.h>
#include <init_helpers.h>
#ifdef CONFIG_PS2KBD #ifdef CONFIG_PS2KBD
#include <keyboard.h> #include <keyboard.h>
#endif #endif
...@@ -53,9 +54,6 @@ ...@@ -53,9 +54,6 @@
#include <asm/mmu.h> #include <asm/mmu.h>
#endif #endif
#include <asm/sections.h> #include <asm/sections.h>
#ifdef CONFIG_X86
#include <asm/init_helpers.h>
#endif
#include <dm/root.h> #include <dm/root.h>
#include <linux/compiler.h> #include <linux/compiler.h>
#include <linux/err.h> #include <linux/err.h>
......
...@@ -8,6 +8,11 @@ ...@@ -8,6 +8,11 @@
#ifndef _INIT_HELPERS_H_ #ifndef _INIT_HELPERS_H_
#define _INIT_HELPERS_H_ #define _INIT_HELPERS_H_
/**
* init_cache_f_r() - Turn on the cache in preparation for relocation
*
* @return 0 if OK, -ve on error
*/
int init_cache_f_r(void); int init_cache_f_r(void);
#endif /* !_INIT_HELPERS_H_ */ #endif /* _INIT_HELPERS_H_ */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment