summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-12-28 20:44:56 +0300
committerTom Rini <trini@konsulko.com>2020-01-17 21:27:28 +0300
commit35a3f871fcf6a80ff42885782c3ba10d7fc62046 (patch)
tree625b969156e65aba83273d336a568a46e65e4db2 /include
parent6f5fb71240cda307dcc3c031a1bce3ab4f15c308 (diff)
downloadu-boot-35a3f871fcf6a80ff42885782c3ba10d7fc62046.tar.xz
common: Move ll_boot_init() to init.h
This is an init-related function so belongs in that file. Move it. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/common.h7
-rw-r--r--include/init.h7
2 files changed, 7 insertions, 7 deletions
diff --git a/include/common.h b/include/common.h
index f38dc2ef3f..a971f75f8b 100644
--- a/include/common.h
+++ b/include/common.h
@@ -114,13 +114,6 @@ int get_serial_clock(void);
offsetof(struct structure, member) == offset, \
"`struct " #structure "` offset for `" #member "` is not " #offset)
-/* Avoid using CONFIG_EFI_STUB directly as we may boot from other loaders */
-#ifdef CONFIG_EFI_STUB
-#define ll_boot_init() false
-#else
-#define ll_boot_init() true
-#endif
-
/* Pull in stuff for the build system */
#ifdef DO_DEPS_ONLY
# include <env_internal.h>
diff --git a/include/init.h b/include/init.h
index f6105de666..c5498476f8 100644
--- a/include/init.h
+++ b/include/init.h
@@ -16,6 +16,13 @@ struct global_data;
#ifndef __ASSEMBLY__ /* put C only stuff in this section */
+/* Avoid using CONFIG_EFI_STUB directly as we may boot from other loaders */
+#ifdef CONFIG_EFI_STUB
+#define ll_boot_init() false
+#else
+#define ll_boot_init() true
+#endif
+
/*
* Function Prototypes
*/