summaryrefslogtreecommitdiff
path: root/src/mainboard/purism/librem_jsl/acpi/ac.asl
blob: 86267e8eba6a23133c78b3925fe63b8ac73e5dbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* SPDX-License-Identifier: GPL-2.0-only */

Device (AC)
{
	Name (_HID, "ACPI0003" /* Power Source Device */)  // _HID: Hardware ID
	Name (_PCL, Package (0x01)  // _PCL: Power Consumer List
	{
		_SB
	})

	Name (ACEX, One)

	Method (_PSR, 0, NotSerialized)  // _PSR: Power Source
	{
		Printf ("AC: _PSR: %o", ACEX)
		Return (ACEX)
	}

	Method (_STA, 0, NotSerialized)  // _STA: Status
	{
		Return (0x0F)
	}
}