diff options
author | Peng Fan <peng.fan@nxp.com> | 2019-08-06 10:07:26 +0000 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2019-10-08 16:35:16 +0200 |
commit | 4d655bfe03a35a2f85b2b779342b135c54d055a0 (patch) | |
tree | bd146d89d56bc3517c546c8aab96fd87172ea256 /tools | |
parent | 39ebb4187db15641117228f2579ff421cfe0df90 (diff) | |
download | u-boot-4d655bfe03a35a2f85b2b779342b135c54d055a0.tar.gz |
tools: imx8mimage: fix HDMI/FIT parsing
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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/imx8mimage.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/imx8mimage.c b/tools/imx8mimage.c index 50a256cbac..6c02337698 100644 --- a/tools/imx8mimage.c +++ b/tools/imx8mimage.c @@ -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); |