xref: /openbmc/u-boot/arch/x86/include/asm/turbo.h (revision d9b23e26)
1 /*
2  * From coreboot file of the same name
3  *
4  * Copyright (C) 2011 The ChromiumOS Authors. All rights reserved.
5  *
6  * SPDX-License-Identifier:	GPL-2.0
7  */
8 
9 #ifndef _ASM_TURBO_H
10 #define _ASM_TURBO_H
11 
12 #define CPUID_LEAF_PM		6
13 #define PM_CAP_TURBO_MODE	(1 << 1)
14 
15 enum {
16 	TURBO_UNKNOWN,
17 	TURBO_UNAVAILABLE,
18 	TURBO_DISABLED,
19 	TURBO_ENABLED,
20 };
21 
22 /* Return current turbo state */
23 int turbo_get_state(void);
24 
25 /* Enable turbo */
26 void turbo_enable(void);
27 
28 #endif
29