summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorYork Sun <york.sun@nxp.com>2017-08-15 18:14:41 (GMT)
committerYork Sun <york.sun@nxp.com>2017-09-11 14:55:36 (GMT)
commit05e35d26dbd18bbe896d361be7929749812059c8 (patch)
treee37b762b028d0483823769820a3913335855491e /tools
parent73fbcdf16376bf06b6d94c7cb53f911b6924dab5 (diff)
downloadu-boot-05e35d26dbd18bbe896d361be7929749812059c8.tar.xz
tools: pblimage: Fix address calculation
The image size should be added to the initial pbl command, not bit "ORed". Signed-off-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/pblimage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/pblimage.c b/tools/pblimage.c
index ffc3268..d25a733 100644
--- a/tools/pblimage.c
+++ b/tools/pblimage.c
@@ -293,7 +293,7 @@ int pblimage_check_params(struct image_tool_params *params)
pbi_crc_cmd2 = 0;
pbl_cmd_initaddr = params->addr & PBL_ADDR_24BIT_MASK;
pbl_cmd_initaddr |= PBL_ACS_CONT_CMD;
- pbl_cmd_initaddr |= uboot_size;
+ pbl_cmd_initaddr += uboot_size;
pbl_end_cmd[0] = 0x09610000;
pbl_end_cmd[1] = 0x00000000;
pbl_end_cmd[2] = 0x096100c0;