u-boot-brain/arch/arm/cpu/arm926ejs
Jörg Krause 32f9ef3e2b ARM: mxs: Get boot mode from OCRAM
Reading the boot mode pins after power-up does not necessarily represent the
boot mode used by the ROM loader. For example the state of a pin may have
changed because a recovery switch which was pressed to enter USB mode is
already released after plugging in USB.

The ROM loader stores the value a fixed address in OCRAM. Use this value
instead of reading the boot map pins.

The GLOBAL_BOOT_MODE_ADDR for i.MX28 is taken from an U-Boot patch for the
MX28EVK:
http://repository.timesys.com/buildsources/u/u-boot/u-boot-2009.08/u-boot-2009.08-mx28-201012211513.patch

Leave the boot mode detection for the i.MX23 untouched. Someone has to test
whether the i.MX ROM loader does also store the boot mode in OCRAM and if the
address match.

This patch superseeds my incorrect patch:
ARM: mxs: get boot mode from OTP
http://patchwork.ozlabs.org/patch/454930/

Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Cc: Stefano Babic <sbabic@denx.de>
2015-04-22 14:24:09 +02:00
..
armada100 arm926ejs: convert makefiles to Kbuild style 2013-10-31 12:53:39 -04:00
lpc32xx lpc32xx: add support for board work_92105 2015-04-10 14:23:39 +02:00
mx25 mx25: Fix boot hang by avoiding vector relocation 2015-01-08 13:50:17 -05:00
mx27 imx: fix exception vectors relocation in imx27 2014-11-20 10:13:54 +01:00
mxs ARM: mxs: Get boot mode from OCRAM 2015-04-22 14:24:09 +02:00
omap Move CONFIG_DISPLAY_CPUINFO to Makefile 2014-02-19 11:10:05 -05:00
orion5x edminiv2: switch to SPL 2015-02-25 07:59:50 +01:00
spear i2c: designware: Convert driver to multibus/multiadapter framework 2014-10-29 08:56:23 +01:00
cache.c arm926ejs: cache: use __weak 2014-11-04 15:01:04 -05:00
cpu.c arm, arm926ejs: make thumb mode compileable 2015-01-19 12:49:26 +01:00
Makefile ARM: remove dkb board support 2015-02-24 17:07:03 -05:00
start.S remove unnecessary version.h includes 2015-03-24 10:50:50 -04:00