* [PATCH] ARM: i.MX: ele: make ele_life_cycle public
@ 2025-07-09 9:03 Stefan Kerkmann
2025-07-09 10:48 ` Ahmad Fatoum
0 siblings, 1 reply; 2+ messages in thread
From: Stefan Kerkmann @ 2025-07-09 9:03 UTC (permalink / raw)
To: Sascha Hauer, BAREBOX; +Cc: Stefan Kerkmann
This allows using the string representation in other parts of barebox
e.g. board code.
Signed-off-by: Stefan Kerkmann <s.kerkmann@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,
--
Stefan Kerkmann <s.kerkmann@pengutronix.de>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] ARM: i.MX: ele: make ele_life_cycle public
2025-07-09 9:03 [PATCH] ARM: i.MX: ele: make ele_life_cycle public Stefan Kerkmann
@ 2025-07-09 10:48 ` Ahmad Fatoum
0 siblings, 0 replies; 2+ messages in thread
From: Ahmad Fatoum @ 2025-07-09 10:48 UTC (permalink / raw)
To: Stefan Kerkmann, Sascha Hauer, BAREBOX
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.kerkmann@pengutronix.de>
Reviewed-by: Ahmad Fatoum <a.fatoum@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 |
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-07-09 13:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-07-09 9:03 [PATCH] ARM: i.MX: ele: make ele_life_cycle public Stefan Kerkmann
2025-07-09 10:48 ` Ahmad Fatoum
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox