summaryrefslogtreecommitdiffstats
path: root/include/configs/corenet_ds.h
diff options
context:
space:
mode:
authorShaohui Xie <Shaohui.Xie@freescale.com>2013-03-25 07:30:15 +0000
committerAndy Fleming <afleming@freescale.com>2013-05-02 16:57:34 -0500
commit9e186857c7f99600808b8ecb2fc0fa2adeddebaa (patch)
treec5b4f75e305694355f22bd156713f0a4d1eadc85 /include/configs/corenet_ds.h
parent545c12cf9ad16611f3055a097a360bcfab2e6106 (diff)
downloadblackbird-obmc-uboot-9e186857c7f99600808b8ecb2fc0fa2adeddebaa.tar.gz
blackbird-obmc-uboot-9e186857c7f99600808b8ecb2fc0fa2adeddebaa.zip
powerpc/85xx: set USB2 default mode to 'device' for (super)hydra boards
The Hydra and Superhydra (P3041DS, P5020DS, and P5040DS) boards have a second USB port that can be configured in either host, peripheral (aka device), or OTG (on-the-go) mode. When configured in host mode, if the port is connected to another USB host, damage to the board can occur. To avoid this, we change the default setting to peripheral mode. Ideally, we'd set it to OTG mode, but currently there is no OTG support for these boards. Setting the hwconfig variable will also update the device tree, and so Linux will configure the port for peripheral mode as well. Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com> Signed-off-by: Timur Tabi <timur@tabi.org> Signed-off-by: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'include/configs/corenet_ds.h')
-rw-r--r--include/configs/corenet_ds.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/configs/corenet_ds.h b/include/configs/corenet_ds.h
index 3f42cd9a38..5cc9b5ab26 100644
--- a/include/configs/corenet_ds.h
+++ b/include/configs/corenet_ds.h
@@ -714,6 +714,7 @@
#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"\
"netdev=eth0\0" \
"uboot=" __stringify(CONFIG_UBOOTPATH) "\0" \
OpenPOWER on IntegriCloud