usb: set correct udc path for rpi5

* Fixes https://github.com/raspberry-vanilla/android_local_manifest/issues/51.
* Requires EEPROM update to 2023-12-06 or newer.
This commit is contained in:
Konsta
2023-12-30 20:57:42 +02:00
parent e20b10c023
commit 50ef80ac75
2 changed files with 3 additions and 3 deletions

View File

@@ -21,4 +21,4 @@
/dev/ion 0664 system system
# USB
/sys/class/udc/fe980000.usb current_speed 0664 system system
/sys/class/udc/1000480000.usb current_speed 0664 system system

View File

@@ -68,10 +68,10 @@ using ::android::hardware::usb::gadget::setVidPid;
using ::android::hardware::usb::gadget::unlinkFunctions;
using ::std::string;
constexpr char kGadgetName[] = "fe980000.usb";
constexpr char kGadgetName[] = "1000480000.usb";
static MonitorFfs monitorFfs(kGadgetName);
#define UDC_PATH "/sys/class/udc/fe980000.usb/"
#define UDC_PATH "/sys/class/udc/1000480000.usb/"
#define SPEED_PATH UDC_PATH "current_speed"
struct UsbGadget : public IUsbGadget {