oxnas: reboot target
[openwrt/openwrt.git] / target / linux / oxnas / patches-4.14 / 800-oxnas-ehci.patch
1 --- a/drivers/usb/host/Kconfig
2 +++ b/drivers/usb/host/Kconfig
3 @@ -334,6 +334,13 @@ config USB_OCTEON_EHCI
4 USB 2.0 device support. All CN6XXX based chips with USB are
5 supported.
6
7 +config USB_EHCI_OXNAS
8 + tristate "OXNAS EHCI Module"
9 + depends on USB_EHCI_HCD && ARCH_OXNAS
10 + select USB_EHCI_ROOT_HUB_TT
11 + ---help---
12 + Enable support for the OX820 SOC's on-chip EHCI controller.
13 +
14 endif # USB_EHCI_HCD
15
16 config USB_OXU210HP_HCD
17 --- a/drivers/usb/host/Makefile
18 +++ b/drivers/usb/host/Makefile
19 @@ -43,6 +43,7 @@ obj-$(CONFIG_USB_EHCI_HCD_AT91) += ehci-
20 obj-$(CONFIG_USB_EHCI_MSM) += ehci-msm.o
21 obj-$(CONFIG_USB_EHCI_TEGRA) += ehci-tegra.o
22 obj-$(CONFIG_USB_W90X900_EHCI) += ehci-w90x900.o
23 +obj-$(CONFIG_USB_EHCI_OXNAS) += ehci-oxnas.o
24
25 obj-$(CONFIG_USB_OXU210HP_HCD) += oxu210hp-hcd.o
26 obj-$(CONFIG_USB_ISP116X_HCD) += isp116x-hcd.o
27 --- a/arch/arm/boot/dts/ox820.dtsi
28 +++ b/arch/arm/boot/dts/ox820.dtsi
29 @@ -120,6 +120,22 @@
30 status = "disabled";
31 };
32
33 + ehci: ehci@40200100 {
34 + compatible = "plxtech,nas782x-ehci";
35 + reg = <0x40200100 0xf00>;
36 + interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
37 + clocks = <&stdclk CLK_820_USBMPH>, <&pllb>, <&stdclk CLK_820_REF600>;
38 + clock-names = "usb", "refsrc", "phyref";
39 + resets = <&reset RESET_USBHS>, <&reset RESET_USBPHYA>, <&reset RESET_USBPHYB>;
40 + reset-names = "host", "phya", "phyb";
41 + oxsemi,sys-ctrl = <&sys>;
42 + /* Otherwise ref300 is used, which is derived from sata phy
43 + * in that case, usb depends on sata initialization */
44 + /* FIXME: how to make this dependency explicit ? */
45 + oxsemi,ehci_use_pllb;
46 + status = "disabled";
47 + };
48 +
49 apb-bridge@44000000 {
50 #address-cells = <1>;
51 #size-cells = <1>;