From f9c0e20e68995cf9ea46b2e2bdbbefe50714892f Mon Sep 17 00:00:00 2001 From: Vadim Bendebury Date: Thu, 19 Mar 2015 21:22:31 -0700 Subject: google/storm: enable virtual development mode switch The whirlwind device is using a button instead of the switch to enable dev mode. BRANCH=storm BUG=chrome-os-partner:36059 TEST=with the rest of the patches applied it is possible to enable and disable dev mode on Whirlwind and the mode persists over reboots. Change-Id: I6d31c8429ea0515bea2b7d707325d9092487048a Signed-off-by: Patrick Georgi Original-Commit-Id: 495bd07e3a1d6c587a5f01efa2801d2c4e7edbe8 Original-Change-Id: I8879833ca13074e8275393c3b98df06d56a5361d Original-Signed-off-by: Vadim Bendebury Original-Reviewed-on: https://chromium-review.googlesource.com/261416 Original-Reviewed-by: David Hendricks Reviewed-on: http://review.coreboot.org/9875 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- src/mainboard/google/storm/Kconfig | 1 + src/mainboard/google/storm/chromeos.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mainboard/google/storm') diff --git a/src/mainboard/google/storm/Kconfig b/src/mainboard/google/storm/Kconfig index 65b3ed4231..16c8b21a6d 100644 --- a/src/mainboard/google/storm/Kconfig +++ b/src/mainboard/google/storm/Kconfig @@ -33,6 +33,7 @@ config BOARD_SPECIFIC_OPTIONS select SPI_FLASH select SPI_FLASH_SPANSION select SPI_FLASH_STMICRO + select VIRTUAL_DEV_SWITCH select WIPEOUT_SUPPORTED config BOARD_VARIANT_AP148 diff --git a/src/mainboard/google/storm/chromeos.c b/src/mainboard/google/storm/chromeos.c index 044820640d..0076b3cd01 100644 --- a/src/mainboard/google/storm/chromeos.c +++ b/src/mainboard/google/storm/chromeos.c @@ -62,7 +62,7 @@ void fill_lb_gpios(struct lb_gpios *gpios) int get_developer_mode_switch(void) { - return read_gpio(DEV_SW) ^ !DEV_POL; + return 0; } /* -- cgit v1.2.3