blob: 21b910bbf0c6bf38a333ec6b07fe64b5fbd022eb [file] [log] [blame]
Simon Glasse8045012014-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
Simon Glasse8045012014-11-14 18:18:43 -070015enum {
16 TURBO_UNKNOWN,
17 TURBO_UNAVAILABLE,
18 TURBO_DISABLED,
19 TURBO_ENABLED,
20};
21
22/* Return current turbo state */
23int turbo_get_state(void);
24
25/* Enable turbo */
26void turbo_enable(void);
27
28#endif