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