1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (C) 2014 Google Inc.
4 * Copyright (C) 2015 Intel Corporation.
5 */
6
7#define DPTF_CPU_PASSIVE	95
8#define DPTF_CPU_CRITICAL	105
9
10#define DPTF_TSR0_SENSOR_ID	0
11#define DPTF_TSR0_SENSOR_NAME	"Battery"
12#define DPTF_TSR0_PASSIVE	120
13#define DPTF_TSR0_CRITICAL	125
14
15#define DPTF_TSR1_SENSOR_ID	1
16#define DPTF_TSR1_SENSOR_NAME	"Ambient"
17#define DPTF_TSR1_PASSIVE	46
18#define DPTF_TSR1_CRITICAL	75
19
20#define DPTF_TSR2_SENSOR_ID	2
21#define DPTF_TSR2_SENSOR_NAME	"Charger"
22#define DPTF_TSR2_PASSIVE	58
23#define DPTF_TSR2_CRITICAL	90
24
25#define DPTF_ENABLE_CHARGER
26
27/* Charger performance states, board-specific values from charger and EC */
28Name (CHPS, Package () {
29	Package () { 0, 0, 0, 0, 255, 0xBB8, "mA", 0 },	/* 3A (MAX) */
30	Package () { 0, 0, 0, 0, 24, 0x600, "mA", 0 },	/* 1.5A */
31	Package () { 0, 0, 0, 0, 16, 0x400, "mA", 0 },	/* 1.0A */
32	Package () { 0, 0, 0, 0, 8, 0x200, "mA", 0 },	/* 0.5A */
33	Package () { 0, 0, 0, 0, 0, 0x000, "mA", 0 },	/* 0.0A */
34})
35
36Name (DTRT, Package () {
37	/* CPU Throttle Effect on CPU */
38	Package () { \_SB.PCI0.TCPU, \_SB.PCI0.TCPU, 100, 100, 0, 0, 0, 0 },
39
40	/* CPU Effect on Temp Sensor 0 */
41	Package () { \_SB.PCI0.TCPU, \_SB.DPTF.TSR0, 100, 1200, 0, 0, 0, 0 },
42
43#ifdef DPTF_ENABLE_CHARGER
44	/* Charger Effect on Temp Sensor 2 */
45	Package () { \_SB.DPTF.TCHG, \_SB.DPTF.TSR2, 200, 300, 0, 0, 0, 0 },
46#endif
47
48	/* CPU Effect on Temp Sensor 1 */
49	Package () { \_SB.PCI0.TCPU, \_SB.DPTF.TSR1, 100, 150, 0, 0, 0, 0 },
50})
51
52Name (MPPC, Package ()
53{
54	0x2,		/* Revision */
55	Package () {	/* Power Limit 1 */
56		0,	/* PowerLimitIndex, 0 for Power Limit 1 */
57		3000,	/* PowerLimitMinimum */
58		12000,	/* PowerLimitMaximum */
59		1000,	/* TimeWindowMinimum */
60		1000,	/* TimeWindowMaximum */
61		200	/* StepSize */
62	},
63	Package () {	/* Power Limit 2 */
64		1,	/* PowerLimitIndex, 1 for Power Limit 2 */
65		8000,	/* PowerLimitMinimum */
66		15000,	/* PowerLimitMaximum */
67		1000,	/* TimeWindowMinimum */
68		1000,	/* TimeWindowMaximum */
69		1000	/* StepSize */
70	}
71})
72