[PATCH] fdt pinctrl: Add a hack to initialize only TDA pins

Vijay Kumar Banerjee vijaykumar9597 at gmail.com
Fri Aug 2 21:19:43 UTC 2019


---
 freebsd/sys/dev/fdt/fdt_pinctrl.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/freebsd/sys/dev/fdt/fdt_pinctrl.c b/freebsd/sys/dev/fdt/fdt_pinctrl.c
index c2e0c612..89de9281 100644
--- a/freebsd/sys/dev/fdt/fdt_pinctrl.c
+++ b/freebsd/sys/dev/fdt/fdt_pinctrl.c
@@ -131,8 +131,13 @@ pinctrl_configure_children(device_t pinctrl, phandle_t parent)
 		if (!ofw_bus_node_status_okay(node))
 			continue;
 		pinctrl_configure_children(pinctrl, node);
+#ifdef __rtems__
+		nconfigs = OF_getencprop_alloc_multi(node, "rtems-pinctrl-0",
+		    sizeof(*configs), (void **)&configs);
+#else /* __rtems__ */
 		nconfigs = OF_getencprop_alloc_multi(node, "pinctrl-0",
 		    sizeof(*configs), (void **)&configs);
+#endif /* __rtems__ */
 		if (nconfigs <= 0)
 			continue;
 		if (bootverbose) {
-- 
2.20.1




More information about the devel mailing list