Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167593338
D5962.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
637 B
Referenced Files
None
Subscribers
None
D5962.id.diff
View Options
Index: head/sys/dev/flash/mx25l.c
===================================================================
--- head/sys/dev/flash/mx25l.c
+++ head/sys/dev/flash/mx25l.c
@@ -432,6 +432,12 @@
return (err);
}
+static struct ofw_compat_data compat_data[] = {
+ { "st,m25p", 1 },
+ { "jedec,spi-nor", 1 },
+ { NULL, 0 },
+};
+
static int
mx25l_probe(device_t dev)
{
@@ -439,7 +445,7 @@
#ifdef FDT
if (!ofw_bus_status_okay(dev))
return (ENXIO);
- if (!ofw_bus_is_compatible(dev, "st,m25p"))
+ if (ofw_bus_search_compatible(dev, compat_data)->ocd_data == 0)
return (ENXIO);
#endif
device_set_desc(dev, "M25Pxx Flash Family");
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Aug 23, 11:29 PM (1 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37124419
Default Alt Text
D5962.id.diff (637 B)
Attached To
Mode
D5962: Make mx25l compatible with jedec,spi-nor as well
Attached
Detach File
Event Timeline
Log In to Comment