diff options
author | Pali Rohár <pali@kernel.org> | 2022-01-12 18:20:37 +0100 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2022-01-14 11:39:16 +0100 |
commit | d737d5d2c1e9aaea830c1cc469091ed9c13b2b2a (patch) | |
tree | 448bbe6d2cb9e04b66ad793baabe49a54f3943b4 /lib/linux_string.c | |
parent | 9ac1def0207c0b3e01eee203b138fba4ca299ef0 (diff) |
tools: kwbimage: Fix generating image with multiple DATA_DELAY commands
Register set header consists of sequence of DATA commands followed by
exactly one DATA_DELAY command. Thus if we are generating image with
multiple DATA_DELAY commands, we need to create more register set headers.
Fix calculation of image size with multiple DATA_DELAY commands and
correctly set pointer to struct register_set_hdr_v1 when initializing new
register set header.
Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'lib/linux_string.c')
0 files changed, 0 insertions, 0 deletions