diff options
Diffstat (limited to 'roms/u-boot/arch/x86/include/asm/turbo.h')
-rw-r--r-- | roms/u-boot/arch/x86/include/asm/turbo.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/roms/u-boot/arch/x86/include/asm/turbo.h b/roms/u-boot/arch/x86/include/asm/turbo.h new file mode 100644 index 000000000..94a635397 --- /dev/null +++ b/roms/u-boot/arch/x86/include/asm/turbo.h @@ -0,0 +1,27 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * From coreboot file of the same name + * + * Copyright (C) 2011 The ChromiumOS Authors. All rights reserved. + */ + +#ifndef _ASM_TURBO_H +#define _ASM_TURBO_H + +#define CPUID_LEAF_PM 6 +#define PM_CAP_TURBO_MODE (1 << 1) + +enum { + TURBO_UNKNOWN, + TURBO_UNAVAILABLE, + TURBO_DISABLED, + TURBO_ENABLED, +}; + +/* Return current turbo state */ +int turbo_get_state(void); + +/* Enable turbo */ +void turbo_enable(void); + +#endif |