On 7/9/25 11:03, Stefan Kerkmann wrote: > This allows using the string representation in other parts of barebox > e.g. board code. > > Signed-off-by: Stefan Kerkmann <s.kerkm...@pengutronix.de>
Reviewed-by: Ahmad Fatoum <a.fat...@pengutronix.de> > --- > arch/arm/mach-imx/ele.c | 2 +- > include/mach/imx/ele.h | 1 + > 2 files changed, 2 insertions(+), 1 deletion(-) > > diff --git a/arch/arm/mach-imx/ele.c b/arch/arm/mach-imx/ele.c > index > ec0fd652160059eab7276070842d657bde9709db..c0d1ab605d341187ea8ae855a8f0569e015bbc82 > 100644 > --- a/arch/arm/mach-imx/ele.c > +++ b/arch/arm/mach-imx/ele.c > @@ -665,7 +665,7 @@ unsigned int imx93_ahab_read_lifecycle(void) > return readl(MX9_OCOTP_BASE_ADDR + 0x41c) & 0x3ff; > } > > -static const char *ele_life_cycle(u32 lc) > +const char *ele_life_cycle(u32 lc) > { > switch (lc) { > case ELE_LIFECYCLE_BLANK: return "BLANK"; > diff --git a/include/mach/imx/ele.h b/include/mach/imx/ele.h > index > e7226e6576267fa0f92de0d1d1d7795989831714..1c8cc02b201a62760628fd030dc4e8fe44c92aa2 > 100644 > --- a/include/mach/imx/ele.h > +++ b/include/mach/imx/ele.h > @@ -160,6 +160,7 @@ int ele_authenticate_container(unsigned long addr, u32 > *response); > int ele_release_container(u32 *response); > int ele_forward_lifecycle(u32 lc, u32 *response); > int ele_print_events(void); > +const char *ele_life_cycle(u32 lc); > > int imx93_ele_load_fw(void *bl33); > unsigned int imx93_ahab_read_lifecycle(void); > > --- > base-commit: f49c873d7ec78a2df7bd3c7a86f5372fb1666517 > change-id: 20250709-feature-ahab-lifecycle-public-1c637d6f87df > > Best regards, -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |