[coreboot-gerrit] New patch to review for coreboot: bea94e0 rush: Add gpio config for PWR button and LID open switch

Stefan Reinauer (stefan.reinauer@coreboot.org) gerrit at coreboot.org
Fri Apr 10 22:34:26 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/9575

-gerrit

commit bea94e0c4058ba0418be572a097bdacb62381c52
Author: Jimmy Zhang <jimmzhang at nvidia.com>
Date:   Thu Dec 4 17:24:43 2014 -0800

    rush: Add gpio config for PWR button and LID open switch
    
    Due to CL https://chromium-review.googlesource.com/231250,
    depthcharge now detects gpio state based on gpio configurations
    done by coreboot instead of redoing configuration at
    depthcharge. However, PWR button and LID open pins have not
    been configured in coreboot. So, add the missing code here.
    Otherwise, TOT coreboot/depthcharge rush build can not load
    in kernel.
    
    BUG=chrome-os-partner:34336
    BRANCH=none
    TEST=build rush and test with pwr button press and lid switch
    
    Change-Id: I7acc5e021fa769f68d4cbfd7202df325d4ea73c2
    Signed-off-by: Stefan Reinauer <reinauer at chromium.org>
    Original-Commit-Id: a25dff24a2dcd33fcd15eb766432414af215c3ab
    Original-Change-Id: I6c322cd987967920f236aae653294db079678408
    Original-Signed-off-by: Jimmy Zhang <jimmzhang at nvidia.com>
    Original-Reviewed-on: https://chromium-review.googlesource.com/233322
    Original-Reviewed-by: Aaron Durbin <adurbin at chromium.org>
---
 src/mainboard/google/rush/bootblock.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/mainboard/google/rush/bootblock.c b/src/mainboard/google/rush/bootblock.c
index eb61cdd..6680cba 100644
--- a/src/mainboard/google/rush/bootblock.c
+++ b/src/mainboard/google/rush/bootblock.c
@@ -50,6 +50,12 @@ static const struct pad_config padcfgs[] = {
 	PAD_CFG_GPIO_INPUT(GPIO_X1_AUD, PINMUX_PULL_NONE),
 	PAD_CFG_GPIO_INPUT(KB_ROW17, PINMUX_PULL_NONE),
 	PAD_CFG_GPIO_INPUT(KB_COL3, PINMUX_PULL_NONE),
+
+	/* Power Button */
+	PAD_CFG_GPIO_INPUT(KB_COL0, PINMUX_PULL_NONE),
+
+	/* Lid Open Switch */
+	PAD_CFG_GPIO_INPUT(KB_ROW4, PINMUX_PULL_UP),
 };
 
 static const struct pad_config i2cpad[] = {



More information about the coreboot-gerrit mailing list