All of lore.kernel.org
 help / color / mirror / Atom feed
* PATCHv1 0/1 Enable ulpi phy on freescale mx51 babbage hw
@ 2010-05-11 18:53 ` Dinh.Nguyen at freescale.com
  0 siblings, 0 replies; 4+ messages in thread
From: Dinh.Nguyen @ 2010-05-11 18:53 UTC (permalink / raw)
  To: linux-kernel
  Cc: linux-arm-kernel, s.hauer, valentin.longchamp, daniel,
	grant.likely, bryan.wu, amit.kucheria

This patch was accidently left out of the original set of patches for
enabling USB Host support on Freescale's MX51 Babbage HW. This patch
brings the USB ULPI PHY on Host1 out of reset, which is required for
enabling Host1 of the hardware.

Thanks,
Dinh Nguyen



^ permalink raw reply	[flat|nested] 4+ messages in thread

* PATCHv1 0/1 Enable ulpi phy on freescale mx51 babbage hw
@ 2010-05-11 18:53 ` Dinh.Nguyen at freescale.com
  0 siblings, 0 replies; 4+ messages in thread
From: Dinh.Nguyen at freescale.com @ 2010-05-11 18:53 UTC (permalink / raw)
  To: linux-arm-kernel

This patch was accidently left out of the original set of patches for
enabling USB Host support on Freescale's MX51 Babbage HW. This patch
brings the USB ULPI PHY on Host1 out of reset, which is required for
enabling Host1 of the hardware.

Thanks,
Dinh Nguyen

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 2.6.34-rc7] mx5: bring usb ulpi phy out of reset on freescale mx51 babbage hw
  2010-05-11 18:53 ` Dinh.Nguyen at freescale.com
@ 2010-05-11 18:53   ` Dinh.Nguyen at freescale.com
  -1 siblings, 0 replies; 4+ messages in thread
From: Dinh.Nguyen @ 2010-05-11 18:53 UTC (permalink / raw)
  To: linux-kernel
  Cc: linux-arm-kernel, s.hauer, valentin.longchamp, daniel,
	grant.likely, bryan.wu, amit.kucheria, Dinh Nguyen

From: Dinh Nguyen <Dinh.Nguyen@freescale.com>

This patch de-asserts the reset line that is connected to the USB
ULPI PHY on USB Host1.

This patch should be included with the original USB host enablement
set of patches of mx51 babbage hw, but was accidentily left out.

This patch applies to 2.6.34-rc7 and on top of USB enablement patches
for Freescale MX51 Babbage HW.

Signed-off-by: Dinh Nguyen <Dinh.Nguyen@freescale.com
---
 arch/arm/mach-mx5/board-mx51_babbage.c      |   12 ++++++++++++
 arch/arm/plat-mxc/include/mach/iomux-mx51.h |    1 +
 2 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-mx5/board-mx51_babbage.c b/arch/arm/mach-mx5/board-mx51_babbage.c
index 99f7ea9..f5c329b 100644
--- a/arch/arm/mach-mx5/board-mx51_babbage.c
+++ b/arch/arm/mach-mx5/board-mx51_babbage.c
@@ -32,6 +32,7 @@
 
 #define BABBAGE_USB_HUB_RESET	(0*32 + 7)	/* GPIO_1_7 */
 #define BABBAGE_USBH1_STP	(0*32 + 27)	/* GPIO_1_27 */
+#define BABBAGE_PHY_RESET	(1*32 +5)	/* GPIO_2_5 */
 
 /* USB_CTRL_1 */
 #define MX51_USB_CTRL_1_OFFSET			0x10
@@ -100,6 +101,7 @@ static inline void mxc_init_imx_uart(void)
 static int gpio_usbh1_active(void)
 {
 	struct pad_desc usbh1stp_gpio = MX51_PAD_USBH1_STP__GPIO_1_27;
+	struct pad_desc phyreset_gpio = MX51_PAD_EIM_D21__GPIO_2_5;
 	int ret;
 
 	/* Set USBH1_STP to GPIO and toggle it */
@@ -114,6 +116,16 @@ static int gpio_usbh1_active(void)
 	gpio_set_value(BABBAGE_USBH1_STP, 1);
 	msleep(100);
 	gpio_free(BABBAGE_USBH1_STP);
+
+	/* De-assert USB PHY RESETB */
+	mxc_iomux_v3_setup_pad(&phyreset_gpio);
+	ret = gpio_request(BABBAGE_PHY_RESET, "phy_reset");
+
+	if (ret) {
+		pr_debug("failed to get MX51_PAD_EIM_D21__GPIO_2_5: %d\n", ret);
+		return ret;
+	}
+	gpio_direction_output(BABBAGE_PHY_RESET, 1);
 	return 0;
 }
 
