blob: 94a63539785578c8e082d28577e697f6f2e5078e [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0 */
Simon Glasse8045012014-11-14 18:18:43 -07002/*
3 * From coreboot file of the same name
4 *
5 * Copyright (C) 2011 The ChromiumOS Authors. All rights reserved.
Simon Glasse8045012014-11-14 18:18:43 -07006 */
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
Simon Glasse8045012014-11-14 18:18:43 -070014enum {
15 TURBO_UNKNOWN,
16 TURBO_UNAVAILABLE,
17 TURBO_DISABLED,
18 TURBO_ENABLED,
19};
20
21/* Return current turbo state */
22int turbo_get_state(void);
23
24/* Enable turbo */
25void turbo_enable(void);
26
27#endif