barebox/arch/arm/mach-at91/include/mach
Edoardo Scaglia 49a1eeb04b at91sam9x5: fix ROM base address (bugfix for nand ECC)i
The ROM base address in the 9x5 processors lives at 1M, not 4M,
where SMD is, as defined later in the same file.

The ROM includes some tables that are used to build error-correction data
for NAND memory.  By using the wrong address, we get wrong data and
the result is undetected bit flips (data at 0x408000 is all zeroes).

Thus, even though our kernel was fixing bit errors in NAND, barebox
was not fixing them. With UBI (our situation) we got I/O errors because
the checksum verification for data nodes failed.

Using the proper address corrects the problem: barebox reports a
"bitflip" message, consistent with the kernel message for the same
file, and the files are properly loaded and booted.

Note: the kernel has the same wrong define, but then the magic number
0x00108000 as spelled in arch/arm/boot/dts/at91sam9x5.dtsi is used
instead of the symbolic name.

Signed-off-by: Edoardo Scaglia <scaglia@amelchem.com>
Signed-off-by: Federico Braghiroli <braghiroli@amelchem.com>
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-10-02 09:03:43 +02:00
..
at91_dbgu.h at91: autodetect the soc one time at postcore_initcall 2013-01-07 18:56:58 +01:00
at91_lowlevel_init.h at91sam9: drop AT91_BASE_SYS for sdram controller 2013-02-05 10:26:49 +01:00
at91_pio.h ARM: at91/pio: add new PIO3 features 2012-04-02 10:31:23 +02:00
at91_pit.h at91: PIT: switch to platform_driver 2013-01-07 18:56:58 +01:00
at91_pmc.h ARM: at91: add sama5d4 soc support #1 2014-09-24 06:46:52 +02:00
at91_rstc.h [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2009-10-22 14:21:25 +02:00
at91_rtt.h at91: add irq fixup 2013-09-18 09:16:45 +02:00
at91_st.h at91: Support for at91rm9200: core chip & board support 2011-05-31 08:22:00 +02:00
at91_tc.h at91: Support for at91rm9200: core chip & board support 2011-05-31 08:22:00 +02:00
at91_wdt.h at91: wdt: drop AT91_SYS_BASE 2013-01-07 18:56:58 +01:00
at91rm9200.h ARM: at91: move pmc base address into soc header 2014-09-22 06:59:35 +02:00
at91rm9200_emac.h at91: Support for at91rm9200: core chip & board support 2011-05-31 08:22:00 +02:00
at91rm9200_mc.h at91rm9200: add autodetect sdram size 2013-01-28 09:45:09 +01:00
at91sam9_ddrsdr.h at91sam9_ddrsdr: fix register on mdr read and sdram detection for ddr size 2013-02-04 09:44:41 +01:00
at91sam9_matrix.h at91: Support for at91sam9g10: core chip & board support 2010-11-11 20:43:19 +08:00
at91sam9_sdramc.h at91sam9: drop AT91_BASE_SYS for sdram controller 2013-02-05 10:26:49 +01:00
at91sam9_smc.h sama5d3x: fix HSMC MODE register offset and add TIMINGS register 2014-07-31 14:40:11 +02:00
at91sam9g45.h ARM: at91: move pmc base address into soc header 2014-09-22 06:59:35 +02:00
at91sam9g45_matrix.h at91: Support for at91sam9g45 and at91sam9m10 series: core chip & board support 2010-11-11 20:43:16 +08:00
at91sam9n12.h ARM: at91: move pmc base address into soc header 2014-09-22 06:59:35 +02:00
at91sam9n12_matrix.h arm: at91: add at91sam9n12 support 2012-11-26 08:34:08 +01:00
at91sam9x5.h at91sam9x5: fix ROM base address (bugfix for nand ECC)i 2015-10-02 09:03:43 +02:00
at91sam9x5_matrix.h AT91: at91sam9x5: add chip and board file 2012-04-02 10:31:23 +02:00
at91sam9260.h ARM: at91: move pmc base address into soc header 2014-09-22 06:59:35 +02:00
at91sam9260_matrix.h [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2009-10-22 14:21:25 +02:00
at91sam9261.h ARM: at91: move pmc base address into soc header 2014-09-22 06:59:35 +02:00
at91sam9261_matrix.h at91: Introduction of at91sam9261 SOC. 2010-11-10 19:45:15 +08:00
at91sam9263.h ARM: at91: move pmc base address into soc header 2014-09-22 06:59:35 +02:00
at91sam9263_matrix.h [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2009-10-22 14:21:25 +02:00
atmel_hlcdc.h treewide: remove address of the Free Software Foundation 2014-06-11 08:35:25 +02:00
barebox-arm-head.h arm: rename reset and common_reset to barebox_arm_reset_vector and arm_cpu_lowlevel_init 2013-02-08 09:35:40 +01:00
board.h sizes.h: move include/sizes.h to include/linux/sizes.h 2015-01-08 14:00:26 +01:00
bootstrap.h at91: add bootstrap version 2013-01-22 22:03:44 +01:00
cpu.h ARM: atmel: at91sam9n12: add subtype support 2015-02-11 09:38:07 +01:00
debug_ll.h at91: introduce Kconfig to select the dbgu for lowlevel debug 2013-01-07 18:33:24 +01:00
gpio.h gpio: Drop asm-generic/gpio.h 2015-08-20 07:47:11 +02:00
hardware.h ARM: at91: add sama5d4 soc support #1 2014-09-24 06:46:52 +02:00
io.h ARM: AT91: Add missing include 2013-08-16 15:58:32 +02:00
iomux.h ARM: AT91: move iomux definitions to iomux.h 2013-08-16 15:58:33 +02:00
sama5d3.h ARM: at91: move pmc base address into soc header 2014-09-22 06:59:35 +02:00
sama5d3_matrix.h at91: add sama5d3 support 2013-01-30 08:24:39 +01:00
sama5d4.h ARM: at91: add sama5d4 soc support #2 2014-09-24 06:46:53 +02:00