mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-19 16:38:53 +09:00
![Simon Glass](/assets/img/avatar_default.png)
This driver supports multi-core init and sets up the CPU frequencies correctly. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
29 lines
453 B
C
29 lines
453 B
C
/*
|
|
* From coreboot file of the same name
|
|
*
|
|
* Copyright (C) 2011 The ChromiumOS Authors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0
|
|
*/
|
|
|
|
#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
|