From 68d4230c3ccce96a72c5b99e48399bf1796fe3c6 Mon Sep 17 00:00:00 2001 From: Ramneek Mehresh Date: Tue, 7 Jun 2011 10:10:43 +0000 Subject: powerpc/85xx: Add default usb mode and phy type to hwconfig Move to use hwconfig for usb mode & phy type instead of magic 'usb_phy_type' environment variable on the following platforms: MPC8536DS, P1020RDB, P1020RDB-PC, P1010RDB, P2020RDB, P2020RDB-PC, P2020RDB, P3041DS, P4080DS, & P5020DS. Signed-off-by: Ramneek Mehresh Signed-off-by: Kumar Gala --- include/configs/corenet_ds.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'include/configs/corenet_ds.h') diff --git a/include/configs/corenet_ds.h b/include/configs/corenet_ds.h index 52ef06e..c9cc22a 100644 --- a/include/configs/corenet_ds.h +++ b/include/configs/corenet_ds.h @@ -639,9 +639,16 @@ #define CONFIG_BAUDRATE 115200 +#if defined(CONFIG_P4080DS) +#define __USB_PHY_TYPE ulpi +#else +#define __USB_PHY_TYPE utmi +#endif + #define CONFIG_EXTRA_ENV_SETTINGS \ "hwconfig=fsl_ddr:ctlr_intlv=cacheline," \ - "bank_intlv=cs0_cs1\0" \ + "bank_intlv=cs0_cs1;" \ + "usb1:dr_mode=host,phy_type=" MK_STR(__USB_PHY_TYPE) "\0"\ "netdev=eth0\0" \ "uboot=" MK_STR(CONFIG_UBOOTPATH) "\0" \ "ubootaddr=" MK_STR(CONFIG_SYS_TEXT_BASE) "\0" \ -- cgit v1.1