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:
@@ -21,4 +21,4 @@
|
|||||||
/dev/ion 0664 system system
|
/dev/ion 0664 system system
|
||||||
|
|
||||||
# USB
|
# USB
|
||||||
/sys/class/udc/fe980000.usb current_speed 0664 system system
|
/sys/class/udc/1000480000.usb current_speed 0664 system system
|
||||||
|
@@ -68,10 +68,10 @@ using ::android::hardware::usb::gadget::setVidPid;
|
|||||||
using ::android::hardware::usb::gadget::unlinkFunctions;
|
using ::android::hardware::usb::gadget::unlinkFunctions;
|
||||||
using ::std::string;
|
using ::std::string;
|
||||||
|
|
||||||
constexpr char kGadgetName[] = "fe980000.usb";
|
constexpr char kGadgetName[] = "1000480000.usb";
|
||||||
static MonitorFfs monitorFfs(kGadgetName);
|
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"
|
#define SPEED_PATH UDC_PATH "current_speed"
|
||||||
|
|
||||||
struct UsbGadget : public IUsbGadget {
|
struct UsbGadget : public IUsbGadget {
|
||||||
|
Reference in New Issue
Block a user