[coreboot-gerrit] Patch set updated for coreboot: 1a72652 samus: Add clear_recovery_mode_switch function

Stefan Reinauer (stefan.reinauer@coreboot.org) gerrit at coreboot.org
Fri Apr 10 03:25:24 CEST 2015


Stefan Reinauer (stefan.reinauer at coreboot.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/9492

-gerrit

commit 1a72652c04a4bd54084330a998dcf6fe891635d2
Author: Duncan Laurie <dlaurie at chromium.org>
Date:   Thu Jan 15 13:24:38 2015 -0800

    samus: Add clear_recovery_mode_switch function
    
    In order for recovery request to be cleared with software sync disabled
    we need to implement this function in the mainboard.
    
    BUG=chrome-os-partner:28234
    BRANCH=samus
    TEST=boot in recovery with software sync disabled, ensure that the next
    boot will not boot in recovery again.
    
    Change-Id: Ie9c845396dfc6ab65296b2f18a86e23590c833d6
    Signed-off-by: Stefan Reinauer <reinauer at chromium.org>
    Original-Commit-Id: 430f85608cc3b59a68a86dba64ffe428bfc216a9
    Original-Change-Id: Iac15b6a1b23cc971231339439bceb013f4a031bd
    Original-Signed-off-by: Duncan Laurie <dlaurie at chromium.org>
    Original-Reviewed-on: https://chromium-review.googlesource.com/241052
    Original-Reviewed-by: Shawn N <shawnn at chromium.org>
---
 src/mainboard/google/samus/chromeos.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/mainboard/google/samus/chromeos.c b/src/mainboard/google/samus/chromeos.c
index fc7acff..fab06e8 100644
--- a/src/mainboard/google/samus/chromeos.c
+++ b/src/mainboard/google/samus/chromeos.c
@@ -92,6 +92,15 @@ int get_recovery_mode_switch(void)
 #endif
 }
 
+int clear_recovery_mode_switch(void)
+{
+	const uint32_t kb_rec_mask =
+		EC_HOST_EVENT_MASK(EC_HOST_EVENT_KEYBOARD_RECOVERY);
+
+	/* Unconditionally clear the EC recovery request. */
+	return google_chromeec_clear_events_b(kb_rec_mask);
+}
+
 int get_write_protect_state(void)
 {
 	return get_gpio(CROS_WP_GPIO);



More information about the coreboot-gerrit mailing list