summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2018-10-16 11:49:16 -0700
committerPatrick Georgi <pgeorgi@google.com>2018-10-18 12:46:06 +0000
commit9706359fd8077e4027f6c8c8586bc40bdbb3a3f7 (patch)
tree8d73bdcf237fc9bccb132ad4d89c7125442e5985
parent0ccfc0cc5327b2da6ac062eeda8fdf2afdf6a532 (diff)
console/post_codes: Add post codes for memory param prep callback
This change adds two new post codes to indicate start and end of memory param preparation in callbacks to SoC/mainboard code: 1. 0x34: Start of memory preparation 2. 0x36: End of memory preparation These post codes are already used in coreboot. This change just ensures that the codes are defined in post_codes.h for easy lookup. These post codes are useful if SoC/mainboard decides to do a reset of the platform before returning back to memory initialization. Change-Id: I065518caedb7943d960a8a5c8708823b8eb3246d Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://review.coreboot.org/29150 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Karthik Ramasubramanian <kramasub@google.com> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
-rw-r--r--src/include/console/post_codes.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/include/console/post_codes.h b/src/include/console/post_codes.h
index 0277337a0a..f482ae9e47 100644
--- a/src/include/console/post_codes.h
+++ b/src/include/console/post_codes.h
@@ -82,6 +82,22 @@
#define POST_ENTRY_C_START 0x13
/**
+ * \brief Pre-memory init preparation start
+ *
+ * Post code emitted in romstage before making callbacks to allow SoC/mainboard
+ * to prepare params for FSP memory init.
+ */
+#define POST_MEM_PREINIT_PREP_START 0x34
+
+/**
+ * \brief Pre-memory init preparation end
+ *
+ * Post code emitted in romstage after returning from SoC/mainboard callbacks
+ * to prepare params for FSP memory init.
+ */
+#define POST_MEM_PREINIT_PREP_END 0x36
+
+/**
* \brief Pre call to RAM stage main()
*
* POSTed right before RAM stage main() is called from c_start.S