summaryrefslogtreecommitdiff
path: root/include/asm-generic
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-08-04 12:33:39 -0600
committerSimon Glass <sjg@chromium.org>2015-08-05 08:43:46 -0600
commitf05ad9ba4c22b5c5929406394a0889791c2778da (patch)
treea240191c7acd2c21b25a78ffed724524b32732b7 /include/asm-generic
parent7bea52716020d5aa2298fff871b8a7f1361ad2b0 (diff)
downloadu-boot-imx-f05ad9ba4c22b5c5929406394a0889791c2778da.zip
u-boot-imx-f05ad9ba4c22b5c5929406394a0889791c2778da.tar.gz
u-boot-imx-f05ad9ba4c22b5c5929406394a0889791c2778da.tar.bz2
Add a way to skip relocation
When running U-Boot as an EFI application we cannot relocate since we do not have relocation information. U-Boot has already been relocated to a suitable address. Add a global_data flag to control skipping relocation. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include/asm-generic')
-rw-r--r--include/asm-generic/global_data.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h
index 9f5db0f..2155265 100644
--- a/include/asm-generic/global_data.h
+++ b/include/asm-generic/global_data.h
@@ -117,5 +117,6 @@ typedef struct global_data {
#define GD_FLG_SERIAL_READY 0x00100 /* Pre-reloc serial console ready */
#define GD_FLG_FULL_MALLOC_INIT 0x00200 /* Full malloc() is ready */
#define GD_FLG_SPL_INIT 0x00400 /* spl_init() has been called */
+#define GD_FLG_SKIP_RELOC 0x00800 /* Don't relocate */
#endif /* __ASM_GENERIC_GBL_DATA_H */