[coreboot-gerrit] New patch to review for coreboot: soc/intel/apollolake: Handle SoC-specific reset type in SoC code

Andrey Petrov (andrey.petrov@intel.com) gerrit at coreboot.org
Mon Jul 18 21:14:59 CEST 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/15751

-gerrit

commit ce5a3f0a9205743c9ba551e923f5fb31f3cb6ec0
Author: Andrey Petrov <andrey.petrov at intel.com>
Date:   Mon Jul 18 11:45:02 2016 -0700

    soc/intel/apollolake: Handle SoC-specific reset type in SoC code
    
    Add handling of Global Reset in SoC-provided callback function.
    
    Change-Id: Ibdb13c44d9c874315c446dcc04c796e1b404e3e1
    Signed-off-by: Andrey Petrov <andrey.petrov at intel.com>
---
 src/soc/intel/apollolake/reset.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/src/soc/intel/apollolake/reset.c b/src/soc/intel/apollolake/reset.c
index f759bac..84c3a41 100644
--- a/src/soc/intel/apollolake/reset.c
+++ b/src/soc/intel/apollolake/reset.c
@@ -15,6 +15,7 @@
 
 #include <console/console.h>
 #include <delay.h>
+#include <fsp/util.h>
 #include <reset.h>
 #include <soc/heci.h>
 #include <soc/pm.h>
@@ -57,3 +58,15 @@ void reset_prepare(void)
 	}
 	printk(BIOS_SPEW, "CSE took %lu ms\n", stopwatch_duration_msecs(&sw));
 }
+
+bool chipset_handle_reset(enum fsp_status status)
+{
+	switch(status) {
+	case FSP_STATUS_RESET_REQUIRED_5: /* Global Reset */
+		global_reset();
+		return true;
+	default:
+		break;
+	}
+	return false;
+}



More information about the coreboot-gerrit mailing list