2 * This file is part of the coreboot project.
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; version 2 of the License.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
15 #ifndef DPTF_CPU_PASSIVE
16 #define DPTF_CPU_PASSIVE 80
19 #ifndef DPTF_CPU_CRITICAL
20 #define DPTF_CPU_CRITICAL 90
23 External (\_PR.CP00._PSS, PkgObj)
24 External (\_SB.MPDL, IntObj)
28 Name(_ADR, 0x00040000) /* Bus 0, Device 4, Function 0 */
32 If (LEqual (\DPTE, One)) {
40 * Processor Performance Control
52 /* Notify OS to re-read _PPC limit on each CPU */
58 If (CondRefOf (\_PR.CP00._PSS)) {
59 Return (\_PR.CP00._PSS)
63 Package () { 0, 0, 0, 0, 0, 0 }
71 /* Check for mainboard specific _PDL override */
72 If (CondRefOf (\_SB.MPDL)) {
74 } ElseIf (CondRefOf (\_PR.CP00._PSS)) {
75 Store (SizeOf (\_PR.CP00._PSS), Local0)
83 /* Return PPCC table defined by mainboard */
89 #ifdef DPTF_CPU_CRITICAL
92 Return (\_SB.DPTF.CTOK (DPTF_CPU_CRITICAL))
96 #ifdef DPTF_CPU_PASSIVE
99 Return (\_SB.DPTF.CTOK (DPTF_CPU_PASSIVE))
103 #ifdef DPTF_CPU_ACTIVE_AC0
106 Return (\_SB.DPTF.CTOK (DPTF_CPU_ACTIVE_AC0))
110 #ifdef DPTF_CPU_ACTIVE_AC1
113 Return (\_SB.DPTF.CTOK (DPTF_CPU_ACTIVE_AC1))
117 #ifdef DPTF_CPU_ACTIVE_AC2
120 Return (\_SB.DPTF.CTOK (DPTF_CPU_ACTIVE_AC2))
124 #ifdef DPTF_CPU_ACTIVE_AC3
127 Return (\_SB.DPTF.CTOK (DPTF_CPU_ACTIVE_AC3))
131 #ifdef DPTF_CPU_ACTIVE_AC4
134 Return (\_SB.DPTF.CTOK (DPTF_CPU_ACTIVE_AC4))