u-boot-brain/arch/arm/cpu/armv7/sunxi
Hans de Goede 5665f50e81 sunxi: Fill memory before comparing it when doing dram init on sun6i
The sun8i boot0 code fills the DRAM with a "random" pattern before comparing
it at different offsets to do columns, etc. detection. The sun6i boot0 code
does not do it, instead relying on the memory contents being random enough
to begin with for the memcmp to properly detect the wrap-around address, iow
it is working purely by chance. Since our sun6i dram code was modelled after
the boot0 code it contained the same issue.

This commit fixes this by filling the memory with a unique, distinct pattern.

The new mctl_mem_fill function this introduces is added as an inline helper
in dram.h, so that it can be shared with the sun8i dram code.

While at it move mctl_mem_matches to dram.h for re-use in sun8i too.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
2015-01-14 14:56:37 +01:00
..
board.c sun6i: Poke magic sram controller register to avoid cache issues 2014-11-13 14:49:01 +01:00
clock_sun4i.c sunxi: Add video pll clock functions 2014-11-25 13:38:46 +01:00
clock_sun6i.c sun6i: clock_set_pll5: Calculate k and m rather then hardcoding them 2015-01-14 14:56:37 +01:00
clock.c sunxi: add sun7i clocks and timer support. 2014-05-25 16:12:12 +02:00
config.mk sunxi: non-FEL SPL boot support for sun7i 2014-05-25 16:31:03 +02:00
cpu_info.c sunxi: axp221: Add axp223 support 2015-01-14 14:56:36 +01:00
dram_sun4i.c sunxi: Move await_completion dram helper to dram.h 2015-01-14 14:56:37 +01:00
dram_sun6i.c sunxi: Fill memory before comparing it when doing dram init on sun6i 2015-01-14 14:56:37 +01:00
Makefile sunxi: Add support for the rsb (Reduced Serial Bus) 2015-01-14 14:56:36 +01:00
p2wi.c sun6i: s/SUNXI_*P2WI*/SUN6I_*P2WI*/ 2015-01-14 14:56:36 +01:00
pinmux.c dm: sunxi: Add pinmux functions which take a bank parameter 2014-11-05 13:09:58 +01:00
prcm.c ARM: sunxi: Allow specifying module in prcm apb0 init function 2014-10-24 09:35:39 +02:00
psci.S sunxi: Align PSCI stack calculation to comment 2015-01-14 14:56:36 +01:00
rsb.c sunxi: Add support for the rsb (Reduced Serial Bus) 2015-01-14 14:56:36 +01:00
start.c sunxi: add sun7i cpu, board and start of day support 2014-05-25 16:12:40 +02:00
timer.c sunxi: add sun7i clocks and timer support. 2014-05-25 16:12:12 +02:00
u-boot-spl-fel.lds sunxi: Add i2c support 2014-07-18 19:41:30 +01:00
u-boot-spl.lds sunxi: Add i2c support 2014-07-18 19:41:30 +01:00