UPSTREAM: ec: Use EC_ENABLE_LID_SWITCH for all mainboards with LID using chromeec
Instead of defining a separate LID device for mainboards using
chromeec, define EC_ENABLE_LID_SWITCH for these boards.
BUG=none
BRANCH=none
TEST=none
Change-Id: I3f68109701dc74fe44f5d35fdbfe44e2bfd1b4e6
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 5029a1668e
Original-Change-Id: Iac58847c2055fa27c19d02b2dbda6813d6dec3ec
Original-Signed-off-by: Furquan Shaikh <furquan@chromium.org>
Original-Reviewed-on: https://review.coreboot.org/18964
Original-Tested-by: build bot (Jenkins)
Original-Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/459510
This commit is contained in:
parent
4adf85982f
commit
c8fbfa6a31
25 changed files with 57 additions and 144 deletions
|
|
@ -26,9 +26,6 @@ External (\_SB.DPTF.TEVT, MethodObj)
|
|||
External (\_SB.DPTF.TCHG, DeviceObj)
|
||||
#endif
|
||||
External (\_SB.DPTF.TPET, MethodObj)
|
||||
#ifndef EC_ENABLE_LID_SWITCH
|
||||
External (\_SB.LID0, DeviceObj)
|
||||
#endif
|
||||
|
||||
Device (EC0)
|
||||
{
|
||||
|
|
@ -171,10 +168,6 @@ Device (EC0)
|
|||
Store (LIDS, \LIDS)
|
||||
#ifdef EC_ENABLE_LID_SWITCH
|
||||
Notify (LID0, 0x80)
|
||||
#else
|
||||
If (CondRefOf (\_SB.LID0)) {
|
||||
Notify (\_SB.LID0, 0x80)
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
@ -185,10 +178,6 @@ Device (EC0)
|
|||
Store (LIDS, \LIDS)
|
||||
#ifdef EC_ENABLE_LID_SWITCH
|
||||
Notify (LID0, 0x80)
|
||||
#else
|
||||
If (CondRefOf (\_SB.LID0)) {
|
||||
Notify (\_SB.LID0, 0x80)
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue