[rtems commit] bsp/imx: Allow GIC in different device tree node.
Christian Mauderer
christianm at rtems.org
Tue Feb 11 08:20:28 UTC 2020
Module: rtems
Branch: master
Commit: c561bf4c9a92d22fda053f37340e2645899c8b88
Changeset: http://git.rtems.org/rtems/commit/?id=c561bf4c9a92d22fda053f37340e2645899c8b88
Author: Christian Mauderer <christian.mauderer at embedded-brains.de>
Date: Mon Feb 10 10:35:12 2020 +0100
bsp/imx: Allow GIC in different device tree node.
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 3a87c43..36f6299 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);
}
More information about the vc
mailing list