2014-11-13 13:42:21 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2015 Google, Inc
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ASM_ARCH_MICROCODE_H
|
|
|
|
#define __ASM_ARCH_MICROCODE_H
|
|
|
|
|
2015-01-02 07:18:14 +08:00
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
|
2016-03-12 13:07:11 +08:00
|
|
|
/* This is a declaration for ucode_base in start.S */
|
|
|
|
extern u32 ucode_base;
|
|
|
|
|
2014-11-13 13:42:21 +08:00
|
|
|
/**
|
|
|
|
* 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);
|
2016-03-12 13:07:09 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 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);
|
2015-01-02 07:18:14 +08:00
|
|
|
#endif /* __ASSEMBLY__ */
|
2014-11-13 13:42:21 +08:00
|
|
|
|
|
|
|
#endif
|