usb: imx: implement support for limiting host to full speed
This is needed when host is known to not work properly in high speed
mode.

In linux, chipidea driver supports 'maximum-speed' device tree property.
When that is set to "full-speed", driver sets PFSC bit in PORTSC
register, which disallows use of high speed mode.

This patch implements same support for barebox.

Important technical detail is that PFSC bit is cleared by port reset,
thus setting it has to be done in ehci->init() callback which is called
after ehci_reset().

Signed-off-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 782dd52 commit 9d7d333c33e5a932b66cc0f5f3ed7fa28a651819
@Nikita Yushchenko Nikita Yushchenko authored on 22 Jun 2018
Sascha Hauer committed on 26 Jun 2018
Showing 6 changed files
View
drivers/usb/core/common.c
View
drivers/usb/core/of.c
View
drivers/usb/imx/chipidea-imx.c
View
include/usb/ch9.h
View
include/usb/chipidea-imx.h
View
include/usb/usb.h