On Tue, May 07, 2024 at 05:10:55PM +0800, Jim Liu wrote: > Followed the new style use event to replace last_stage_init(). > Fixed build error After replace last_stage_init(). > And remove CONFIG_SYS_SKIP_UART_INIT from defconfig, > system will reuse the setting from bootblock > and skip the baud rate setting. > > Signed-off-by: Jim Liu <jjl...@nuvoton.com> > --- > board/nuvoton/arbel_evb/arbel_evb.c | 7 +++++-- > board/nuvoton/common/Makefile | 2 +- > board/nuvoton/poleg_evb/poleg_evb.c | 6 +++++- > configs/arbel_evb_defconfig | 1 - > 4 files changed, 11 insertions(+), 5 deletions(-) > > diff --git a/board/nuvoton/arbel_evb/arbel_evb.c > b/board/nuvoton/arbel_evb/arbel_evb.c > index 53c931c3c2..d112329dc1 100644 > --- a/board/nuvoton/arbel_evb/arbel_evb.c > +++ b/board/nuvoton/arbel_evb/arbel_evb.c > @@ -5,6 +5,7 @@ > > #include <common.h> > #include <dm.h> > +#include <event.h> > #include <asm/io.h> > #include <asm/arch/gcr.h> > #include "../common/uart.h" > @@ -95,9 +96,11 @@ int dram_init_banksize(void) > return 0; > } > > -int last_stage_init(void) > +static int last_stage_init(void) > { > +#if CONFIG_IS_ENABLED(CONFIG_SYS_SKIP_UART_INIT)
The CONFIG_IS_ENABLED takes symbols without the CONFIG_ prefix part so that it will be true for FOO, and SPL_FOO and TPL_FOO. -- Tom
signature.asc
Description: PGP signature