Skip to content
Snippets Groups Projects
Commit d8fc1ef2 authored by Rick Chen's avatar Rick Chen Committed by Andes
Browse files

riscv: configs: AE350 will use CONFIG_OF_SEPARATE when boots from flash


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: default avatarRick Chen <rick@andestech.com>
Cc: Greentime Hu <greentime@andestech.com>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
Reviewed-by: default avatarLukas Auer <lukas.auer@aisec.fraunhofer.de>
parent a3caa846
No related branches found
No related tags found
No related merge requests found
...@@ -67,10 +67,6 @@ ulong board_flash_get_legacy(ulong base, int banknum, flash_info_t *info) ...@@ -67,10 +67,6 @@ ulong board_flash_get_legacy(ulong base, int banknum, flash_info_t *info)
void *board_fdt_blob_setup(void) 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; return (void *)CONFIG_SYS_FDT_BASE;
} }
......
...@@ -15,7 +15,7 @@ CONFIG_CMD_SF_TEST=y ...@@ -15,7 +15,7 @@ CONFIG_CMD_SF_TEST=y
# CONFIG_CMD_SETEXPR is not set # CONFIG_CMD_SETEXPR is not set
CONFIG_BOOTP_PREFER_SERVERIP=y CONFIG_BOOTP_PREFER_SERVERIP=y
CONFIG_CMD_CACHE=y CONFIG_CMD_CACHE=y
CONFIG_OF_BOARD=y CONFIG_OF_SEPARATE=y
CONFIG_DEFAULT_DEVICE_TREE="ae350_32" CONFIG_DEFAULT_DEVICE_TREE="ae350_32"
CONFIG_ENV_IS_IN_SPI_FLASH=y CONFIG_ENV_IS_IN_SPI_FLASH=y
CONFIG_NET_RANDOM_ETHADDR=y CONFIG_NET_RANDOM_ETHADDR=y
......
...@@ -16,7 +16,7 @@ CONFIG_CMD_SF_TEST=y ...@@ -16,7 +16,7 @@ CONFIG_CMD_SF_TEST=y
# CONFIG_CMD_SETEXPR is not set # CONFIG_CMD_SETEXPR is not set
CONFIG_BOOTP_PREFER_SERVERIP=y CONFIG_BOOTP_PREFER_SERVERIP=y
CONFIG_CMD_CACHE=y CONFIG_CMD_CACHE=y
CONFIG_OF_BOARD=y CONFIG_OF_SEPARATE=y
CONFIG_DEFAULT_DEVICE_TREE="ae350_64" CONFIG_DEFAULT_DEVICE_TREE="ae350_64"
CONFIG_ENV_IS_IN_SPI_FLASH=y CONFIG_ENV_IS_IN_SPI_FLASH=y
CONFIG_NET_RANDOM_ETHADDR=y CONFIG_NET_RANDOM_ETHADDR=y
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
#define CONFIG_SYS_MALLOC_LEN (512 << 10) #define CONFIG_SYS_MALLOC_LEN (512 << 10)
/* DT blob (fdt) address */ /* DT blob (fdt) address */
#define CONFIG_SYS_FDT_BASE 0x000f0000 #define CONFIG_SYS_FDT_BASE 0x800f0000
/* /*
* Physical Memory Map * Physical Memory Map
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment