Skip to content

Commit

Permalink
Adding support to rpi0
Browse files Browse the repository at this point in the history
Signed-off-by: Pol Henarejos <[email protected]>
  • Loading branch information
polhenarejos committed Dec 23, 2021
1 parent 3948010 commit ec3e251
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,26 @@ static int autoconfig ()
= USB_DIR_IN | 3;
EP_STATUS_NAME = "ep3in-int";

} else if (stat (DEVNAME = "20980000.usb", &statb) == 0) {
HIGHSPEED = 1;
device_desc.bcdDevice = __constant_cpu_to_le16 (0x0100);

fs_source_desc.bEndpointAddress
= hs_source_desc.bEndpointAddress
= USB_DIR_IN | 1;
EP_IN_NAME = "ep1in";
fs_sink_desc.bEndpointAddress
= hs_sink_desc.bEndpointAddress
= USB_DIR_OUT | 2;
EP_OUT_NAME = "ep2out";

source_sink_intf.bNumEndpoints = 3;

fs_status_desc.bEndpointAddress
= hs_status_desc.bEndpointAddress
= USB_DIR_IN | 3;
EP_STATUS_NAME = "ep3in";

} else {
DEVNAME = 0;
return -ENODEV;
Expand Down

0 comments on commit ec3e251

Please sign in to comment.