]> git.dujemihanovic.xyz Git - u-boot.git/commit
tools: kwbimage: Fix dumping DATA registers for v0 images
authorPali Rohár <pali@kernel.org>
Sun, 13 Feb 2022 00:04:33 +0000 (01:04 +0100)
committerStefan Roese <sr@denx.de>
Thu, 17 Feb 2022 13:17:07 +0000 (14:17 +0100)
commita2389213f2877967d2108dee61b86327048d0e18
treefff0eb0ee28bf157b72ac40ca1a77f29445926d7
parent2a9059aef5e07baadf6a003c884bdb6056728783
tools: kwbimage: Fix dumping DATA registers for v0 images

End of DATA register section is indicated by zero value in both raddr and
rdata.

So do not stop dumping registers with non-zero address and zero value.
And also print end of DATA registers section.

Fixes: 1a8e6b63e24f ("tools: kwbimage: Dump kwbimage config file on '-p -1' option")
Signed-off-by: Pali Rohár <pali@kernel.org>
Reported-by: Tony Dinh <mibodhi@gmail.com>
Tested-by: Tony Dinh <mibodhi@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
tools/kwbimage.c