From 96d4b75c0d7f1bbbbde19e6225b09b1f7e7b60fe Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Fri, 31 Mar 2017 08:40:37 -0600 Subject: 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: Simon Glass --- include/init_helpers.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 include/init_helpers.h (limited to 'include') diff --git a/include/init_helpers.h b/include/init_helpers.h new file mode 100644 index 0000000000..3efcfddb7b --- /dev/null +++ b/include/init_helpers.h @@ -0,0 +1,18 @@ +/* + * (C) Copyright 2011 + * Graeme Russ, + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#ifndef _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); + +#endif /* _INIT_HELPERS_H_ */ -- cgit