tools: imx8mimage: fix HDMI/FIT parsing
authorPeng Fan <peng.fan@nxp.com>
Tue, 6 Aug 2019 10:07:26 +0000 (10:07 +0000)
committerStefano Babic <sbabic@denx.de>
Tue, 8 Oct 2019 14:35:16 +0000 (16:35 +0200)
Add missed break for HDMI entry.
And moving FIT parsing earlier, because it does not have parameter,
it will not runs into CFG_REG_SIZE.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Lukasz Majewski <lukma@denx.de>
tools/imx8mimage.c

index 50a256cbac56dc984c0e2458f0d2e2ac323aae5c..6c023376984afefd86c95d9e452b4fd11a719d8d 100644 (file)
@@ -99,8 +99,6 @@ static void parse_cfg_cmd(int32_t cmd, char *token, char *name, int lineno)
                break;
        case CMD_SIGNED_HDMI:
                signed_hdmi = token;
-       case CMD_FIT:
-               using_fit = 1;
                break;
        case CMD_DDR_FW:
                /* Do nothing */
@@ -120,6 +118,11 @@ static void parse_cfg_fld(int32_t *cmd, char *token,
                                name, lineno, token);
                        exit(EXIT_FAILURE);
                }
+               switch (*cmd) {
+               case CMD_FIT:
+                       using_fit = 1;
+                       break;
+               }
                break;
        case CFG_REG_SIZE:
                parse_cfg_cmd(*cmd, token, name, lineno);