coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
power_limit.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 #ifndef _SOC_INTEL_COMMON_BLOCK_POWER_LIMIT_H_
4 #define _SOC_INTEL_COMMON_BLOCK_POWER_LIMIT_H_
5 
6 #define MCH_PKG_POWER_LIMIT_LO 0x59a0
7 #define MCH_PKG_POWER_LIMIT_HI 0x59a4
8 #define MCH_DDR_POWER_LIMIT_LO 0x58e0
9 #define MCH_DDR_POWER_LIMIT_HI 0x58e4
10 
11 #define MSR_VR_CURRENT_CONFIG 0x601
12 #define MSR_PL3_CONTROL 0x615
13 #define MSR_PLATFORM_POWER_LIMIT 0x65c
14 
15 /* Default power limit value in secs */
16 #define MOBILE_SKU_PL1_TIME_SEC 28
17 
18 #define MILLIWATTS_TO_WATTS 1000
19 
21  /* PL1 Override value in Watts */
23  /* PL2 Override value in Watts */
25  /* SysPL2 Value in Watts */
27  /* SysPL3 Value in Watts */
29  /* SysPL3 window size */
31  /* SysPL3 duty cycle */
33  /* PL4 Value in Watts */
35  /* Estimated maximum platform power in Watts */
37 };
38 
39 /* Configure power limits for turbo mode */
40 void set_power_limits(u8 power_limit_1_time,
42 
43 u8 get_cpu_tdp(void);
44 
45 #endif /* _SOC_INTEL_COMMON_BLOCK_POWER_LIMIT_H_ */
enum board_config config
Definition: memory.c:448
void set_power_limits(u8 power_limit_1_time, struct soc_power_limits_config *config)
Definition: power_limit.c:72
u8 get_cpu_tdp(void)
Definition: power_limit.c:199
unsigned short uint16_t
Definition: stdint.h:11
unsigned int uint32_t
Definition: stdint.h:14
uint8_t u8
Definition: stdint.h:45
uint32_t tdp_psyspl3_dutycycle
Definition: power_limit.h:32