diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mainboard/google/pit/chromeos.c | 2 | ||||
-rw-r--r-- | src/mainboard/google/snow/chromeos.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mainboard/google/pit/chromeos.c b/src/mainboard/google/pit/chromeos.c index c2db165834..2933a352bd 100644 --- a/src/mainboard/google/pit/chromeos.c +++ b/src/mainboard/google/pit/chromeos.c @@ -97,5 +97,5 @@ int get_recovery_mode_switch(void) int get_write_protect_state(void) { - return 0; // FIXME what GPIO? // WP hard coded to disabled + return !gpio_get_value(GPIO_X30); } diff --git a/src/mainboard/google/snow/chromeos.c b/src/mainboard/google/snow/chromeos.c index de882ab8c3..5310a4dbef 100644 --- a/src/mainboard/google/snow/chromeos.c +++ b/src/mainboard/google/snow/chromeos.c @@ -95,7 +95,7 @@ int get_recovery_mode_switch(void) EC_HOST_EVENT_MASK(EC_HOST_EVENT_KEYBOARD_RECOVERY)); } -int get_recovery_mode_from_vbnv(void) +int get_write_protect_state(void) { - return 0; + return !gpio_get_value(GPIO_D16); } |