repo.or.cz
/
coreboot.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
mb/starlabs/starbook/{adl_n,mtl}: Don't configure GPE routes
[coreboot.git]
/
src
/
ec
/
starlabs
/
merlin
/
acpi
/
lid.asl
blob
83d28a076bdfc3dd20a2864c7ac75a4ac62cc912
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#if CONFIG(EC_STARLABS_MERLIN)
4
Method (_Q0C, 0, NotSerialized) // Event: Lid Opened or Closed
5
{
6
\LIDS = ECRD(RefOf(LSTE))
7
Notify (LID0, 0x80)
8
}
9
#endif
10
11
Device (LID0)
12
{
13
Name (_HID, EisaId ("PNP0C0D"))
14
Method (_STA)
15
{
16
Return (0x0F)
17
}
18
Method (_LID, 0)
19
{
20
// 0x00 == Closed
21
// 0x01 == Open
22
Return (ECRD (RefOf (LSTE)))
23
}
24
}