mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 14:41:31 +00:00
As each core starts up, record its microcode version and CPU ID so these can be presented with the 'cpu detail' command. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
32 lines
691 B
C
32 lines
691 B
C
/*
|
|
* Copyright (c) 2015 Google, Inc
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#ifndef __ASM_ARCH_MICROCODE_H
|
|
#define __ASM_ARCH_MICROCODE_H
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
/**
|
|
* microcode_update_intel() - Apply microcode updates
|
|
*
|
|
* Applies any microcode updates in the device tree.
|
|
*
|
|
* @return 0 if OK, -EEXIST if the updates were already applied, -ENOENT if
|
|
* not updates were found, -EINVAL if an update was invalid
|
|
*/
|
|
int microcode_update_intel(void);
|
|
|
|
/**
|
|
* microcode_read_rev() - Read the microcode version
|
|
*
|
|
* This reads the microcode version of the currently running CPU
|
|
*
|
|
* @return microcode version number
|
|
*/
|
|
int microcode_read_rev(void);
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
#endif
|