diff options
author | Simon Glass <sjg@chromium.org> | 2023-08-21 21:17:00 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-08-31 13:16:55 -0400 |
commit | 6a32bfae61652f9dae621410ca6e094f374a1f11 (patch) | |
tree | 2f215f3dd3e7ff54c50dca579b00a5ddc550250e /board/freescale | |
parent | 13a7db9ab1791736c69ce49be85db5f4c32dc581 (diff) | |
download | u-boot-6a32bfae61652f9dae621410ca6e094f374a1f11.tar.gz u-boot-6a32bfae61652f9dae621410ca6e094f374a1f11.tar.bz2 u-boot-6a32bfae61652f9dae621410ca6e094f374a1f11.zip |
freescale: Drop call to init_func_vid() in the init sequence
Use the misc_init_f event instead, which is designed for this purpose.
All boards with CONFIG_VID already enable CONFIG_EVENT.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'board/freescale')
-rw-r--r-- | board/freescale/ls1088a/ls1088a.c | 3 | ||||
-rw-r--r-- | board/freescale/lx2160a/lx2160a.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/board/freescale/ls1088a/ls1088a.c b/board/freescale/ls1088a/ls1088a.c index 7a1047a77f..f2b8bec037 100644 --- a/board/freescale/ls1088a/ls1088a.c +++ b/board/freescale/ls1088a/ls1088a.c @@ -181,13 +181,14 @@ unsigned long long get_qixis_addr(void) #endif #if defined(CONFIG_VID) -int init_func_vid(void) +static int setup_core_voltage(void) { if (adjust_vdd(0) < 0) printf("core voltage not adjusted\n"); return 0; } +EVENT_SPY_SIMPLE(EVT_MISC_INIT_F, setup_core_voltage); u16 soc_get_fuse_vid(int vid_index) { diff --git a/board/freescale/lx2160a/lx2160a.c b/board/freescale/lx2160a/lx2160a.c index d631a11ff6..2883848550 100644 --- a/board/freescale/lx2160a/lx2160a.c +++ b/board/freescale/lx2160a/lx2160a.c @@ -13,6 +13,7 @@ #include <i2c.h> #include <malloc.h> #include <errno.h> +#include <event.h> #include <netdev.h> #include <fsl_ddr.h> #include <asm/io.h> @@ -242,6 +243,7 @@ int init_func_vid(void) return 0; } #endif +EVENT_SPY_SIMPLE(EVT_MISC_INIT_F, init_func_vid); int checkboard(void) { |