Patchwork powerpc/qoriq: Add default mode for P1020RDB USB

login
register
mail settings
Submitter ramneek mehresh
Date May 4, 2011, 1:26 p.m.
Message ID <1304515616-3413-1-git-send-email-ramneek.mehresh@freescale.com>
Download mbox | patch
Permalink /patch/94038/
State Superseded
Delegated to: Kumar Gala
Headers show

Comments

ramneek mehresh - May 4, 2011, 1:26 p.m.
Add P1020 USB controller default value for "dr_mode" property

Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com>
---
Applies on git://git.am.freescale.net/mirrors/linux-2.6.git
(branch master)
 arch/powerpc/boot/dts/p1020rdb.dts |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)
Kumar Gala - May 19, 2011, 6:37 a.m.
On May 4, 2011, at 8:26 AM, Ramneek Mehresh wrote:

> Add P1020 USB controller default value for "dr_mode" property
> 
> Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com>
> ---
> Applies on git://git.am.freescale.net/mirrors/linux-2.6.git
> (branch master)
> arch/powerpc/boot/dts/p1020rdb.dts |   10 ++++------
> 1 files changed, 4 insertions(+), 6 deletions(-)

Can you update the patch.  Also make sure to update the p1020rdb_camp* .dts

Against git.kernel.org/pub/scm/linux/kernel/git/galak/powerpc.git next

thanks

- k

Patch

diff --git a/arch/powerpc/boot/dts/p1020rdb.dts b/arch/powerpc/boot/dts/p1020rdb.dts
index e0668f8..c630b51 100644
--- a/arch/powerpc/boot/dts/p1020rdb.dts
+++ b/arch/powerpc/boot/dts/p1020rdb.dts
@@ -473,13 +473,11 @@ 
 			interrupt-parent = <&mpic>;
 			interrupts = <28 0x2>;
 			phy_type = "ulpi";
+			dr_mode = "host";
 		};
 
-		/* USB2 is shared with localbus, so it must be disabled
-		   by default. We can't put 'status = "disabled";' here
-		   since U-Boot doesn't clear the status property when
-		   it enables USB2. OTOH, U-Boot does create a new node
-		   when there isn't any. So, just comment it out.
+		/* USB2 is shared with localbus. It is used
+		   only in case of SPI and SD boot*/
 		usb@23000 {
 			#address-cells = <1>;
 			#size-cells = <0>;
@@ -488,8 +486,8 @@ 
 			interrupt-parent = <&mpic>;
 			interrupts = <46 0x2>;
 			phy_type = "ulpi";
+			dr_mode = "host";
 		};
-		*/
 
 		sdhci@2e000 {
 			compatible = "fsl,p1020-esdhc", "fsl,esdhc";