riscv: configs: AE350 will use CONFIG_OF_SEPARATE when boots from flash
authorRick Chen <rick@andestech.com>
Tue, 30 Apr 2019 05:49:37 +0000 (13:49 +0800)
committerAndes <uboot@andestech.com>
Thu, 9 May 2019 08:46:46 +0000 (16:46 +0800)
When AE350 boots from flash, use CONFIG_OF_SEPARATE instead of
CONFIG_OF_BOARD.

Also remove unused code about prior_stage_fdt_address.
And modify CONFIG_SYS_FDT_BASE as flash address.

Signed-off-by: Rick Chen <rick@andestech.com>
Cc: Greentime Hu <greentime@andestech.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de>
board/AndesTech/ax25-ae350/ax25-ae350.c
configs/ae350_rv32_xip_defconfig
configs/ae350_rv64_xip_defconfig
include/configs/ax25-ae350.h

index d343453f22d01a211a03f74d1f47a925881e1fd8..3d65ce7b75487037dde8d0fa36b0ed14c07ddcd6 100644 (file)
@@ -67,10 +67,6 @@ ulong board_flash_get_legacy(ulong base, int banknum, flash_info_t *info)
 
 void *board_fdt_blob_setup(void)
 {
-       void **ptr = (void *)&prior_stage_fdt_address;
-       if (fdt_magic(*ptr) == FDT_MAGIC)
-                       return (void *)*ptr;
-
        return (void *)CONFIG_SYS_FDT_BASE;
 }
 
index 76534f2eef2c0c04d24e5c5f81f7c7262476c1f5..07f1ecc2fc658a49a59be32b0f261537941dd423 100644 (file)
@@ -15,7 +15,7 @@ CONFIG_CMD_SF_TEST=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_BOOTP_PREFER_SERVERIP=y
 CONFIG_CMD_CACHE=y
-CONFIG_OF_BOARD=y
+CONFIG_OF_SEPARATE=y
 CONFIG_DEFAULT_DEVICE_TREE="ae350_32"
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_NET_RANDOM_ETHADDR=y
index f7f2925f3a80065a9cad52cc366ec8e93812b74e..28afd81fc8a977dfd2f912471304a24abccc6719 100644 (file)
@@ -16,7 +16,7 @@ CONFIG_CMD_SF_TEST=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_BOOTP_PREFER_SERVERIP=y
 CONFIG_CMD_CACHE=y
-CONFIG_OF_BOARD=y
+CONFIG_OF_SEPARATE=y
 CONFIG_DEFAULT_DEVICE_TREE="ae350_64"
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_NET_RANDOM_ETHADDR=y
index 395f3a442da6e27a82cd26a492531d408dd5c430..a4037f33dd251d797edf4eae560a15497cc6116c 100644 (file)
@@ -40,7 +40,7 @@
 #define CONFIG_SYS_MALLOC_LEN   (512 << 10)
 
 /* DT blob (fdt) address */
-#define CONFIG_SYS_FDT_BASE            0x000f0000
+#define CONFIG_SYS_FDT_BASE            0x800f0000
 
 /*
  * Physical Memory Map