[coreboot-gerrit] Change in coreboot[master]: console/post_codes: Add post codes for memory param prep callback

Furquan Shaikh (Code Review) gerrit at coreboot.org
Tue Oct 16 20:58:22 CEST 2018


Furquan Shaikh has uploaded this change for review. ( https://review.coreboot.org/29150


Change subject: console/post_codes: Add post codes for memory param prep callback
......................................................................

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 at google.com>
---
M src/include/console/post_codes.h
1 file changed, 16 insertions(+), 0 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/50/29150/1

diff --git a/src/include/console/post_codes.h b/src/include/console/post_codes.h
index 0277337..f482ae9 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

-- 
To view, visit https://review.coreboot.org/29150
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I065518caedb7943d960a8a5c8708823b8eb3246d
Gerrit-Change-Number: 29150
Gerrit-PatchSet: 1
Gerrit-Owner: Furquan Shaikh <furquan at google.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20181016/902e82c9/attachment.html>


More information about the coreboot-gerrit mailing list