Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Simon Glass | e804501 | 2014-11-14 18:18:43 -0700 | [diff] [blame] | 2 | /* |
| 3 | * From coreboot file of the same name |
| 4 | * |
| 5 | * Copyright (C) 2011 The ChromiumOS Authors. All rights reserved. |
Simon Glass | e804501 | 2014-11-14 18:18:43 -0700 | [diff] [blame] | 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 | |
Simon Glass | e804501 | 2014-11-14 18:18:43 -0700 | [diff] [blame] | 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 |