diff --git a/arch/arm/plat-mxc/include/mach/iomux-mx51.h b/arch/arm/plat-mxc/include/mach/iomux-mx51.h
index 80528cc..ab0f95d 100644
--- a/arch/arm/plat-mxc/include/mach/iomux-mx51.h
+++ b/arch/arm/plat-mxc/include/mach/iomux-mx51.h
@@ -63,6 +63,7 @@ typedef enum iomux_config {
 #define MX51_PAD_GPIO_2_3__EIM_D19	IOMUX_PAD(0x3fc, 0x068, 1, 0x0,   0, NO_PAD_CTRL)
 #define MX51_PAD_GPIO_2_4__EIM_D20	IOMUX_PAD(0x400, 0x06c, 1, 0x0,   0, NO_PAD_CTRL)
 #define MX51_PAD_GPIO_2_5__EIM_D21	IOMUX_PAD(0x404, 0x070, 1, 0x0,   0, NO_PAD_CTRL)
+#define MX51_PAD_EIM_D21__GPIO_2_5	IOMUX_PAD(0x404, 0x070, IOMUX_CONFIG_ALT1, 0x0,   0, MX51_GPIO_PAD_CTRL)
 #define MX51_PAD_GPIO_2_6__EIM_D22	IOMUX_PAD(0x408, 0x074, 1, 0x0,   0, NO_PAD_CTRL)
 #define MX51_PAD_GPIO_2_7__EIM_D23	IOMUX_PAD(0x40c, 0x078, 1, 0x0,   0, NO_PAD_CTRL)
 
-- 
1.6.0.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2.6.34-rc7] mx5: bring usb ulpi phy out of reset on freescale mx51 babbage hw
@ 2010-05-11 18:53   ` Dinh.Nguyen at freescale.com
  0 siblings, 0 replies; 4+ messages in thread
From: Dinh.Nguyen at freescale.com @ 2010-05-11 18:53 UTC (permalink / raw)
  To: linux-arm-kernel

From: Dinh Nguyen <Dinh.Nguyen@freescale.com>

This patch de-asserts the reset line that is connected to the USB
ULPI PHY on USB Host1.

This patch should be included with the original USB host enablement
set of patches of mx51 babbage hw, but was accidentily left out.

This patch applies to 2.6.34-rc7 and on top of USB enablement patches
for Freescale MX51 Babbage HW.

Signed-off-by: Dinh Nguyen <Dinh.Nguyen@freescale.com
---
 arch/arm/mach-mx5/board-mx51_babbage.c      |   12 ++++++++++++
 arch/arm/plat-mxc/include/mach/iomux-mx51.h |    1 +
 2 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-mx5/board-mx51_babbage.c b/arch/arm/mach-mx5/board-mx51_babbage.c
index 99f7ea9..f5c329b 100644
--- a/arch/arm/mach-mx5/board-mx51_babbage.c
+++ b/arch/arm/mach-mx5/board-mx51_babbage.c
@@ -32,6 +32,7 @@
 
 #define BABBAGE_USB_HUB_RESET	(0*32 + 7)	/* GPIO_1_7 */
 #define BABBAGE_USBH1_STP	(0*32 + 27)	/* GPIO_1_27 */
+#define BABBAGE_PHY_RESET	(1*32 +5)	/* GPIO_2_5 */
 
 /* USB_CTRL_1 */
 #define MX51_USB_CTRL_1_OFFSET			0x10
@@ -100,6 +101,7 @@ static inline void mxc_init_imx_uart(void)
 static int gpio_usbh1_active(void)
 {
 	struct pad_desc usbh1stp_gpio = MX51_PAD_USBH1_STP__GPIO_1_27;
+	struct pad_desc phyreset_gpio = MX51_PAD_EIM_D21__GPIO_2_5;
 	int ret;
 
 	/* Set USBH1_STP to GPIO and toggle it */
@@ -114,6 +116,16 @@ static int gpio_usbh1_active(void)
 	gpio_set_value(BABBAGE_USBH1_STP, 1);
 	msleep(100);
 	gpio_free(BABBAGE_USBH1_STP);
+
+	/* De-assert USB PHY RESETB */
+	mxc_iomux_v3_setup_pad(&phyreset_gpio);
+	ret = gpio_request(BABBAGE_PHY_RESET, "phy_reset");
+
+	if (ret) {
+		pr_debug("failed to get MX51_PAD_EIM_D21__GPIO_2_5: %d\n", ret);
+		return ret;
+	}
+	gpio_direction_output(BABBAGE_PHY_RESET, 1);
 	return 0;
 }
 
diff --git a/arch/arm/plat-mxc/include/mach/iomux-mx51.h b/arch/arm/plat-mxc/include/mach/iomux-mx51.h
index 80528cc..ab0f95d 100644
--- a/arch/arm/plat-mxc/include/mach/iomux-mx51.h
+++ b/arch/arm/plat-mxc/include/mach/iomux-mx51.h
@@ -63,6 +63,7 @@ typedef enum iomux_config {
 #define MX51_PAD_GPIO_2_3__EIM_D19	IOMUX_PAD(0x3fc, 0x068, 1, 0x0,   0, NO_PAD_CTRL)
 #define MX51_PAD_GPIO_2_4__EIM_D20	IOMUX_PAD(0x400, 0x06c, 1, 0x0,   0, NO_PAD_CTRL)
 #define MX51_PAD_GPIO_2_5__EIM_D21	IOMUX_PAD(0x404, 0x070, 1, 0x0,   0, NO_PAD_CTRL)
+#define MX51_PAD_EIM_D21__GPIO_2_5	IOMUX_PAD(0x404, 0x070, IOMUX_CONFIG_ALT1, 0x0,   0, MX51_GPIO_PAD_CTRL)
 #define MX51_PAD_GPIO_2_6__EIM_D22	IOMUX_PAD(0x408, 0x074, 1, 0x0,   0, NO_PAD_CTRL)
 #define MX51_PAD_GPIO_2_7__EIM_D23	IOMUX_PAD(0x40c, 0x078, 1, 0x0,   0, NO_PAD_CTRL)
 
-- 
1.6.0.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-05-11 18:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-11 18:53 PATCHv1 0/1 Enable ulpi phy on freescale mx51 babbage hw Dinh.Nguyen
2010-05-11 18:53 ` Dinh.Nguyen at freescale.com
2010-05-11 18:53 ` [PATCH 2.6.34-rc7] mx5: bring usb ulpi phy out of reset " Dinh.Nguyen
2010-05-11 18:53   ` Dinh.Nguyen at freescale.com

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.