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 <pgeorgi@chromium.org> Original-Commit-Id: 495bd07e3a1d6c587a5f01efa2801d2c4e7edbe8 Original-Change-Id: I8879833ca13074e8275393c3b98df06d56a5361d Original-Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Original-Reviewed-on: https://chromium-review.googlesource.com/261416 Original-Reviewed-by: David Hendricks <dhendrix@chromium.org> Reviewed-on: http://review.coreboot.org/9875 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
parent
89994226e8
commit
f9c0e20e68
|
@ -33,6 +33,7 @@ config BOARD_SPECIFIC_OPTIONS
|
||||||
select SPI_FLASH
|
select SPI_FLASH
|
||||||
select SPI_FLASH_SPANSION
|
select SPI_FLASH_SPANSION
|
||||||
select SPI_FLASH_STMICRO
|
select SPI_FLASH_STMICRO
|
||||||
|
select VIRTUAL_DEV_SWITCH
|
||||||
select WIPEOUT_SUPPORTED
|
select WIPEOUT_SUPPORTED
|
||||||
|
|
||||||
config BOARD_VARIANT_AP148
|
config BOARD_VARIANT_AP148
|
||||||
|
|
|
@ -62,7 +62,7 @@ void fill_lb_gpios(struct lb_gpios *gpios)
|
||||||
|
|
||||||
int get_developer_mode_switch(void)
|
int get_developer_mode_switch(void)
|
||||||
{
|
{
|
||||||
return read_gpio(DEV_SW) ^ !DEV_POL;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue