linux-mips
[Top] [All Lists]

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

To: John Crispin <blogic@openwrt.org>
Subject: [PATCH 2/2] MIPS: ralink: setup dma_mask for the rt305x dwc2 usb controller
From: Matthijs Kooijman <matthijs@stdin.nl>
Date: Thu, 11 Apr 2013 19:24:50 +0200
Cc: linux-mips@linux-mips.org, Matthijs Kooijman <matthijs@stdin.nl>
In-reply-to: <1365701090-6916-1-git-send-email-matthijs@stdin.nl>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1365701090-6916-1-git-send-email-matthijs@stdin.nl>
Sender: linux-mips-bounce@linux-mips.org
---
 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


<Prev in Thread] Current Thread [Next in Thread>