]> git.sur5r.net Git - u-boot/commitdiff
ARM: uniphier: add NOR boot support
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 22 Mar 2016 16:40:04 +0000 (01:40 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 23 Mar 2016 16:45:41 +0000 (01:45 +0900)
This allows to boot from NOR flash (or SRAM) with help of an external
loader (NOR-loader).

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
arch/arm/mach-uniphier/boot-mode/boot-mode-ld4.c
arch/arm/mach-uniphier/boot-mode/boot-mode-sld3.c
include/configs/uniphier.h

index 8334373f08ce0a996cc65442045d193a9084ec8f..ef52d69584fe6ed12818cc9920efec9c3800b71a 100644 (file)
@@ -43,7 +43,7 @@ struct boot_device_info boot_device_table[] = {
        {BOOT_DEVICE_NONE, "Reserved"},
        {BOOT_DEVICE_NONE, "Reserved"},
        {BOOT_DEVICE_NONE, "Reserved"},
-       {BOOT_DEVICE_NONE, "Reserved"},
+       {BOOT_DEVICE_NOR,  "NOR Boot"},
 };
 
 static int get_boot_mode_sel(void)
index b0f3f9a805daecf22e08536b33c8a66b72c4378d..0258fae47af35287baf9570c04db1b3c7d622560 100644 (file)
@@ -12,7 +12,7 @@
 #include "boot-device.h"
 
 static struct boot_device_info boot_device_table[] = {
-       {BOOT_DEVICE_NONE, "Reserved"},
+       {BOOT_DEVICE_NOR,  "NOR boot"},
        {BOOT_DEVICE_NONE, "External Master"},
        {BOOT_DEVICE_NONE, "Reserved"},
        {BOOT_DEVICE_NONE, "Reserved"},
index 076c7332785584e0d0b2d075f43834fd7921cf6b..dd7b352d0da494a2b5342940681ba0f05553966d 100644 (file)
 
 #define CONFIG_SPL_FRAMEWORK
 #define CONFIG_SPL_SERIAL_SUPPORT
+#define CONFIG_SPL_NOR_SUPPORT
 #define CONFIG_SPL_NAND_SUPPORT
 #define CONFIG_SPL_MMC_SUPPORT
 
 #define CONFIG_SPL_BOARD_INIT
 
 #define CONFIG_SYS_NAND_U_BOOT_OFFS            0x10000
+
+#define CONFIG_SYS_UBOOT_BASE                  0x60000
 #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR        0x80
 
 #define CONFIG_SPL_MAX_FOOTPRINT               0x10000