usb: host: ehci-atmel: Add HSIC mode support
Subsystems (3)
PATCH 1/1 usb: host: ehci-atmel: Add HSIC mode support
This adds support for USB HSIC-mode for the controllers found on the SAMA5D2 SOCs.
Signed-off-by Alexander Shiyan <[email protected]>
--- drivers/usb/host/ehci-atmel.c | 7 +++++++ 1 file changed, 7 insertions(+)
drivers/usb/host/ehci-atmel.c +7 -0
@@ -11,11 +11,15 @@#include <linux/usb/usb.h> #include <linux/usb/usb_defs.h> #include <linux/usb/ehci.h> +#include <linux/usb/phy.h> #include <errno.h> #include <io.h> #include "ehci.h" +#define EHCI_INSNREG (index) ((index) * 4 + 0x90) +#define EHCI_INSNREG08_HSIC_EN BIT(2) +struct atmel_ehci_priv {struct ehci_host *ehci;struct device *dev;
@@ -94,6 +98,9 @@ static int atmel_ehci_probe(struct device *dev) atehci->ehci = ehci; +if (of_usb_get_phy_mode (dev->of_node,NULL ) ==USBPHY_INTERFACE_MODE_HSIC ) +writel (EHCI_INSNREG08_HSIC_EN , data.hccr +EHCI_INSNREG (8 )); +return 0 ; }
Signature · 1 line
2.39.1
Sascha Hauer
AppliedQuoted 3 lines · Alexander Shiyan
This adds support for USB HSIC-mode for the controllers found on the SAMA5D2 SOCs.
Applied, thanks!
[1/1] usb: host: ehci-atmel: Add HSIC mode support
https://git.pengutronix.de/cgit/barebox/commit/?id=bd0e5986c72d (link may not be stable)
Best regards,
Signature · 1 line
Sascha Hauer <[email protected]>