u-boot/arch/arm/imx-common
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
..
cmd_bmode.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
cmd_hdmidet.c Merge git://git.denx.de/u-boot-arm 2013-07-31 11:30:38 +02:00
cpu.c imx: add missing includes 2014-10-25 15:27:35 -04:00
i2c-mxv7.c dm: imx: i2c: Use gpio_request() to request GPIOs 2014-10-22 10:36:55 -06:00
iomux-v3.c imx: mx6 sabreauto: Add board support for USB EHCI 2014-11-03 11:21:49 +01:00
Makefile Merge branch 'u-boot-imx/master' into 'u-boot-arm/master' 2014-06-30 23:00:34 +02:00
misc.c imx: add missing includes 2014-10-25 15:27:35 -04:00
sata.c mx6: Remove duplication of iomuxc structure 2014-07-23 12:25:41 +02:00
speed.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
spl.c arm: imx: make bmode command work with SPL/U-Boot combo 2014-11-12 09:03:54 +01:00
timer.c imx: gpt: Add High frequency clock source support for GPT 2014-11-03 11:21:41 +01:00
video.c ARM: i.MX video: declare displays and display_count publicly 2014-10-21 10:47:14 +02:00