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>
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#include <syscon.h>
|
||||
#include <asm/cpu.h>
|
||||
#include <asm/cpu_common.h>
|
||||
#include <asm/fsp2/fsp_api.h>
|
||||
#include <asm/global_data.h>
|
||||
#include <asm/mrccache.h>
|
||||
#include <asm/mtrr.h>
|
||||
@@ -27,7 +28,7 @@
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
__weak int arch_cpu_init_dm(void)
|
||||
__weak int fsp_setup_pinctrl(void *ctx, struct event *event)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
@@ -89,7 +90,7 @@ static int x86_spl_init(void)
|
||||
return ret;
|
||||
}
|
||||
#ifndef CONFIG_TPL
|
||||
ret = arch_cpu_init_dm();
|
||||
ret = fsp_setup_pinctrl(NULL, NULL);
|
||||
if (ret) {
|
||||
debug("%s: arch_cpu_init_dm() failed\n", __func__);
|
||||
return ret;
|
||||
|
Reference in New Issue
Block a user