Page MenuHomeFreeBSD

D12186.1794715269.diff
No OneTemporary

Authored By
Unknown
Size
798 B
Referenced Files
None
Subscribers
None

D12186.1794715269.diff

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

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)

Event Timeline