mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-03 03:13:21 +09:00
![Simon Glass](/assets/img/avatar_default.png)
At present the normal update (which happens much later) does not work. This seems to have something to do with the 'no eviction' mode in the CAR, or at least moving the microcode update after that causes it not to work. For now, do an update early on so that it definitely works. Also refuse to continue unless the microcode update check (later in boot) is successful. Signed-off-by: Simon Glass <sjg@chromium.org>
27 lines
582 B
C
27 lines
582 B
C
/*
|
|
* Copyright (c) 2015 Google, Inc
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#ifndef __ASM_ARCH_MICROCODE_H
|
|
#define __ASM_ARCH_MICROCODE_H
|
|
|
|
/* Length of the public header on Intel microcode blobs */
|
|
#define UCODE_HEADER_LEN 0x30
|
|
|
|
#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);
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
#endif
|