blob: 04789353ecf6a4018afaf3c80a1104257256019a [file] [log] [blame]
Simon Glass77f9b1f2014-11-12 22:42:21 -07001/*
2 * Copyright (c) 2015 Google, Inc
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7#ifndef __ASM_ARCH_MICROCODE_H
8#define __ASM_ARCH_MICROCODE_H
9
Simon Glassc72f74e2015-01-01 16:18:14 -070010#ifndef __ASSEMBLY__
11
Simon Glass77f9b1f2014-11-12 22:42:21 -070012/**
13 * microcode_update_intel() - Apply microcode updates
14 *
15 * Applies any microcode updates in the device tree.
16 *
17 * @return 0 if OK, -EEXIST if the updates were already applied, -ENOENT if
18 * not updates were found, -EINVAL if an update was invalid
19 */
20int microcode_update_intel(void);
Simon Glass6bcb6752016-03-11 22:07:09 -070021
22/**
23 * microcode_read_rev() - Read the microcode version
24 *
25 * This reads the microcode version of the currently running CPU
26 *
27 * @return microcode version number
28 */
29int microcode_read_rev(void);
Simon Glassc72f74e2015-01-01 16:18:14 -070030#endif /* __ASSEMBLY__ */
Simon Glass77f9b1f2014-11-12 22:42:21 -070031
32#endif