Patchwork [U-Boot] powerpc/usb: Mention usb1 before usb2 inside default hwconfig string

login
register
mail settings
Submitter ramneek mehresh
Date Sept. 10, 2013, 12:07 p.m.
Message ID <1378814865-24406-1-git-send-email-ramneek.mehresh@freescale.com>
Download mbox | patch
Permalink /patch/273853/
State Accepted
Delegated to: York Sun
Headers show

Comments

ramneek mehresh - Sept. 10, 2013, 12:07 p.m.
For USB device-tree fix-up to work properly, its necessary to
mention USB1 options before that of USB2 inside default hwconfig
string

Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com>
---
 include/configs/corenet_ds.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
York Sun - Sept. 27, 2013, 5:54 p.m.
On 09/10/2013 05:07 AM, Ramneek Mehresh wrote:
> For USB device-tree fix-up to work properly, its necessary to
> mention USB1 options before that of USB2 inside default hwconfig
> string
> 
> Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com>
> ---

Applied to u-boot-mpc85xx/next, pending merging to u-boot-mpc85xx/master
branch.

York

Patch

diff --git a/include/configs/corenet_ds.h b/include/configs/corenet_ds.h
index c3fb80c..1ccefb0 100644
--- a/include/configs/corenet_ds.h
+++ b/include/configs/corenet_ds.h
@@ -700,8 +700,8 @@ 
 #define	CONFIG_EXTRA_ENV_SETTINGS				\
 	"hwconfig=fsl_ddr:ctlr_intlv=cacheline,"		\
 	"bank_intlv=cs0_cs1;"					\
-	"usb2:dr_mode=peripheral,phy_type=" __stringify(__USB_PHY_TYPE) ";"\
-	"usb1:dr_mode=host,phy_type=" __stringify(__USB_PHY_TYPE) "\0"\
+	"usb1:dr_mode=host,phy_type=" __stringify(__USB_PHY_TYPE) ";"\
+	"usb2:dr_mode=peripheral,phy_type=" __stringify(__USB_PHY_TYPE) "\0"\
 	"netdev=eth0\0"						\
 	"uboot=" __stringify(CONFIG_UBOOTPATH) "\0"		\
 	"ubootaddr=" __stringify(CONFIG_SYS_TEXT_BASE) "\0"	\