linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: tony.lin@freescale.com (Tony Lin)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v4 4/7] ARM: mxs: enable usb phy power supply
Date: Tue, 2 Aug 2011 16:39:43 +0800	[thread overview]
Message-ID: <1312274386-6833-5-git-send-email-tony.lin@freescale.com> (raw)
In-Reply-To: <1312274386-6833-1-git-send-email-tony.lin@freescale.com>

configure usb1 phy power enable gpio and enable usb1 phy power

Signed-off-by: Tony Lin <tony.lin@freescale.com>
---
 arch/arm/mach-mxs/mach-mx28evk.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-mxs/mach-mx28evk.c b/arch/arm/mach-mxs/mach-mx28evk.c
index eaaf6ff..680d6e4 100644
--- a/arch/arm/mach-mxs/mach-mx28evk.c
+++ b/arch/arm/mach-mxs/mach-mx28evk.c
@@ -1,5 +1,5 @@
 /*
- * Copyright 2010 Freescale Semiconductor, Inc. All Rights Reserved.
+ * Copyright 2010-2011 Freescale Semiconductor, Inc. All Rights Reserved.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -34,6 +34,7 @@
 #define MX28EVK_BL_ENABLE	MXS_GPIO_NR(3, 18)
 #define MX28EVK_LCD_ENABLE	MXS_GPIO_NR(3, 30)
 #define MX28EVK_FEC_PHY_RESET	MXS_GPIO_NR(4, 13)
+#define MX28EVK_USB1_PWR_EN	MXS_GPIO_NR(3, 8)
 
 #define MX28EVK_MMC0_WRITE_PROTECT	MXS_GPIO_NR(2, 12)
 #define MX28EVK_MMC1_WRITE_PROTECT	MXS_GPIO_NR(0, 28)
@@ -183,6 +184,8 @@ static const iomux_cfg_t mx28evk_pads[] __initconst = {
 
 	/* led */
 	MX28_PAD_AUART1_TX__GPIO_3_5 | MXS_PAD_CTRL,
+	/* usb1 */
+	MX28_PAD_AUART2_RX__GPIO_3_8 | MXS_PAD_CTRL,
 };
 
 /* led */
@@ -405,6 +408,10 @@ static void __init mx28evk_init(void)
 		pr_warn("failed to request gpio mmc1-slot-power: %d\n", ret);
 	mx28_add_mxs_mmc(1, &mx28evk_mmc_pdata[1]);
 
+	ret = gpio_request_one(MX28EVK_USB1_PWR_EN, GPIOF_OUT_INIT_HIGH,
+			       "usb1-power-en");
+	if (ret)
+		pr_warn("failed to request gpio usb1-power-en %d\n", ret);
 	gpio_led_register_device(0, &mx28evk_led_data);
 }
 
-- 
1.7.0.4

  parent reply	other threads:[~2011-08-02  8:39 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-02  8:39 [PATCH v4 0/7] ARM: mx28: add usb host function Tony Lin
2011-08-02  8:39 ` [PATCH v4 1/7] ARM: mxs: ehci: consolidate definitions and structures to share among platforms Tony Lin
2011-08-02  8:39 ` [PATCH v4 2/7] ARM: mxs: make ehci-mxc more flexible to be used on different platforms Tony Lin
2011-08-02  8:39 ` [PATCH v4 3/7] ARM: mxs: add usb clocks to clock tree Tony Lin
2011-08-02  8:39 ` Tony Lin [this message]
2011-08-02  8:39 ` [PATCH v4 5/7] ARM: mxs: add usb platform operations Tony Lin
2011-08-02  8:39 ` [PATCH v4 6/7] " Tony Lin
2011-08-02  8:39 ` [PATCH v4 7/7] ARM: mxs: add usb host function to default config Tony Lin
2011-08-05  7:53 ` [PATCH v4 0/7] ARM: mx28: add usb host function Lin Tony-B19295
2011-08-05 13:03   ` s.hauer at pengutronix.de
2011-08-05 14:22     ` Peter Chen
2011-08-05 16:52       ` s.hauer at pengutronix.de
2011-08-08  2:03         ` Lin Tony-B19295

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1312274386-6833-5-git-send-email-tony.lin@freescale.com \
    --to=tony.lin@freescale.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).