veyron_danger: Enable developer mode switch

Hardware / Coreboot - David Hendricks [chromium.org] - 8 July 2015 17:08 UTC

Danger has a physical developer mode switch, it was just never set up. This patch defines it, sets it up in fill_lb_gpios(), and disables VIRTUAL_DEV_SWITCH.

Note: For now at least, dev mode is a bit wonky on Danger. It's connected to both a DIP switch and a button. The button is normally open, pulling dev mode high (defaulting to ON). The switch's "ON" position will pull the value low, so we invert the value in coreboot to see the expected behavior. Dev mode is enabled by holding the button down during boot or by setting switch 2 in the DIP bank to the ON position.

BUG=none BRANCH=none TEST=toggled dev switch on Danger and saw dev screen show up (or not) as expected

Change-Id: I9369b96b6c9b54553d969b919ed663abdc704dd2

cc74221 veyron_danger: Enable developer mode switch
src/mainboard/google/veyron_danger/Kconfig | 1 -
src/mainboard/google/veyron_danger/chromeos.c | 10 ++++++----
2 files changed, 6 insertions(+), 5 deletions(-)

Upstream: review.coreboot.org


  • Share