2 * Copyright (c) 2015 Google, Inc
4 * SPDX-License-Identifier: GPL-2.0+
7 #ifndef __ASM_ARCH_MICROCODE_H
8 #define __ASM_ARCH_MICROCODE_H
12 /* This is a declaration for ucode_base in start.S */
13 extern u32 ucode_base;
16 * microcode_update_intel() - Apply microcode updates
18 * Applies any microcode updates in the device tree.
20 * @return 0 if OK, -EEXIST if the updates were already applied, -ENOENT if
21 * not updates were found, -EINVAL if an update was invalid
23 int microcode_update_intel(void);
26 * microcode_read_rev() - Read the microcode version
28 * This reads the microcode version of the currently running CPU
30 * @return microcode version number
32 int microcode_read_rev(void);
33 #endif /* __ASSEMBLY__ */