All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gary Bisson <bisson.gary@gmail.com>
To: u-boot@lists.denx.de
Cc: trini@konsulko.com, festevam@gmail.com, peng.fan@nxp.com,
	uboot-imx@nxp.com, Gary Bisson <bisson.gary@gmail.com>
Subject: [PATCH 2/5] tools: imx8image: add upower image support
Date: Mon,  5 Aug 2024 14:43:23 +0200	[thread overview]
Message-ID: <20240805124326.544310-3-bisson.gary@gmail.com> (raw)
In-Reply-To: <20240805124326.544310-1-bisson.gary@gmail.com>

Part of the upower management was included in a previous commit [1].
This patch only adds the bits required to properly parse a config file
that would include the binary as follows:
IMAGE PWR upower.bin

[1] 6ec65c8558f (tools: image: support i.MX93)

Signed-off-by: Gary Bisson <bisson.gary@gmail.com>
---
 include/imx8image.h | 1 +
 tools/imx8image.c   | 5 +++++
 2 files changed, 6 insertions(+)

diff --git a/include/imx8image.h b/include/imx8image.h
index 32064bfeeb8..85fb642ae39 100644
--- a/include/imx8image.h
+++ b/include/imx8image.h
@@ -162,6 +162,7 @@ enum imx8image_cmd {
 enum imx8image_core_type {
 	CFG_CORE_INVALID,
 	CFG_SCU,
+	CFG_PWR,
 	CFG_M40,
 	CFG_M41,
 	CFG_A35,
diff --git a/tools/imx8image.c b/tools/imx8image.c
index 53ab16637ba..5eb4b9612c8 100644
--- a/tools/imx8image.c
+++ b/tools/imx8image.c
@@ -57,6 +57,7 @@ static table_entry_t imx8image_cmds[] = {
 
 static table_entry_t imx8image_core_entries[] = {
 	{CFG_SCU,	"SCU",			"scu core",	},
+	{CFG_PWR,	"PWR",			"uPower core",	},
 	{CFG_M40,	"M40",			"M4 core 0",	},
 	{CFG_M41,	"M41",			"M4 core 1",	},
 	{CFG_A35,	"A35",			"A35 core",	},
@@ -181,6 +182,10 @@ static void parse_cfg_fld(image_t *param_stack, int32_t *cmd, char *token,
 			param_stack[p_idx].option = SCFW;
 			param_stack[p_idx++].filename = token;
 			break;
+		case CFG_PWR:
+			param_stack[p_idx].option = UPOWER;
+			param_stack[p_idx++].filename = token;
+			break;
 		case CFG_M40:
 			param_stack[p_idx].option = M40;
 			param_stack[p_idx].ext = 0;
-- 
2.43.0


  parent reply	other threads:[~2024-08-05 13:55 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-05 12:43 [PATCH 0/5] imx: imx8ulp: add binman support Gary Bisson
2024-08-05 12:43 ` [PATCH 1/5] tools: imx8image: fix soc variable for ULP Gary Bisson
2024-08-05 14:01   ` Peng Fan
2024-08-13 16:23   ` Fabio Estevam
2024-08-05 12:43 ` Gary Bisson [this message]
2024-08-05 14:04   ` [PATCH 2/5] tools: imx8image: add upower image support Peng Fan
2024-08-05 12:43 ` [PATCH 3/5] spl: binman: Disable u_boot_any symbols for i.MX 8ULP boards Gary Bisson
2024-08-05 14:05   ` Peng Fan
2024-08-05 12:43 ` [PATCH 4/5] mach-imx: Add i.MX 8ULP binman support Gary Bisson
2024-08-05 14:06   ` Peng Fan
2024-08-05 12:43 ` [PATCH 5/5] imx8ulp_evk: enable " Gary Bisson
2024-08-05 14:10   ` Peng Fan
2024-08-05 13:31 ` [PATCH 0/5] imx: imx8ulp: add " Fabio Estevam
2024-08-05 13:43   ` Gary Bisson
2024-08-05 21:25 ` [PATCH v2 " Gary Bisson
2024-08-05 21:25   ` [PATCH v2 1/5] tools: imx8image: fix soc variable for ULP Gary Bisson
2024-08-05 21:25   ` [PATCH v2 2/5] tools: imx8image: add upower image support Gary Bisson
2024-08-05 21:25   ` [PATCH v2 3/5] spl: binman: Disable u_boot_any symbols for i.MX 8ULP boards Gary Bisson
2024-08-05 21:25   ` [PATCH v2 4/5] mach-imx: Add i.MX 8ULP binman support Gary Bisson
2024-08-05 21:25   ` [PATCH v2 5/5] imx8ulp_evk: enable " Gary Bisson

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=20240805124326.544310-3-bisson.gary@gmail.com \
    --to=bisson.gary@gmail.com \
    --cc=festevam@gmail.com \
    --cc=peng.fan@nxp.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=uboot-imx@nxp.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.