[PATCH 2/2] MIPS: ralink: setup dma_mask for the rt305x dwc2 usb controller

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 arch/mips/ralink/rt305x-usb.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/mips/ralink/rt305x-usb.c b/arch/mips/ralink/rt305x-usb.c
index 793fc82..7d87740 100644
--- a/arch/mips/ralink/rt305x-usb.c
+++ b/arch/mips/ralink/rt305x-usb.c
@@ -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);
+	}
 }
-- 
1.8.0



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux