projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
riscv: ae250: Support DT provided by the board at runtime
[oweals/u-boot.git]
/
board
/
AndesTech
/
nx25-ae250
/
nx25-ae250.c
diff --git
a/board/AndesTech/nx25-ae250/nx25-ae250.c
b/board/AndesTech/nx25-ae250/nx25-ae250.c
index a965218f34528ab966a8a79e448838bf44078d9f..6e31be35052328fe8861679d9bc44639795b99c5 100644
(file)
--- a/
board/AndesTech/nx25-ae250/nx25-ae250.c
+++ b/
board/AndesTech/nx25-ae250/nx25-ae250.c
@@
-64,3
+64,12
@@
ulong board_flash_get_legacy(ulong base, int banknum, flash_info_t *info)
{
return 0;
}
+
+void *board_fdt_blob_setup(void)
+{
+ void **ptr = (void *)CONFIG_SYS_SDRAM_BASE;
+ if (fdt_magic(*ptr) == FDT_MAGIC)
+ return (void *)*ptr;
+
+ return (void *)CONFIG_SYS_FDT_BASE;
+}