u-boot/arch/arm/cpu/arm926ejs/mxs
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
..
clock.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
iomux.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
Makefile Merge branch 'u-boot/master' into 'u-boot-arm/master' 2014-04-08 09:25:08 +02:00
mxs.c cppcheck cleanup: fix nullPointer errors 2014-11-07 16:27:07 -05:00
mxs_init.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
mxsimage-signed.cfg ARM: mxs: tools: Add support for boot progress display flag 2014-11-20 10:13:45 +01:00
mxsimage.mx23.cfg ARM: mxs: tools: Add support for boot progress display flag 2014-11-20 10:13:45 +01:00
mxsimage.mx28.cfg ARM: mxs: tools: Add support for boot progress display flag 2014-11-20 10:13:45 +01:00
spl_boot.c ARM: mxs: Get boot mode from OCRAM 2015-04-22 14:24:09 +02:00
spl_lradc_init.c arm: mxs: Add debug outputs and comments to mxs SPL source files 2015-02-10 12:48:49 +01:00
spl_mem_init.c arm: mxs: Add debug outputs and comments to mxs SPL source files 2015-02-10 12:48:49 +01:00
spl_power_init.c arm: mxs: Enable booting of mx28 without battery 2015-02-10 12:48:50 +01:00
start.S remove unnecessary version.h includes 2015-03-24 10:50:50 -04:00
timer.c ARM: MXS: fix Uninitialized variable error 2014-11-10 16:25:27 -05:00
u-boot-imx23.bd kbuild,mxs: use short logs for MXS images 2014-03-12 17:04:37 -04:00
u-boot-imx28.bd kbuild,mxs: use short logs for MXS images 2014-03-12 17:04:37 -04:00
u-boot-spl.lds arm: Add missing .vectors section to linker scripts 2014-08-30 07:46:41 -04:00