1 /* SPDX-License-Identifier: GPL-2.0-only */
3 External(\_SB.DDEF, MethodObj)
4 External(\_SB.DTHL, MethodObj)
5 External(\_SB.DTAB, MethodObj)
9 Method (DPTC, 0, Serialized)
11 /* If _SB.DDEF is not present, DPTC is not enabled so return early. */
12 If (!CondRefOf (\_SB.DDEF))
17 /* If _SB.DTHL is not present, then DPTC Tablet Mode is not enabled.
18 * Throttle the SOC if the battery is not present (BTEX), the battery level is critical
19 * (BFCR), or the battery is cutoff (BFCT). */
20 If (CondRefOf (\_SB.DTHL) &&
21 (!\_SB.PCI0.LPCB.EC0.BTEX || \_SB.PCI0.LPCB.EC0.BFCR || \_SB.PCI0.LPCB.EC0.BFCT))
27 /* If _SB.DTAB is not present, then DPTC Tablet Mode is not enabled. */
28 If (CondRefOf (\_SB.DTAB) && (\_SB.PCI0.LPCB.EC0.TBMD == 1))
34 #if CONFIG(FEATURE_DYNAMIC_DPTC)