mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Set maximum bus clock speed from hints when attaching hinted spibus(4) children.
Some devices (such as spigen(4)) document that this works, but it appears that the code to implement it never got added.
This commit is contained in:
parent
781e78182d
commit
47a7da7612
1 changed files with 1 additions and 0 deletions
|
|
@ -216,6 +216,7 @@ spibus_hinted_child(device_t bus, const char *dname, int dunit)
|
|||
child = BUS_ADD_CHILD(bus, 0, dname, dunit);
|
||||
devi = SPIBUS_IVAR(child);
|
||||
devi->mode = SPIBUS_MODE_NONE;
|
||||
resource_int_value(dname, dunit, "clock", &devi->clock);
|
||||
resource_int_value(dname, dunit, "cs", &devi->cs);
|
||||
resource_int_value(dname, dunit, "mode", &devi->mode);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue