]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
tools: imx8image: add upower image support
authorGary Bisson <bisson.gary@gmail.com>
Mon, 5 Aug 2024 21:25:08 +0000 (23:25 +0200)
committerFabio Estevam <festevam@denx.de>
Tue, 13 Aug 2024 11:28:24 +0000 (08:28 -0300)
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>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
include/imx8image.h
tools/imx8image.c

index 32064bfeeb8c19052216cb9230b681684405d618..85fb642ae395b7a7e3277582a58bfa184787492f 100644 (file)
@@ -162,6 +162,7 @@ enum imx8image_cmd {
 enum imx8image_core_type {
        CFG_CORE_INVALID,
        CFG_SCU,
+       CFG_PWR,
        CFG_M40,
        CFG_M41,
        CFG_A35,
index 53ab16637bad8edfbe9e6658ef5c78afc1637c54..5eb4b9612c830750eeeabf0221d26ef04ba436ce 100644 (file)
@@ -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;