Limit USB speed on imx6dl

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Limit USB speed on imx6dl

2,382 次查看
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.

标签 (2)
标记 (2)
0 项奖励
回复
3 回复数

1,502 次查看
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,502 次查看
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,502 次查看
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 项奖励
回复