MIPS: ralink: use the dwc2 driver for the rt305x USB controller
Subsystems (2)
PATCH 1/2 MIPS: ralink: use the dwc2 driver for the rt305x USB controller
--- arch/mips/ralink/dts/rt3050.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
The platform bindings needed for this have been submitted to linux-usb:
http://thread.gmane.org/gmane.linux.usb.general/85088
arch/mips/ralink/dts/rt3050.dtsi +1 -1
@@ -161,7 +161,7 @@ }; otg@101c0000 { - compatible = "ralink,rt3050-otg"; + compatible = "ralink,rt3050-otg", "snps,dwc2"; reg = <0x101c0000 40000>; interrupt-parent = <&intc>;
Signature · 1 line
1.8.0
PATCH 2/2 MIPS: ralink: setup dma_mask for the rt305x dwc2 usb controller
--- arch/mips/ralink/rt305x-usb.c | 5 +++++ 1 file changed, 5 insertions(+)
arch/mips/ralink/rt305x-usb.c +5 -0
@@ -108,6 +108,7 @@ error_out:static u64 rt3352_ohci_dmamask =DMA_BIT_MASK (32 );static u64 rt3352_ehci_dmamask =DMA_BIT_MASK (32 ); +static u64 rt3050_dwc2_dmamask =DMA_BIT_MASK (32 );void ralink_usb_platform (void ) {
@@ -117,4 +118,8 @@ void ralink_usb_platform(void)ralink_add_usb ("ehci-platform" , &rt3352_ehci_data, &rt3352_ehci_dmamask); } +if (soc_is_rt305x () ||soc_is_rt3350 ()) { +ralink_add_usb ("ralink,rt3050-otg" , +NULL , &rt3050_dwc2_dmamask); + } }
Signature · 1 line
1.8.0