Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177557441
D12186.1794715269.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
798 B
Referenced Files
None
Subscribers
None
D12186.1794715269.diff
View Options
Index: head/sys/arm/mv/armada38x/armada38x_rtc.c
===================================================================
--- head/sys/arm/mv/armada38x/armada38x_rtc.c
+++ head/sys/arm/mv/armada38x/armada38x_rtc.c
@@ -126,6 +126,12 @@
sizeof(struct mv_rtc_softc),
};
+static struct ofw_compat_data mv_rtc_compat[] = {
+ {"marvell,armada-380-rtc", true},
+ {"marvell,armada-8k-rtc", true},
+ {NULL, false},
+};
+
static devclass_t mv_rtc_devclass;
DRIVER_MODULE(a38x_rtc, simplebus, mv_rtc_driver, mv_rtc_devclass, 0, 0);
@@ -174,7 +180,7 @@
if (!ofw_bus_status_okay(dev))
return (ENXIO);
- if (!ofw_bus_is_compatible(dev, "marvell,armada-380-rtc"))
+ if (!ofw_bus_search_compatible(dev, mv_rtc_compat)->ocd_data)
return (ENXIO);
device_set_desc(dev, "Marvell Integrated RTC");
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 15, 4:01 AM (19 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41737487
Default Alt Text
D12186.1794715269.diff (798 B)
Attached To
Mode
D12186: Add Armada 80x0/70x0 compatible to 38x RTC driver
Attached
Detach File
Event Timeline