diff options
author | Simon Glass <sjg@chromium.org> | 2017-03-31 08:40:37 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-04-05 16:36:56 -0400 |
commit | 96d4b75c0d7f1bbbbde19e6225b09b1f7e7b60fe (patch) | |
tree | 0860497862d4c5e0fd308eb703111c1421ca5230 /include/init_helpers.h | |
parent | e5fb573f6431d7585ef43eb02b67ac1a07f40094 (diff) |
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 <sjg@chromium.org>
Diffstat (limited to 'include/init_helpers.h')
-rw-r--r-- | include/init_helpers.h | 18 |
1 files changed, 18 insertions, 0 deletions
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, <graeme.russ@gmail.com> + * + * 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_ */ |