* [PATCH 1/2] ARM i.MX6: Add usb-ehci to sabrelite
2012-08-30 12:58 [PATCH 0/2] ARM i.MX6: Add sabrelite features Steffen Trumtrar
@ 2012-08-30 12:58 ` Steffen Trumtrar
2012-08-30 12:58 ` [PATCH 2/2] ARM i.MX6: Add i2c iomux " Steffen Trumtrar
2012-08-31 7:33 ` [PATCH 0/2] ARM i.MX6: Add sabrelite features Sascha Hauer
2 siblings, 0 replies; 4+ messages in thread
From: Steffen Trumtrar @ 2012-08-30 12:58 UTC (permalink / raw)
To: barebox; +Cc: Steffen Trumtrar
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 2/2] ARM i.MX6: Add i2c iomux to sabrelite
2012-08-30 12:58 [PATCH 0/2] ARM i.MX6: Add sabrelite features Steffen Trumtrar
2012-08-30 12:58 ` [PATCH 1/2] ARM i.MX6: Add usb-ehci to sabrelite Steffen Trumtrar
@ 2012-08-30 12:58 ` Steffen Trumtrar
2012-08-31 7:33 ` [PATCH 0/2] ARM i.MX6: Add sabrelite features Sascha Hauer
2 siblings, 0 replies; 4+ messages in thread
From: Steffen Trumtrar @ 2012-08-30 12:58 UTC (permalink / raw)
To: barebox; +Cc: Steffen Trumtrar
Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
---
arch/arm/boards/freescale-mx6-sabrelite/board.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/arch/arm/boards/freescale-mx6-sabrelite/board.c b/arch/arm/boards/freescale-mx6-sabrelite/board.c
index 6490988..1ac401e 100644
--- a/arch/arm/boards/freescale-mx6-sabrelite/board.c
+++ b/arch/arm/boards/freescale-mx6-sabrelite/board.c
@@ -78,6 +78,18 @@ static iomux_v3_cfg_t sabrelite_pads[] = {
MX6Q_PAD_EIM_D18__ECSPI1_MOSI,
MX6Q_PAD_EIM_D19__GPIO_3_19, /* CS1 */
+ /* I2C0 */
+ MX6Q_PAD_EIM_D21__I2C1_SCL,
+ MX6Q_PAD_EIM_D28__I2C1_SDA,
+
+ /* I2C1 */
+ MX6Q_PAD_KEY_COL3__I2C2_SCL,
+ MX6Q_PAD_KEY_ROW3__I2C2_SDA,
+
+ /* I2C2 */
+ MX6Q_PAD_GPIO_5__I2C3_SCL,
+ MX6Q_PAD_GPIO_16__I2C3_SDA,
+
/* USB */
MX6Q_PAD_GPIO_17__GPIO_7_12,
MX6Q_PAD_EIM_D22__GPIO_3_22,
--
1.7.10.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2] ARM i.MX6: Add sabrelite features
2012-08-30 12:58 [PATCH 0/2] ARM i.MX6: Add sabrelite features Steffen Trumtrar
2012-08-30 12:58 ` [PATCH 1/2] ARM i.MX6: Add usb-ehci to sabrelite Steffen Trumtrar
2012-08-30 12:58 ` [PATCH 2/2] ARM i.MX6: Add i2c iomux " Steffen Trumtrar
@ 2012-08-31 7:33 ` Sascha Hauer
2 siblings, 0 replies; 4+ messages in thread
From: Sascha Hauer @ 2012-08-31 7:33 UTC (permalink / raw)
To: Steffen Trumtrar; +Cc: barebox
On Thu, Aug 30, 2012 at 02:58:36PM +0200, Steffen Trumtrar wrote:
> This adds usb h1 and the i2c iomux to the sabrelite board.
>
> Steffen Trumtrar (2):
> ARM i.MX6: Add usb-ehci to sabrelite
> ARM i.MX6: Add i2c iomux to sabrelite
Applied, thanks
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 4+ messages in thread