summaryrefslogtreecommitdiff
path: root/arch/x86/cpu/broadwell/cpu.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-03-04 08:43:05 -0700
committerTom Rini <trini@konsulko.com>2022-03-10 08:28:36 -0500
commit7fe32b3442f0d0e77a0768dcc1ee65fb352a080a (patch)
tree96a205669eeb9145d15eaec2f9bac5a53ea3c791 /arch/x86/cpu/broadwell/cpu.c
parent42fdcebf859f93139d58defd5abef44dedb9b17a (diff)
event: Convert arch_cpu_init_dm() to use events
Instead of a special function, send an event after driver model is inited and adjust the boards which use this function. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/cpu/broadwell/cpu.c')
-rw-r--r--arch/x86/cpu/broadwell/cpu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/cpu/broadwell/cpu.c b/arch/x86/cpu/broadwell/cpu.c
index 3832a97f2c7..2adcf4b242c 100644
--- a/arch/x86/cpu/broadwell/cpu.c
+++ b/arch/x86/cpu/broadwell/cpu.c
@@ -8,6 +8,7 @@
#include <common.h>
#include <dm.h>
#include <cpu.h>
+#include <event.h>
#include <init.h>
#include <log.h>
#include <asm/cpu.h>
@@ -24,7 +25,7 @@
#include <asm/arch/pch.h>
#include <asm/arch/rcb.h>
-int arch_cpu_init_dm(void)
+static int broadwell_init_cpu(void *ctx, struct event *event)
{
struct udevice *dev;
int ret;
@@ -41,6 +42,7 @@ int arch_cpu_init_dm(void)
return 0;
}
+EVENT_SPY(EVT_DM_POST_INIT, broadwell_init_cpu);
void set_max_freq(void)
{