aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/google/veyron_pinky/chromeos.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/veyron_pinky/chromeos.c')
-rw-r--r--src/mainboard/google/veyron_pinky/chromeos.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mainboard/google/veyron_pinky/chromeos.c b/src/mainboard/google/veyron_pinky/chromeos.c
index 50dc4947dc..827b004394 100644
--- a/src/mainboard/google/veyron_pinky/chromeos.c
+++ b/src/mainboard/google/veyron_pinky/chromeos.c
@@ -25,8 +25,10 @@
#include <vendorcode/google/chromeos/chromeos.h>
#include <soc/rockchip/rk3288/gpio.h>
+#include "board.h"
+
#define GPIO_WP GPIO(7, A, 6)
-#define GPIO_LID GPIO(7, B, 5)
+#define GPIO_LID (board_id() > 0 ? GPIO(0, A, 6) : GPIO(7, B, 5))
#define GPIO_POWER GPIO(0, A, 5)
#define GPIO_RECOVERY GPIO(0, B, 1)
@@ -34,7 +36,7 @@ void setup_chromeos_gpios(void)
{
gpio_input(GPIO_WP);
gpio_input_pullup(GPIO_LID);
- gpio_input_pullup(GPIO_POWER);
+ gpio_input(GPIO_POWER);
gpio_input_pullup(GPIO_RECOVERY);
}