summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2020-05-21 08:26:40 -0400
committerTom Rini <trini@konsulko.com>2020-05-21 08:26:40 -0400
commit2fa581ba910368d0f7f995fb906d6c5e4218b594 (patch)
treefdbb131099e601f1500908398db119d7f2050225 /lib
parentb0b13f4114d30b6756e0f6f3b5819d78de22541e (diff)
parent56f01746ab5c6950bd0f76d02252ee4450f86659 (diff)
Merge git://git.denx.de/u-boot-sh
- Enable -ffunction-sections / -fdata-sections --gc-sections to SH - RCar Gen3 updates
Diffstat (limited to 'lib')
-rw-r--r--lib/fdtdec.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/fdtdec.c b/lib/fdtdec.c
index 9c4d5713e1..1f2b763acc 100644
--- a/lib/fdtdec.c
+++ b/lib/fdtdec.c
@@ -1474,8 +1474,14 @@ int fdtdec_set_carveout(void *blob, const char *node, const char *prop_name,
return 0;
}
+__weak int fdtdec_board_setup(const void *fdt_blob)
+{
+ return 0;
+}
+
int fdtdec_setup(void)
{
+ int ret;
#if CONFIG_IS_ENABLED(OF_CONTROL)
# if CONFIG_IS_ENABLED(MULTI_DTB_FIT)
void *fdt_blob;
@@ -1528,7 +1534,10 @@ int fdtdec_setup(void)
# endif
#endif
- return fdtdec_prepare_fdt();
+ ret = fdtdec_prepare_fdt();
+ if (!ret)
+ ret = fdtdec_board_setup(gd->fdt_blob);
+ return ret;
}
#if CONFIG_IS_ENABLED(MULTI_DTB_FIT)