diff mbox

[U-Boot,3/6] ARM: at91: spl: Add boot device for boot from QSPI

Message ID 20170720081303.9002-4-wenyou.yang@microchip.com
State Superseded
Delegated to: Tom Rini
Headers show

Commit Message

Wenyou Yang July 20, 2017, 8:13 a.m. UTC
Add the boot device for booting from the QSPI flash.

Signed-off-by: Wenyou Yang <wenyou.yang@microchip.com>
---

 arch/arm/mach-at91/spl.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Simon Glass July 28, 2017, 4:20 a.m. UTC | #1
On 20 July 2017 at 02:13, Wenyou Yang <wenyou.yang@microchip.com> wrote:
> Add the boot device for booting from the QSPI flash.
>
> Signed-off-by: Wenyou Yang <wenyou.yang@microchip.com>
> ---
>
>  arch/arm/mach-at91/spl.c | 2 ++
>  1 file changed, 2 insertions(+)

Reviewed-by: Simon Glass <sjg@chromium.org>
diff mbox

Patch

diff --git a/arch/arm/mach-at91/spl.c b/arch/arm/mach-at91/spl.c
index e113336b7b..98337aebbe 100644
--- a/arch/arm/mach-at91/spl.c
+++ b/arch/arm/mach-at91/spl.c
@@ -56,6 +56,8 @@  u32 spl_boot_device(void)
 	if (dev == ATMEL_SAMA5_BOOT_FROM_SPI)
 		return BOOT_DEVICE_SPI;
 #endif
+	if (dev == ATMEL_SAMA5_BOOT_FROM_QSPI)
+		return BOOT_DEVICE_SPI;
 
 	if (dev == ATMEL_SAMA5_BOOT_FROM_SMC)
 		return BOOT_DEVICE_NAND;