mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-11-30 13:03:30 +01:00
35 lines
709 B
Nix
35 lines
709 B
Nix
{ lib, ... }:
|
|
|
|
{
|
|
imports = [
|
|
(lib.mkRemovedOptionModule
|
|
[
|
|
"hardware"
|
|
"raspberry-pi"
|
|
"4"
|
|
"dwc2"
|
|
]
|
|
''
|
|
Use the stock dwc2 firmware overlay instead:
|
|
|
|
{
|
|
boot.loader.generic-extlinux-compatible.useGenerationDeviceTree =
|
|
false;
|
|
|
|
hardware.raspberry-pi.configtxt.deviceTreeOverlays.pi4 = [
|
|
{ dwc2 = { }; }
|
|
];
|
|
}
|
|
|
|
If you set dr_mode on the old option, add it to the overlay. For
|
|
example:
|
|
|
|
{ dwc2.dr_mode = "host"; }
|
|
|
|
For CM4 and firmware-partition setup, see "DWC2 USB controller" in
|
|
raspberry-pi/README.md.
|
|
''
|
|
)
|
|
];
|
|
}
|