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

Message ID 20170913065854.26134-7-wenyou.yang@microchip.com
State Accepted
Delegated to: Tom Rini
Headers show
Series
  • board: atmel: Add new board SAMA5D27-SOM1-EK board.
Related show

Commit Message

Yang, Wenyou Sept. 13, 2017, 6:58 a.m.
Add the boot device for booting from the QSPI flash.

Signed-off-by: Wenyou Yang <wenyou.yang@microchip.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
---

Changes in v6: None
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2: None

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

Comments

Tom Rini Sept. 15, 2017, 12:48 a.m. | #1
On Wed, Sep 13, 2017 at 02:58:51PM +0800, Wenyou Yang wrote:

> Add the boot device for booting from the QSPI flash.
> 
> Signed-off-by: Wenyou Yang <wenyou.yang@microchip.com>
> Reviewed-by: Simon Glass <sjg@chromium.org>

Applied to u-boot/master, thanks!

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;