Skip to content
/ u-boot Public
forked from u-boot/u-boot

Commit

Permalink
Revert "dm: Emit the arch_cpu_init_dm() even only before relocation"
Browse files Browse the repository at this point in the history
  • Loading branch information
misuzu committed Aug 8, 2023
1 parent a169438 commit 9c29cdd
Show file tree
Hide file tree
Showing 17 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/imx8/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ static int imx8_init_mu(void *ctx, struct event *event)

return 0;
}
EVENT_SPY(EVT_DM_POST_INIT_F, imx8_init_mu);
EVENT_SPY(EVT_DM_POST_INIT, imx8_init_mu);

#if defined(CONFIG_ARCH_MISC_INIT)
int arch_misc_init(void)
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/imx8m/soc.c
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ static int imx8m_check_clock(void *ctx, struct event *event)

return 0;
}
EVENT_SPY(EVT_DM_POST_INIT_F, imx8m_check_clock);
EVENT_SPY(EVT_DM_POST_INIT, imx8m_check_clock);

static void imx8m_setup_snvs(void)
{
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/imx8ulp/soc.c
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,7 @@ static int imx8ulp_evt_dm_post_init(void *ctx, struct event *event)
{
return imx8ulp_dm_post_init();
}
EVENT_SPY(EVT_DM_POST_INIT_F, imx8ulp_evt_dm_post_init);
EVENT_SPY(EVT_DM_POST_INIT, imx8ulp_evt_dm_post_init);

#if defined(CONFIG_SPL_BUILD)
__weak void __noreturn jump_to_image_no_args(struct spl_image_info *spl_image)
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/imx9/soc.c
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ int imx9_probe_mu(void *ctx, struct event *event)

return 0;
}
EVENT_SPY(EVT_DM_POST_INIT_F, imx9_probe_mu);
EVENT_SPY(EVT_DM_POST_INIT, imx9_probe_mu);

int timer_init(void)
{
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/am33xx/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -535,4 +535,4 @@ static int am33xx_dm_post_init(void *ctx, struct event *event)
#endif
return 0;
}
EVENT_SPY(EVT_DM_POST_INIT_F, am33xx_dm_post_init);
EVENT_SPY(EVT_DM_POST_INIT, am33xx_dm_post_init);
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/hwinit-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ static int omap2_system_init(void *ctx, struct event *event)

return 0;
}
EVENT_SPY(EVT_DM_POST_INIT_F, omap2_system_init);
EVENT_SPY(EVT_DM_POST_INIT, omap2_system_init);

/*
* Routine: wait_for_command_complete
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/mach-pic32/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ static int pic32_flash_prefetch(void *ctx, struct event *event)
prefetch_init();
return 0;
}
EVENT_SPY(EVT_DM_POST_INIT_F, pic32_flash_prefetch);
EVENT_SPY(EVT_DM_POST_INIT, pic32_flash_prefetch);

/* Un-gate DDR2 modules (gated by default) */
static void ddr2_pmd_ungate(void)
Expand Down
2 changes: 1 addition & 1 deletion arch/nios2/cpu/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ static int nios_cpu_setup(void *ctx, struct event *event)

return 0;
}
EVENT_SPY(EVT_DM_POST_INIT_F, nios_cpu_setup);
EVENT_SPY(EVT_DM_POST_INIT, nios_cpu_setup);

static int altera_nios2_get_desc(const struct udevice *dev, char *buf,
int size)
Expand Down
2 changes: 1 addition & 1 deletion arch/riscv/cpu/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ int riscv_cpu_setup(void *ctx, struct event *event)

return 0;
}
EVENT_SPY(EVT_DM_POST_INIT_F, riscv_cpu_setup);
EVENT_SPY(EVT_DM_POST_INIT, riscv_cpu_setup);

int arch_early_init_r(void)
{
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/cpu/baytrail/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ static int baytrail_uart_init(void *ctx, struct event *event)

return 0;
}
EVENT_SPY(EVT_DM_POST_INIT_F, baytrail_uart_init);
EVENT_SPY(EVT_DM_POST_INIT, baytrail_uart_init);

static void set_max_freq(void)
{
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/cpu/broadwell/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ static int broadwell_init_cpu(void *ctx, struct event *event)

return 0;
}
EVENT_SPY(EVT_DM_POST_INIT_F, broadwell_init_cpu);
EVENT_SPY(EVT_DM_POST_INIT, broadwell_init_cpu);

void set_max_freq(void)
{
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/cpu/ivybridge/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ static int ivybridge_cpu_init(void *ctx, struct event *ev)

return 0;
}
EVENT_SPY(EVT_DM_POST_INIT_F, ivybridge_cpu_init);
EVENT_SPY(EVT_DM_POST_INIT, ivybridge_cpu_init);

#define PCH_EHCI0_TEMP_BAR0 0xe8000000
#define PCH_EHCI1_TEMP_BAR0 0xe8000400
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/cpu/quark/quark.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ static int quark_init_pcie(void *ctx, struct event *event)

return 0;
}
EVENT_SPY(EVT_DM_POST_INIT_F, quark_init_pcie);
EVENT_SPY(EVT_DM_POST_INIT, quark_init_pcie);

int checkcpu(void)
{
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/lib/fsp2/fsp_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ int fsp_setup_pinctrl(void *ctx, struct event *event)

return ret;
}
EVENT_SPY(EVT_DM_POST_INIT_F, fsp_setup_pinctrl);
EVENT_SPY(EVT_DM_POST_INIT, fsp_setup_pinctrl);

#if !defined(CONFIG_TPL_BUILD)
binman_sym_declare(ulong, intel_fsp_m, image_pos);
Expand Down
4 changes: 2 additions & 2 deletions drivers/core/root.c
Original file line number Diff line number Diff line change
Expand Up @@ -436,8 +436,8 @@ int dm_init_and_scan(bool pre_reloc_only)
return ret;
}
}
if (CONFIG_IS_ENABLED(DM_EVENT) && !(gd->flags & GD_FLG_RELOC)) {
ret = event_notify_null(EVT_DM_POST_INIT_F);
if (CONFIG_IS_ENABLED(DM_EVENT)) {
ret = event_notify_null(EVT_DM_POST_INIT);
if (ret)
return log_msg_ret("ev", ret);
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/cpu/microblaze_cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ static int microblaze_cpu_probe_all(void *ctx, struct event *event)

return 0;
}
EVENT_SPY(EVT_DM_POST_INIT_F, microblaze_cpu_probe_all);
EVENT_SPY(EVT_DM_POST_INIT, microblaze_cpu_probe_all);

static void microblaze_set_cpuinfo_pvr(struct microblaze_cpuinfo *ci)
{
Expand Down
2 changes: 1 addition & 1 deletion include/event.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ enum event_t {
EVT_TEST,

/* Events related to driver model */
EVT_DM_POST_INIT_F,
EVT_DM_POST_INIT,
EVT_DM_PRE_PROBE,
EVT_DM_POST_PROBE,
EVT_DM_PRE_REMOVE,
Expand Down

0 comments on commit 9c29cdd

Please sign in to comment.