[PATCH 2/7] bsp/imx: Allow GIC in different device tree node.
Christian Mauderer
christian.mauderer at embedded-brains.de
Mon Feb 10 09:35:12 UTC 2020
Update #3869.
---
bsps/arm/imx/start/bspstart.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/bsps/arm/imx/start/bspstart.c b/bsps/arm/imx/start/bspstart.c
index 3a87c437d2..36f62993a6 100644
--- a/bsps/arm/imx/start/bspstart.c
+++ b/bsps/arm/imx/start/bspstart.c
@@ -89,6 +89,9 @@ static void imx_find_gic(const void *fdt)
int node;
node = fdt_path_offset(fdt, "/interrupt-controller");
+ if (node < 0) {
+ node = fdt_path_offset(fdt, "/soc/interrupt-controller");
+ }
imx_gic_dist_base = (uintptr_t) imx_get_reg_of_node(fdt, node);
}
--
2.16.4
More information about the devel
mailing list