summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2022-01-25 20:13:13 +0300
committerStefan Roese <sr@denx.de>2022-01-31 12:23:38 +0300
commitffccee2a0cca5ee1e1690c68f9738ac463d5dc06 (patch)
tree9283283560fbb5a636b9b46283651d6c31dd8753 /tools
parenta3c6496bb2e19e7ae8618ae70ee13aecebfaaf88 (diff)
downloadu-boot-ffccee2a0cca5ee1e1690c68f9738ac463d5dc06.tar.xz
tools: kwboot: Set debug flag to 1
This should enable BootROM output on UART. (At least on A385 BootROM this is broken, BootROM ignores this debug flag and does not enable its output on UART if some valid image is available in SPI-NOR.) Signed-off-by: Pali Rohár <pali@kernel.org> Signed-off-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'tools')
-rw-r--r--tools/kwboot.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/kwboot.c b/tools/kwboot.c
index 859559fb72..2684f0e75a 100644
--- a/tools/kwboot.c
+++ b/tools/kwboot.c
@@ -1631,6 +1631,7 @@ kwboot_img_patch(void *img, size_t *size, int baudrate)
* baudrate (which should be 115200) and do not touch
* UART MPP configuration.
*/
+ hdr->flags |= 0x1;
hdr->options &= ~0x1F;
hdr->options |= MAIN_HDR_V1_OPT_BAUD_DEFAULT;
hdr->options |= 0 << 3;