[coreboot-gerrit] New patch to review for coreboot: soc/apollolake: Add hooks to call FspNotify

Andrey Petrov (andrey.petrov@intel.com) gerrit at coreboot.org
Sun Jan 24 03:33:36 CET 2016


Andrey Petrov (andrey.petrov at intel.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/13359

-gerrit

commit b102d9487073bb00656ebf36a96adfbe7578ffec
Author: Andrey Petrov <andrey.petrov at intel.com>
Date:   Tue Nov 17 16:05:20 2015 -0800

    soc/apollolake: Add hooks to call FspNotify
    
    This adds hooks to call into FspNotify at different stages
    of ramstage.
    
    Change-Id: Ic80eea95e5a32a09fb3252a9a473fd40e9a3d6d9
    Signed-off-by: Andrey Petrov <andrey.petrov at intel.com>
---
 src/soc/intel/apollolake/chip.c | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/src/soc/intel/apollolake/chip.c b/src/soc/intel/apollolake/chip.c
index 52b8dd4..180cfc1 100644
--- a/src/soc/intel/apollolake/chip.c
+++ b/src/soc/intel/apollolake/chip.c
@@ -11,6 +11,8 @@
  * (at your option) any later version.
  */
 
+#include <bootstate.h>
+#include <console/console.h>
 #include <cpu/cpu.h>
 #include <device/device.h>
 #include <device/pci.h>
@@ -63,3 +65,19 @@ struct chip_operations soc_intel_apollolake_ops = {
 	.enable_dev = &enable_dev,
 	.init = &soc_init
 };
+
+static void fsp_notify_dummy(void *arg)
+{
+
+	enum fsp_notify_phase ph = (enum fsp_notify_phase) arg;
+
+	if (fsp_notify(ph) != FSP_SUCCESS)
+		printk(BIOS_CRIT, "FspNotify failed!\n");
+}
+
+BOOT_STATE_INIT_ENTRY(BS_DEV_RESOURCES, BS_ON_EXIT, fsp_notify_dummy,
+						(void *) AFTER_PCI_ENUM);
+BOOT_STATE_INIT_ENTRY(BS_PAYLOAD_LOAD, BS_ON_EXIT, fsp_notify_dummy,
+						(void *) READY_TO_BOOT);
+BOOT_STATE_INIT_ENTRY(BS_OS_RESUME, BS_ON_ENTRY, fsp_notify_dummy,
+						(void *) READY_TO_BOOT);



More information about the coreboot-gerrit mailing list