Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102874907
D37502.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D37502.diff
View Options
diff --git a/sys/arm/ti/am335x/am335x_ecap.c b/sys/arm/ti/am335x/am335x_ecap.c
--- a/sys/arm/ti/am335x/am335x_ecap.c
+++ b/sys/arm/ti/am335x/am335x_ecap.c
@@ -81,6 +81,13 @@
int sc_mem_rid;
};
+static struct ofw_compat_data compat_data[] = {
+ {"ti,am3352-ecap", true},
+ {"ti,am33xx-ecap", true},
+ {NULL, false},
+};
+SIMPLEBUS_PNP_INFO(compat_data);
+
static device_method_t am335x_ecap_methods[] = {
DEVMETHOD(device_probe, am335x_ecap_probe),
DEVMETHOD(device_attach, am335x_ecap_attach),
@@ -142,7 +149,7 @@
if (!ofw_bus_status_okay(dev))
return (ENXIO);
- if (!ofw_bus_is_compatible(dev, "ti,am33xx-ecap"))
+ if (!ofw_bus_search_compatible(dev, compat_data)->ocd_data)
return (ENXIO);
device_set_desc(dev, "AM335x eCAP");
diff --git a/sys/arm/ti/am335x/am335x_ehrpwm.c b/sys/arm/ti/am335x/am335x_ehrpwm.c
--- a/sys/arm/ti/am335x/am335x_ehrpwm.c
+++ b/sys/arm/ti/am335x/am335x_ehrpwm.c
@@ -193,6 +193,7 @@
};
static struct ofw_compat_data compat_data[] = {
+ {"ti,am3352-ehrpwm", true},
{"ti,am33xx-ehrpwm", true},
{NULL, false},
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 19, 7:31 AM (21 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14712506
Default Alt Text
D37502.diff (1 KB)
Attached To
Mode
D37502: TI AM335x fix compatible name
Attached
Detach File
Event Timeline
Log In to Comment