Page MenuHomeFreeBSD

D41896.id127478.diff
No OneTemporary

D41896.id127478.diff

diff --git a/sys/arm/ti/ti_pinmux.c b/sys/arm/ti/ti_pinmux.c
--- a/sys/arm/ti/ti_pinmux.c
+++ b/sys/arm/ti/ti_pinmux.c
@@ -62,6 +62,12 @@
uint32_t conf;
};
+static struct ofw_compat_data compat_data[] = {
+ {"pinctrl-single", 2},
+ {"pinconf-single", 1},
+ {NULL, 0},
+};
+
static struct resource_spec ti_pinmux_res_spec[] = {
{ SYS_RES_MEMORY, 0, RF_ACTIVE }, /* Control memory window */
{ -1, 0 }
@@ -372,7 +378,7 @@
if (!ofw_bus_status_okay(dev))
return (ENXIO);
- if (!ofw_bus_is_compatible(dev, "pinctrl-single"))
+ if (ofw_bus_search_compatible(dev, compat_data)->ocd_data == 0)
return (ENXIO);
if (ti_pinmux_sc) {

File Metadata

Mime Type
text/plain
Expires
Sun, Apr 20, 2:09 PM (4 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17644764
Default Alt Text
D41896.id127478.diff (648 B)

Event Timeline