Hello,
I am interested to run my iMX6UL board as an USB HID device (gadget) in full speed mode.
For that I am using hid.c example from \drivers\usb\gadget\legacy\
But device is enumrating in high speed mode only.
My configurations:
static struct usb_composite_driver hidg_driver = {
.name = "g_hid",
.dev = &device_desc,
.strings = dev_strings,
.max_speed = USB_SPEED_FULL,
.bind = hid_bind,
.unbind = hid_unbind,
};
What are the other configurations to enumerate device in full speed mode only?
Please guide.
Hi Igor
Unable to find register USB_nPORTSC1, could you please send location.
Currently I am using kernel version 4.1.15-2.0.1+gb63f3f5
Hi Krunal
please check sect.54.6.31 Port Status & Control (USB_nPORTSC1)
i.MX6UL Reference Manual
http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6ULRM.pdf
Best regards
igor
Hi Igor,
Thanks for the link but could you please tell, where to modify it in Linux source? Currently I am using 4.1.15-2.0.1+gb63f3f5.
Thanks,
Krunal
Hi Krunal
full speed is forced setting bit PFSC in register USB_nPORTSC1
so one can connect jtag debugger or add printf to check if dts settings
took effect.
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------