blob: bb0d4b43548147d55f367b7af9f7571d8abdc02d [file] [log] [blame]
Simon Glass18739e22014-11-14 18:18:43 -07001/*
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#define MSR_IA32_MISC_ENABLES 0x1a0
16#define H_MISC_DISABLE_TURBO (1 << 6)
17
18enum {
19 TURBO_UNKNOWN,
20 TURBO_UNAVAILABLE,
21 TURBO_DISABLED,
22 TURBO_ENABLED,
23};
24
25/* Return current turbo state */
26int turbo_get_state(void);
27
28/* Enable turbo */
29void turbo_enable(void);
30
31#endif