aboutsummaryrefslogtreecommitdiff
path: root/tools/kwboot.c
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2022-01-25 18:13:13 +0100
committerStefan Roese <sr@denx.de>2022-01-31 10:23:38 +0100
commitffccee2a0cca5ee1e1690c68f9738ac463d5dc06 (patch)
tree9283283560fbb5a636b9b46283651d6c31dd8753 /tools/kwboot.c
parenta3c6496bb2e19e7ae8618ae70ee13aecebfaaf88 (diff)
downloadu-boot-ffccee2a0cca5ee1e1690c68f9738ac463d5dc06.zip
u-boot-ffccee2a0cca5ee1e1690c68f9738ac463d5dc06.tar.gz
u-boot-ffccee2a0cca5ee1e1690c68f9738ac463d5dc06.tar.bz2
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/kwboot.c')
-rw-r--r--tools/kwboot.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/kwboot.c b/tools/kwboot.c
index 859559f..2684f0e 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;