u-boot-brain/drivers/dfu
Fabio Estevam 2727f3bfba 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>
2015-10-19 17:05:13 -04:00
..
dfu_mmc.c dfu: mmc: buffer file reads too 2015-09-11 17:15:23 -04:00
dfu_nand.c dfu: nand: Verify writes 2015-03-30 23:24:38 -05:00
dfu_ram.c dfu: defer parsing of device string to IO backend 2014-08-09 11:16:58 -04:00
dfu_sf.c dfu: dfu_sf: Take the start address into account 2015-10-19 17:05:13 -04:00
dfu_tftp.c dfu: tftp: update: Provide tftp support for the DFU subsystem 2015-09-07 13:41:04 +02:00
dfu.c dfu: mmc: buffer file reads too 2015-09-11 17:15:23 -04:00
Kconfig dfu: tftp: Kconfig: Add Kconfig entry for dfu tftp feature 2015-09-07 13:41:05 +02:00
Makefile dfu: tftp: update: Provide tftp support for the DFU subsystem 2015-09-07 13:41:04 +02:00