1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (c) 2015 Google, Inc
6 #ifndef __ASM_ARCH_MICROCODE_H
7 #define __ASM_ARCH_MICROCODE_H
11 /* This is a declaration for ucode_base in start.S */
12 extern u32 ucode_base;
15 * microcode_update_intel() - Apply microcode updates
17 * Applies any microcode updates in the device tree.
19 * @return 0 if OK, -EEXIST if the updates were already applied, -ENOENT if
20 * not updates were found, -EINVAL if an update was invalid
22 int microcode_update_intel(void);
25 * microcode_read_rev() - Read the microcode version
27 * This reads the microcode version of the currently running CPU
29 * @return microcode version number
31 int microcode_read_rev(void);
32 #endif /* __ASSEMBLY__ */