summaryrefslogtreecommitdiff
path: root/board/armltd
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2015-09-23 03:50:39 (GMT)
committerTom Rini <trini@konsulko.com>2015-10-19 21:05:13 (GMT)
commit2727f3bfba1bc78ca517984c2c9e0c473aeedbf4 (patch)
tree5026809928a31792d4d53599f56f3d906054be3c /board/armltd
parentf4c92582137a645ffc42346d7176ddd1462c2be0 (diff)
downloadu-boot-fsl-qoriq-2727f3bfba1bc78ca517984c2c9e0c473aeedbf4.tar.xz
dfu: dfu_sf: Take the start address into account
The dfu_alt_info_spl variable allows passing a starting point for the binary to be flashed in the SPI NOR. For example, if we have 'dfu_alt_info_spl=spl raw 0x400', this means that we want to flash the binary starting at address 0x400. In order to do so we need to erase the entire sector and write to the the subsequent SPI NOR sectors taking such start address into account for the address calculations. Tested by succesfully writing SPL binary into 0x400 offset and the u-boot.img at offset 64 kiB of a SPL NOR. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Acked-by: Lukasz Majewski <l.majewski@samsung.com> [trini: Use lldiv for the math] Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board/armltd')
0 files changed, 0 insertions, 0 deletions