ec/google/wilco: Store LID status into LIDS and change device name
Store LID status into LIDS and change device name to LID0. Then Intel driver can reference it. BUG=b:151134069 TEST=check LID status by evtest Signed-off-by: Eric Lai <ericr_lai@compal.corp-partner.google.com> Change-Id: Ifdac938730eac034b626aa8ad9d52462f65137ba Reviewed-on: https://review.coreboot.org/c/coreboot/+/39497 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
This commit is contained in:
parent
d789b658f7
commit
5ddce58bff
|
@ -60,6 +60,9 @@ Device (EC0)
|
||||||
|
|
||||||
/* Initialize UCSI */
|
/* Initialize UCSI */
|
||||||
^UCSI.INIT ()
|
^UCSI.INIT ()
|
||||||
|
|
||||||
|
// Initialize LID switch state
|
||||||
|
Store (R (P1LC), \LIDS)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -57,7 +57,7 @@ Method (ECQ1, 1, Serialized)
|
||||||
/* LID state changed */
|
/* LID state changed */
|
||||||
If (EBIT (E1LD, Arg0)) {
|
If (EBIT (E1LD, Arg0)) {
|
||||||
Printf ("Lid State Changed")
|
Printf ("Lid State Changed")
|
||||||
Notify (^LID, 0x80)
|
Notify (^LID0, 0x80)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Power Event */
|
/* Power Event */
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Device (LID)
|
Device (LID0)
|
||||||
{
|
{
|
||||||
Name (_HID, EisaId ("PNP0C0D"))
|
Name (_HID, EisaId ("PNP0C0D"))
|
||||||
Name (_UID, 1)
|
Name (_UID, 1)
|
||||||
|
@ -22,6 +22,7 @@ Device (LID)
|
||||||
|
|
||||||
Method (_LID, 0, NotSerialized)
|
Method (_LID, 0, NotSerialized)
|
||||||
{
|
{
|
||||||
Return (R (P1LC))
|
Store (R (P1LC), \LIDS)
|
||||||
|
Return (\LIDS)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue