[PATCH 4/6] ARM i.MX6: sabrelite: usb is probed from device tree
Philipp Zabel
p.zabel at pengutronix.de
Mon Nov 18 06:06:35 EST 2013
Signed-off-by: Philipp Zabel <p.zabel at pengutronix.de>
---
arch/arm/boards/freescale-mx6-sabrelite/board.c | 5 -----
arch/arm/dts/imx6q-sabrelite.dts | 6 ++++++
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/arch/arm/boards/freescale-mx6-sabrelite/board.c b/arch/arm/boards/freescale-mx6-sabrelite/board.c
index a8fe7c0..3584951 100644
--- a/arch/arm/boards/freescale-mx6-sabrelite/board.c
+++ b/arch/arm/boards/freescale-mx6-sabrelite/board.c
@@ -107,15 +107,10 @@ fs_initcall(sabrelite_ksz9021rn_setup);
static void sabrelite_ehci_init(void)
{
- imx6_usb_phy2_disable_oc();
- imx6_usb_phy2_enable();
-
/* hub reset */
gpio_direction_output(204, 0);
udelay(2000);
gpio_set_value(204, 1);
-
- add_generic_usb_ehci_device(1, MX6_USBOH3_USB_BASE_ADDR + 0x200, NULL);
}
static int sabrelite_devices_init(void)
diff --git a/arch/arm/dts/imx6q-sabrelite.dts b/arch/arm/dts/imx6q-sabrelite.dts
index 1368ef1..97372dd 100644
--- a/arch/arm/dts/imx6q-sabrelite.dts
+++ b/arch/arm/dts/imx6q-sabrelite.dts
@@ -117,10 +117,16 @@
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_usbotg_1>;
disable-over-current;
+ phy-mode = "utmi";
+ barebox,phy_type = "utmi";
+ dr_mode = "host";
status = "okay";
};
&usbh1 {
+ phy-mode = "utmi";
+ barebox,phy_type = "utmi";
+ dr_mode = "host";
status = "okay";
};
--
1.8.4.2
More information about the barebox
mailing list