Limit USB speed on imx6dl

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Limit USB speed on imx6dl

1,962 Views
guidopalmieri
Contributor I

I am using imx6dl and kernel 3.10.17.

I need to limit the USB speed of the my H1 USB-controller to Full-Speed (USB1) even when  it is connect to a USB device.

I know that in mainline is needed to set the PFSC bit into PORTSC register.

Any idea to do that?

Thanks.

Labels (2)
Tags (2)
0 Kudos
3 Replies

1,082 Views
fabio_estevam
NXP Employee
NXP Employee

Hi Guido,

Maybe you can reference this patch from mainline:

commit 4f6743d5ca97ac66831add302cc546

7db4ee3809
Author: Michael Grzeschik <m.grzeschik@pengutronix.de>
Date:   Wed Feb 19 13:41:43 2014 +0800

     usb: chipidea: udc: add maximum-speed = full-speed option

     This patch makes it possible to set the chipidea udc into full-speed only mo
     It is set by the oftree property "maximum-speed = full-speed".

     Signed-off-by: Peter Chen <peter.chen@freescale.com>
     Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
     Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
     Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

1,082 Views
igorpadykov
NXP Employee
NXP Employee

Hi Guido

please look at below link

https://community.freescale.com/thread/337237

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

1,082 Views
guidopalmieri
Contributor I

Hi Igor

Thanks a lot

I tried to implement the patch but at the moment looks dosen't works.

Still, if I plug in USB-stick it gets identified as high speed device and not full speed.

I suspect that the function hw_device_reset(struct ci_hdrc *ci, u32 mode) where I implement

the patch is never executed.

Shuld works also with Host H1 controller or only with OTG?

0 Kudos