u-boot/arch/arm/cpu/armv7
Nikita Kiryanov f2863ff3f4 arm: imx: make bmode command work with SPL/U-Boot combo
The bmode command forces the SoC to use a specific boot device
by writing its boot mode into SRC_GPR9, and notifying the SoC of
the change using SRC_GPR10[28] bit: if the bit is on, bootROM
uses the value in SRC_GPR9 instead of SRC_SMBR1 to determine
the boot device.

SPL on the other hand is oblivious to this distinction, so once
the bootROM loads SPL from the device configured in SRC_GPR10,
SPL will attempt to load U-Boot from the device configured in
SRC_SMBR1, which is not updated by the bootROM to the value in
SRC_GPR9.

The result is that the selected boot device is not used across all
the boot stages.

Update spl_boot_device() to look at gpr9 when necessary.

Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Troy Kisky <troy.kisky@boundarydevices.com>
Cc: Tim Harvey <tharvey@gateworks.com>
Cc: Eric Nelson <eric.nelson@boundarydevices.com>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
Cc: Heiko Schocher <hs@denx.de>
2014-11-12 09:03:54 +01:00
..
am33xx am335x: make get_board_rev() function weak 2014-11-06 11:04:40 -05:00
armada-xp arm: armada-xp: Add basic support for Marvell Armada XP SoC 2014-10-23 09:59:21 -04:00
at91 ARM: atmel: use pcr to enable or disable peripheral clock 2014-09-19 00:11:18 +02:00
bcm281xx arm: bcm281xx: Add Ethernet Clock support 2014-08-30 07:46:39 -04:00
bcmcygnus arm: bcmcygnus: Add bcmcygnus u-architecture 2014-08-30 07:46:40 -04:00
bcmnsp arm: bcmnsp: Add bcmnsp u-architecture 2014-08-30 07:46:40 -04:00
exynos kconfig: arm: introduce symbol for ARM CPUs 2014-10-29 09:02:09 -04:00
highbank kconfig: arm: introduce symbol for ARM CPUs 2014-10-29 09:02:09 -04:00
iproc-common arm: iproc: Initial commit of iproc architecture code 2014-08-30 07:46:40 -04:00
keystone kconfig: arm: introduce symbol for ARM CPUs 2014-10-29 09:02:09 -04:00
kona-common sizes.h - consolidate for all architectures 2014-03-04 12:15:01 -05:00
ls102xa arm: ls102xa: Add Freescale LS102xA SoC support 2014-09-08 10:30:32 -07:00
mx5 kbuild: move asm-offsets.c from SoC directory to arch/$(ARCH)/lib 2014-03-28 15:06:29 -04:00
mx6 arm: imx: make bmode command work with SPL/U-Boot combo 2014-11-12 09:03:54 +01:00
omap-common Rename some defines containing FAT in their name to be filesystem generic 2014-10-27 11:04:01 -04:00
omap3 omap3: cm-t3517: add basic board support 2014-11-06 11:04:41 -05:00
omap4 kconfig: arm: introduce symbol for ARM CPUs 2014-10-29 09:02:09 -04:00
omap5 kconfig: arm: introduce symbol for ARM CPUs 2014-10-29 09:02:09 -04:00
rmobile arm: rmobile: alt: Add external RAM boot 2014-11-04 08:59:40 +09:00
s5p-common armv7: convert makefiles to Kbuild style 2013-10-31 12:53:39 -04:00
s5pc1xx kconfig: arm: introduce symbol for ARM CPUs 2014-10-29 09:02:09 -04:00
socfpga arm: socfpga: Zap spl.h and ad-hoc related syms 2014-10-27 02:26:24 +01:00
sunxi dm: sunxi: Add pinmux functions which take a bank parameter 2014-11-05 13:09:58 +01:00
tegra-common kconfig: move CONFIG_USE_PRIVATE_LIBGCC to Kconfig 2014-10-23 13:19:09 -04:00
tegra20 tegra: make local functions static 2014-10-25 07:27:37 -04:00
tegra30 arm: tegra: initial support for apalis t30 2014-10-22 09:30:54 -07:00
tegra114 kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
tegra124 kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
u8500 armv7: convert makefiles to Kbuild style 2013-10-31 12:53:39 -04:00
uniphier ARM: UniPhier: call pin_init() also in the normal boot 2014-11-12 00:31:01 +09:00
vf610 armv7: convert makefiles to Kbuild style 2013-10-31 12:53:39 -04:00
zynq cppcheck cleanup: fix nullPointer errors 2014-11-07 16:27:07 -05:00
arch_timer.c arm: add support for arch timer 2014-04-17 17:24:38 -04:00
cache_v7.c ARM: cache_v7: use __weak 2014-07-04 19:57:22 +02:00
config.mk Merge branch 'master' of git://git.denx.de/u-boot-arm 2014-02-26 16:49:58 -05:00
cpu.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
lowlevel_init.S arm: use canonical sub mnemonic 2014-01-14 12:38:47 +01:00
Makefile arm: iproc: Initial commit of iproc architecture code 2014-08-30 07:46:40 -04:00
nonsec_virt.S ARM: HYP/non-sec: add the option for a second-stage monitor 2014-07-28 17:19:26 +02:00
psci.S ARM: HYP/non-sec: add generic ARMv7 PSCI code 2014-07-28 17:19:18 +02:00
start.S arm: relocate the exception vectors 2014-10-29 09:02:50 -04:00
syslib.c ARM: OMAP: hide custom bit manipulation function sr32() 2014-04-17 14:39:54 -04:00
virt-dt.c ARM: HYP/non-sec/PSCI: emit DT nodes 2014-07-28 17:19:52 +02:00
virt-v7.c ARM: HYP/non-sec: remove MIDR check to validate CBAR 2014-07-28 17:19:55 +02:00