summaryrefslogtreecommitdiff
path: root/src/mainboard/google/brya/chromeos.c
diff options
context:
space:
mode:
authorTim Wawrzynczak <twawrzynczak@chromium.org>2021-03-05 16:40:25 -0700
committerTim Wawrzynczak <twawrzynczak@chromium.org>2021-03-08 18:25:11 +0000
commitc4e9c4e5547815d0146db130daafbde302997d48 (patch)
treeba2545e5e25df7840af1409a4796a21e6ad80376 /src/mainboard/google/brya/chromeos.c
parent812b54ef1792d4995969c9519834c95330adde7e (diff)
mb/google/brya: Finish support for ChromeOS GPIOs
BUG=b:181887865 TEST=`crossystem` shows correct state of WP signal when toggled Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Change-Id: If49ca1d70cc36ab74d70e858336679c0a9a3258e Reviewed-on: https://review.coreboot.org/c/coreboot/+/51312 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: EricR Lai <ericr_lai@compal.corp-partner.google.com>
Diffstat (limited to 'src/mainboard/google/brya/chromeos.c')
-rw-r--r--src/mainboard/google/brya/chromeos.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainboard/google/brya/chromeos.c b/src/mainboard/google/brya/chromeos.c
index 5b098b52ff..add73464da 100644
--- a/src/mainboard/google/brya/chromeos.c
+++ b/src/mainboard/google/brya/chromeos.c
@@ -12,14 +12,14 @@ void fill_lb_gpios(struct lb_gpios *gpios)
{-1, ACTIVE_HIGH, get_lid_switch(), "lid"},
{-1, ACTIVE_HIGH, 0, "power"},
{-1, ACTIVE_HIGH, gfx_get_init_done(), "oprom"},
+ {GPIO_EC_IN_RW, ACTIVE_HIGH, gpio_get(GPIO_EC_IN_RW), "EC in RW"},
};
lb_add_gpios(gpios, chromeos_gpios, ARRAY_SIZE(chromeos_gpios));
}
int get_write_protect_state(void)
{
- /* No write protect */
- return 0;
+ return gpio_get(GPIO_PCH_WP);
}
void mainboard_chromeos_acpi_generate(void)