1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #define DPTF_CPU_PASSIVE 80
4 #define DPTF_CPU_CRITICAL 100
6 #define DPTF_TSR0_SENSOR_ID 1
7 #define DPTF_TSR0_SENSOR_NAME "Ambient"
8 #define DPTF_TSR0_PASSIVE 55
9 #define DPTF_TSR0_CRITICAL 70
11 #define DPTF_TSR1_SENSOR_ID 2
12 #define DPTF_TSR1_SENSOR_NAME "Charger"
13 #define DPTF_TSR1_PASSIVE 55
14 #define DPTF_TSR1_CRITICAL 75
16 #define DPTF_TSR2_SENSOR_ID 3
17 #define DPTF_TSR2_SENSOR_NAME "DRAM"
18 #define DPTF_TSR2_PASSIVE 65
19 #define DPTF_TSR2_CRITICAL 75
21 #define DPTF_TSR3_SENSOR_ID 4
22 #define DPTF_TSR3_SENSOR_NAME "eMMC"
23 #define DPTF_TSR3_PASSIVE 65
24 #define DPTF_TSR3_CRITICAL 75
26 #undef DPTF_ENABLE_FAN_CONTROL
27 #define DPTF_ENABLE_CHARGER
29 /* Charger performance states, board-specific values from charger and EC */
30 Name (CHPS, Package () {
31 Package () { 0, 0, 0, 0, 255, 0xbb8, "mA", 0 }, /* 3000mA (MAX) */
32 Package () { 0, 0, 0, 0, 24, 0x800, "mA", 0 }, /* 2000mA */
33 Package () { 0, 0, 0, 0, 16, 0x400, "mA", 0 }, /* 1000mA */
34 Package () { 0, 0, 0, 0, 8, 0x200, "mA", 0 }, /* 500mA */
37 Name (DTRT, Package () {
38 /* CPU Throttle Effect on CPU */
39 Package () { \_SB.PCI0.B0D4, \_SB.PCI0.B0D4, 100, 10, 0, 0, 0, 0 },
41 /* CPU Effect on Ambient */
42 Package () { \_SB.PCI0.B0D4, \_SB.DPTF.TSR0, 100, 600, 0, 0, 0, 0 },
44 /* CPU Effect on Charger */
45 Package () { \_SB.PCI0.B0D4, \_SB.DPTF.TSR1, 50, 600, 0, 0, 0, 0 },
47 /* CPU Effect on DRAM */
48 Package () { \_SB.PCI0.B0D4, \_SB.DPTF.TSR2, 100, 600, 0, 0, 0, 0 },
50 /* CPU Effect on eMMC */
51 Package () { \_SB.PCI0.B0D4, \_SB.DPTF.TSR3, 50, 600, 0, 0, 0, 0 },
53 /* Charger Throttle Effect on Charger (TSR1) */
54 Package () { \_SB.DPTF.TCHG, \_SB.DPTF.TSR1, 100, 600, 0, 0, 0, 0 },
56 /* Charger Throttle Effect on eMMC (TSR3) */
57 Package () { \_SB.DPTF.TCHG, \_SB.DPTF.TSR3, 100, 600, 0, 0, 0, 0 },
60 Name (MPPC, Package ()
63 Package () { /* Power Limit 1 */
64 0, /* PowerLimitIndex, 0 for Power Limit 1 */
65 2500, /* PowerLimitMinimum */
66 7000, /* PowerLimitMaximum */
67 5000, /* TimeWindowMinimum */
68 5000, /* TimeWindowMaximum */
71 Package () { /* Power Limit 2 */
72 1, /* PowerLimitIndex, 1 for Power Limit 2 */
73 15000, /* PowerLimitMinimum */
74 15000, /* PowerLimitMaximum */
75 1000, /* TimeWindowMinimum */
76 1000, /* TimeWindowMaximum */
82 #include <soc/intel/skylake/acpi/dptf/dptf.asl>