aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/google/beltino/chromeos.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/beltino/chromeos.c')
-rw-r--r--src/mainboard/google/beltino/chromeos.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mainboard/google/beltino/chromeos.c b/src/mainboard/google/beltino/chromeos.c
index 1a1d0a29dc..92bb7b445a 100644
--- a/src/mainboard/google/beltino/chromeos.c
+++ b/src/mainboard/google/beltino/chromeos.c
@@ -33,9 +33,10 @@
void fill_lb_gpios(struct lb_gpios *gpios)
{
struct lb_gpio chromeos_gpios[] = {
- {GPIO_SPI_WP, ACTIVE_HIGH, 0, "write protect"},
+ {GPIO_SPI_WP, ACTIVE_HIGH,
+ get_write_protect_state(), "write protect"},
{GPIO_REC_MODE, ACTIVE_LOW,
- get_recovery_mode_switch(), "recovery"},
+ !get_recovery_mode_switch(), "recovery"},
{-1, ACTIVE_HIGH, 1, "lid"},
{-1, ACTIVE_HIGH, 0, "power"},
{-1, ACTIVE_HIGH, gfx_get_init_done(), "oprom"},