Add Kconfig flag to specify if there's a lid switch
Not all devices have a lid switch, so we need to state this somehow. Since the alternative would be to extend get_lid_switch()'s semantics to become a tri-state (open, closed, N/A), do this through Kconfig. BRANCH=none BUG=chromium:446945 TEST=none Change-Id: Icc50f72535f256051a59925a178fb27b2e8f7e55 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Id: d20a1d1a22d64546a5d8761b18ab29732ec0b848 Original-Change-Id: Ie8ac401fbaad5b5a9f1dec2b67847c81f4cc94aa Original-Signed-off-by: Patrick Georgi <pgeorgi@google.com> Original-Reviewed-on: https://chromium-review.googlesource.com/273850 Original-Reviewed-by: Stefan Reinauer <reinauer@chromium.org> Original-Tested-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Queue: Patrick Georgi <pgeorgi@chromium.org> Reviewed-on: http://review.coreboot.org/10692 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
@ -149,6 +149,12 @@ config PHYSICAL_REC_SWITCH
|
||||
help
|
||||
Whether this platform has a physical recovery switch
|
||||
|
||||
config LID_SWITCH
|
||||
bool "Lid switch is present"
|
||||
default n
|
||||
help
|
||||
Whether this platform has a lid switch
|
||||
|
||||
config WIPEOUT_SUPPORTED
|
||||
bool "User is able to request factory reset"
|
||||
default n
|
||||
|
Reference in New Issue
Block a user