diff options
author | Tom Rini <trini@konsulko.com> | 2017-08-01 15:38:32 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-08-01 15:38:32 -0400 |
commit | 07d778382200a05a8b86cc135f79ec48e386f25a (patch) | |
tree | 624dc01190640212a9a8a45f4d12d4bd7489145d /arch/x86/cpu/broadwell/refcode.c | |
parent | 5c6631beb27491f3f78b6a0ad888d38810e3d96b (diff) | |
parent | 24357dfd2aec4118b9178d8bf639fb8fc02e1859 (diff) |
Merge git://git.denx.de/u-boot-x86
Diffstat (limited to 'arch/x86/cpu/broadwell/refcode.c')
-rw-r--r-- | arch/x86/cpu/broadwell/refcode.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/arch/x86/cpu/broadwell/refcode.c b/arch/x86/cpu/broadwell/refcode.c index 436c6c49c3a..4fa4de3525c 100644 --- a/arch/x86/cpu/broadwell/refcode.c +++ b/arch/x86/cpu/broadwell/refcode.c @@ -56,7 +56,17 @@ struct rmodule_header { uint32_t padding[4]; } __packed; -int cpu_run_reference_code(void) +/** + * cpu_run_reference_code() - Run the platform reference code + * + * Some platforms require a binary blob to be executed once SDRAM is + * available. This is used to set up various platform features, such as the + * platform controller hub (PCH). This function should be implemented by the + * CPU-specific code. + * + * @return 0 on success, -ve on failure + */ +static int cpu_run_reference_code(void) { struct pei_data _pei_data __aligned(8); struct pei_data *pei_data = &_pei_data; @@ -111,3 +121,8 @@ int cpu_run_reference_code(void) return 0; } + +int arch_early_init_r(void) +{ + return cpu_run_reference_code(); +} |