summaryrefslogtreecommitdiff
path: root/include/bootstage.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-05-22 11:05:30 (GMT)
committerTom Rini <trini@konsulko.com>2017-06-05 18:13:06 (GMT)
commit25e7dc6a6a798451973b2a3d7c02edc3658b270d (patch)
tree539affa59aa67cc86112c2159edf6ff4aaa3e83a /include/bootstage.h
parentff00226e0b55d08c55fca843ff9c4819b247e08c (diff)
downloadu-boot-fsl-qoriq-25e7dc6a6a798451973b2a3d7c02edc3658b270d.tar.xz
bootstage: Support relocating boostage data
Some boards cannot access pre-relocation data after relocation. Reserve space for this and copy it during preparation for relocation. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/bootstage.h')
-rw-r--r--include/bootstage.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/bootstage.h b/include/bootstage.h
index 41bd617..8607e88 100644
--- a/include/bootstage.h
+++ b/include/bootstage.h
@@ -332,6 +332,13 @@ int bootstage_stash(void *base, int size);
int bootstage_unstash(void *base, int size);
/**
+ * bootstage_get_size() - Get the size of the bootstage data
+ *
+ * @return size of boostage data in bytes
+ */
+int bootstage_get_size(void);
+
+/**
* bootstage_init() - Prepare bootstage for use
*
* @first: true if this is the first time bootstage is set up. This causes it
@@ -400,6 +407,11 @@ static inline int bootstage_unstash(void *base, int size)
return 0; /* Pretend to succeed */
}
+static inline int bootstage_get_size(void)
+{
+ return 0;
+}
+
static inline int bootstage_init(bool first)
{
return 0;