summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/mrccache.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-04-25 21:58:57 -0600
committerBin Meng <bmeng.cn@gmail.com>2019-05-08 13:02:14 +0800
commit9a67994e0132f0a078de6ab7c11a049dbb5c365c (patch)
tree80ae8d60eb2048bebaf6554648c72fe5656f20b6 /arch/x86/include/asm/mrccache.h
parent17903c06e8d4d960b6d3ae1444905e45fe99a551 (diff)
x86: Support saving MRC data from SPL
When SPL is used to set up the memory controller we want to save the MRC data in SPL to avoid needing to pass it up to U-Boot proper to save. Add a function to handle that. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/include/asm/mrccache.h')
-rw-r--r--arch/x86/include/asm/mrccache.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/x86/include/asm/mrccache.h b/arch/x86/include/asm/mrccache.h
index 04783cd3292..40fda856ff4 100644
--- a/arch/x86/include/asm/mrccache.h
+++ b/arch/x86/include/asm/mrccache.h
@@ -103,4 +103,15 @@ int mrccache_get_region(struct udevice **devp, struct mrc_region *entry);
*/
int mrccache_save(void);
+/**
+ * mrccache_spl_save() - Save to the MRC region from SPL
+ *
+ * When SPL is used to set up the memory controller we want to save the MRC
+ * data in SPL to avoid needing to pass it up to U-Boot proper to save. This
+ * function handles that.
+ *
+ * @return 0 if saved to SPI flash successfully, other error if failed
+ */
+int mrccache_spl_save(void);
+
#endif /* _ASM_MRCCACHE_H */