u-boot-brain/drivers
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
..
bios_emulator
block Move ALLOC_CACHE_ALIGN_BUFFER() to the new memalign.h header 2015-09-11 17:15:20 -04:00
bootcount qe: move immap_qe.h from arch directory into common directory 2014-07-22 16:25:54 -07:00
clk rockchip: rk3288: Add clock driver 2015-09-02 21:28:23 -06:00
core dm: core: Don't use pinctrl for the root device 2015-10-05 15:47:49 +01:00
cpu
crypto Correct License and Copyright information on few files 2015-08-12 20:47:46 -04:00
ddr bitops: introduce BIT() definition 2015-09-11 17:15:32 -04:00
demo drivers: hierarchize drivers Kconfig menu 2015-08-12 20:47:44 -04:00
dfu dfu: dfu_sf: Take the start address into account 2015-10-19 17:05:13 -04:00
dma dma: lpc32xx: add DMA driver 2015-08-18 13:45:55 -04:00
fpga
gpio gpio: s5p: call: dev_get_addr() instead of fdtdec_get_addr() 2015-10-03 14:39:19 +01:00
hwmon
i2c I2C: mxc_i2c: make I2C1 and I2C2 optional 2015-10-02 10:42:31 +02:00
input x86: i8042: Correctly initialize the controller 2015-08-26 07:54:16 -07:00
led dm: led: Tidy up SPL options for the led and led-gpio 2015-09-02 21:28:22 -06:00
memory
misc sandbox: Correct operaion of 'reset' command 2015-10-05 15:47:49 +01:00
mmc exynos: more debug and cleanup in do_sdhci_init() 2015-10-13 20:22:28 +09:00
mtd Merge branch 'master' of git://www.denx.de/git/u-boot-imx 2015-10-15 08:43:38 -04:00
net net: fix netconsole when CONFIG_DM_ETH is set 2015-09-29 21:54:45 -05:00
pci pci: pcie_imx: Fix hang on mx6qp 2015-10-15 09:05:13 -04:00
pcmcia
pinctrl ARM: uniphier: rename CONFIG_MACH_* to CONFIG_ARCH_UNIPHIER_* 2015-09-25 00:27:53 +09:00
power Merge git://git.denx.de/u-boot-rockchip 2015-09-03 14:57:09 -04:00
pwm
qe
ram ram: rename CONFIG_SPL_RAM_SUPPORT to CONFIG_SPL_RAM 2015-08-18 13:46:02 -04:00
rtc rtc:ds3232/ds3231: Add support to generate 32KHz output 2015-09-01 21:37:23 -05:00
serial serial: rockchip: make ROCKCHIP_SERIAL depend on ARCH_ROCKCHIP 2015-10-03 10:24:33 -06:00
soc
sound of: clean up OF_CONTROL ifdef conditionals 2015-08-18 13:46:05 -04:00
spi spi: tegra20: Add support for mode selection 2015-10-11 16:43:06 +05:30
thermal thermal: imx_thermal: Do not print on error 2015-09-13 10:49:21 +02:00
tpm dm: tpm: Convert LPC driver to driver model 2015-08-31 07:57:28 -06:00
twserial
usb arm: Remove unused ST-Ericsson u8500 arch 2015-09-15 15:05:21 -04:00
video Revert "powerpc: ppc4xx: remove lwmon5 support" 2015-10-11 17:12:09 -04:00
watchdog ls102xa: Fix reset hang 2015-10-12 12:56:32 -04:00
Kconfig pinctrl: add pin control uclass support 2015-08-31 07:57:29 -06:00
Makefile pinctrl: add pin control uclass support 2015-08-31 07:57:29 -06:00