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