summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mainboard/google/rex/Kconfig2
-rw-r--r--src/mainboard/google/rex/chromeos.c5
2 files changed, 6 insertions, 1 deletions
diff --git a/src/mainboard/google/rex/Kconfig b/src/mainboard/google/rex/Kconfig
index 7d384bdf4c..52f241349a 100644
--- a/src/mainboard/google/rex/Kconfig
+++ b/src/mainboard/google/rex/Kconfig
@@ -160,7 +160,7 @@ config MEMORY_SOLDERDOWN
select HAVE_SPD_IN_CBFS
config VBOOT
- select VBOOT_LID_SWITCH
+ select VBOOT_LID_SWITCH if BOARD_GOOGLE_BASEBOARD_REX
config UART_FOR_CONSOLE
int
diff --git a/src/mainboard/google/rex/chromeos.c b/src/mainboard/google/rex/chromeos.c
index 217b001a06..5ed041f52b 100644
--- a/src/mainboard/google/rex/chromeos.c
+++ b/src/mainboard/google/rex/chromeos.c
@@ -9,7 +9,12 @@
void fill_lb_gpios(struct lb_gpios *gpios)
{
struct lb_gpio chromeos_gpios[] = {
+#if CONFIG(VBOOT_LID_SWITCH)
{-1, ACTIVE_HIGH, get_lid_switch(), "lid"},
+#else
+ /* fake LID open to avoid shutdown in depthcharge */
+ {-1, ACTIVE_HIGH, 1, "lid"},
+#endif
{-1, ACTIVE_HIGH, 0, "power"},
{-1, ACTIVE_HIGH, gfx_get_init_done(), "oprom"},
{-1, ACTIVE_HIGH, 0, "EC in RW"},