mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Stefan Kerkmann <s.kerkmann@pengutronix.de>
To: Sascha Hauer <s.hauer@pengutronix.de>,
	 BAREBOX <barebox@lists.infradead.org>
Cc: Stefan Kerkmann <s.kerkmann@pengutronix.de>
Subject: [PATCH] ARM: i.MX: ele: make ele_life_cycle public
Date: Wed, 09 Jul 2025 11:03:22 +0200	[thread overview]
Message-ID: <20250709-feature-ahab-lifecycle-public-v1-1-82e1ce163014@pengutronix.de> (raw)

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>




             reply	other threads:[~2025-07-09 10:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-09  9:03 Stefan Kerkmann [this message]
2025-07-09 10:48 ` Ahmad Fatoum

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250709-feature-ahab-lifecycle-public-v1-1-82e1ce163014@pengutronix.de \
    --to=s.kerkmann@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=s.hauer@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox