From: Steffen Trumtrar <s.trumtrar@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Subject: [PATCH 1/2] ARM i.MX6: Add usb-ehci to sabrelite
Date: Thu, 30 Aug 2012 14:58:37 +0200 [thread overview]
Message-ID: <1346331518-28175-2-git-send-email-s.trumtrar@pengutronix.de> (raw)
In-Reply-To: <1346331518-28175-1-git-send-email-s.trumtrar@pengutronix.de>
Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
---
arch/arm/boards/freescale-mx6-sabrelite/board.c | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/arch/arm/boards/freescale-mx6-sabrelite/board.c b/arch/arm/boards/freescale-mx6-sabrelite/board.c
index 13279bc..6490988 100644
--- a/arch/arm/boards/freescale-mx6-sabrelite/board.c
+++ b/arch/arm/boards/freescale-mx6-sabrelite/board.c
@@ -77,6 +77,11 @@ static iomux_v3_cfg_t sabrelite_pads[] = {
MX6Q_PAD_EIM_D17__ECSPI1_MISO,
MX6Q_PAD_EIM_D18__ECSPI1_MOSI,
MX6Q_PAD_EIM_D19__GPIO_3_19, /* CS1 */
+
+ /* USB */
+ MX6Q_PAD_GPIO_17__GPIO_7_12,
+ MX6Q_PAD_EIM_D22__GPIO_3_22,
+ MX6Q_PAD_EIM_D30__USBOH3_USBH1_OC,
};
static iomux_v3_cfg_t sabrelite_enet_pads[] = {
@@ -227,6 +232,19 @@ static struct esdhc_platform_data sabrelite_sd4_data = {
.wp_type = ESDHC_WP_NONE,
};
+static void sabrelite_ehci_init(void)
+{
+ imx6_usb_phy1_disable_oc();
+ imx6_usb_phy1_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)
{
imx6_add_mmc2(&sabrelite_sd3_data);
@@ -237,6 +255,8 @@ static int sabrelite_devices_init(void)
imx6_add_fec(&fec_info);
mx6_rgmii_rework();
+ sabrelite_ehci_init();
+
spi_register_board_info(sabrelite_spi_board_info,
ARRAY_SIZE(sabrelite_spi_board_info));
imx6_add_spi0(&sabrelite_spi_0_data);
--
1.7.10.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2012-08-30 12:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-30 12:58 [PATCH 0/2] ARM i.MX6: Add sabrelite features Steffen Trumtrar
2012-08-30 12:58 ` Steffen Trumtrar [this message]
2012-08-30 12:58 ` [PATCH 2/2] ARM i.MX6: Add i2c iomux to sabrelite Steffen Trumtrar
2012-08-31 7:33 ` [PATCH 0/2] ARM i.MX6: Add sabrelite features Sascha Hauer
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=1346331518-28175-2-git-send-email-s.trumtrar@pengutronix.de \
--to=s.trumtrar@pengutronix.de \
--cc=barebox@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