From: Jagan Teki <jagan@openedev.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 16/29] ARM: i.MX6: sabresd: Enable DM_USB
Date: Mon, 3 Apr 2017 19:23:23 +0530 [thread overview]
Message-ID: <1491227616-15042-17-git-send-email-jagan@openedev.com> (raw)
In-Reply-To: <1491227616-15042-1-git-send-email-jagan@openedev.com>
From: Jagan Teki <jagan@amarulasolutions.com>
Enable DM_USB for dt supported sabresd config boards:
- imx6q_sabresd_defconfig
- imx6qp_sabresd_defconfig
Cc: Stefano Babic <sbabic@denx.de>
Cc: Fabio Estevam <fabio.estevam@nxp.com>
Cc: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
---
board/freescale/mx6sabresd/mx6sabresd.c | 4 ++--
configs/imx6q_sabresd_defconfig | 1 +
configs/imx6qp_sabresd_defconfig | 1 +
include/configs/mx6sabresd.h | 9 ++++++---
4 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/board/freescale/mx6sabresd/mx6sabresd.c b/board/freescale/mx6sabresd/mx6sabresd.c
index 5776b39..a143dbb 100644
--- a/board/freescale/mx6sabresd/mx6sabresd.c
+++ b/board/freescale/mx6sabresd/mx6sabresd.c
@@ -515,7 +515,7 @@ int board_eth_init(bd_t *bis)
return cpu_eth_init(bis);
}
-#ifdef CONFIG_USB_EHCI_MX6
+#if defined(CONFIG_USB_EHCI_MX6) && !defined(CONFIG_DM_USB)
#define USB_OTHERREGS_OFFSET 0x800
#define UCTRL_PWR_POL (1 << 9)
@@ -599,7 +599,7 @@ int board_init(void)
#ifndef CONFIG_DM_I2C
setup_i2c(1, CONFIG_SYS_I2C_SPEED, 0x7f, &i2c_pad_info1);
#endif
-#ifdef CONFIG_USB_EHCI_MX6
+#if defined(CONFIG_USB_EHCI_MX6) && !defined(CONFIG_DM_USB)
setup_usb();
#endif
diff --git a/configs/imx6q_sabresd_defconfig b/configs/imx6q_sabresd_defconfig
index 84e34f1..9ac3c9c 100644
--- a/configs/imx6q_sabresd_defconfig
+++ b/configs/imx6q_sabresd_defconfig
@@ -57,6 +57,7 @@ CONFIG_DM_GPIO=y
CONFIG_DM_MMC=y
CONFIG_DM_PMIC=y
CONFIG_DM_REGULATOR=y
+CONFIG_DM_USB=y
# CONFIG_BLK is not set
# CONFIG_DM_MMC_OPS is not set
CONFIG_DM_PMIC_PFUZE100=y
diff --git a/configs/imx6qp_sabresd_defconfig b/configs/imx6qp_sabresd_defconfig
index a346d07..f41492f 100644
--- a/configs/imx6qp_sabresd_defconfig
+++ b/configs/imx6qp_sabresd_defconfig
@@ -59,6 +59,7 @@ CONFIG_DM_GPIO=y
CONFIG_DM_MMC=y
CONFIG_DM_PMIC=y
CONFIG_DM_REGULATOR=y
+CONFIG_DM_USB=y
# CONFIG_BLK is not set
# CONFIG_DM_MMC_OPS is not set
CONFIG_DM_PMIC_PFUZE100=y
diff --git a/include/configs/mx6sabresd.h b/include/configs/mx6sabresd.h
index 6abe7a4..4f6bb1b 100644
--- a/include/configs/mx6sabresd.h
+++ b/include/configs/mx6sabresd.h
@@ -70,12 +70,15 @@
/* USB Configs */
#ifdef CONFIG_USB_EHCI_MX6
-#define CONFIG_EHCI_HCD_INIT_AFTER_RESET
#define CONFIG_USB_HOST_ETHER
#define CONFIG_USB_ETHER_ASIX
#define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
-#define CONFIG_MXC_USB_FLAGS 0
-#define CONFIG_USB_MAX_CONTROLLER_COUNT 1 /* Enabled USB controller number */
+
+# ifndef CONFIG_DM_USB
+# define CONFIG_MXC_USB_FLAGS 0
+# define CONFIG_USB_MAX_CONTROLLER_COUNT 1 /* Enabled USB controller number */
+# define CONFIG_EHCI_HCD_INIT_AFTER_RESET
+# endif
#endif
#endif /* __MX6QSABRESD_CONFIG_H */
--
1.9.1
next prev parent reply other threads:[~2017-04-03 13:53 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-03 13:53 [U-Boot] [PATCH v2 00/29] arm: i.MX6: SabreSD: Add dts support Jagan Teki
2017-04-03 13:53 ` [U-Boot] [PATCH v2 01/29] ARM: i.MX6: sabresd: Fix README - s/of=/dev/sdbbs=1K/of=/dev/sdb bs=1K/ Jagan Teki
2017-04-03 13:53 ` [U-Boot] [PATCH v2 02/29] ARM: dts: i.MX6: Add imx6qdl-sabresd.dtsi Jagan Teki
2017-04-03 13:53 ` [U-Boot] [PATCH v2 03/29] ARM: dts: imx6qdl-sabresd: Add imx6q-sabresd.dts Jagan Teki
2017-04-03 13:53 ` [U-Boot] [PATCH v2 04/29] ARM: i.MX6: sabresd: Remove SPL_I2C_SUPPORT Jagan Teki
2017-04-03 13:53 ` [U-Boot] [PATCH v2 05/29] ARM: i.MX6Q: sabresd: Add initial devicetree support Jagan Teki
2017-04-03 13:53 ` [U-Boot] [PATCH v2 06/29] ARM: dts: imx6qdl-sabresd: Add imx6qp-sabresd.dts Jagan Teki
2017-04-03 13:53 ` [U-Boot] [PATCH v2 07/29] ARM: i.MX6QP: sabresd: Add initial devicetree support Jagan Teki
2017-04-03 19:16 ` Fabio Estevam
2017-04-04 5:39 ` Jagan Teki
2017-04-06 1:59 ` Peng Fan
2017-04-06 4:05 ` Jagan Teki
2017-04-03 13:53 ` [U-Boot] [PATCH v2 08/29] ARM: i.MX6: sabresd: Move CONFIG_SYS_I2C_MXC to defconfigs Jagan Teki
2017-04-03 13:53 ` [U-Boot] [PATCH v2 09/29] ARM: dts: imx6qdl-sabresd: Add I2C node's Jagan Teki
2017-04-03 13:53 ` [U-Boot] [PATCH v2 10/29] ARM: dts: imx6qdl-sabresd: Add PMIC pfuze100 node Jagan Teki
2017-04-03 13:53 ` [U-Boot] [PATCH v2 11/29] ARM: i.MX6: sabresd: Enable DM_I2C and DM_PMIC Jagan Teki
2017-04-03 13:53 ` [U-Boot] [PATCH v2 12/29] ARM: i.MX6: sabresd: defconfig move - CONFIG_USB_EHCI(_MX6) Jagan Teki
2017-04-03 13:53 ` [U-Boot] [PATCH v2 13/29] ARM: dts: imx6qdl-sabresd: Add usb host node Jagan Teki
2017-04-03 13:53 ` [U-Boot] [PATCH v2 14/29] ARM: dts: imx6qdl-sabresd: Add usb otg node Jagan Teki
2017-04-03 13:53 ` [U-Boot] [PATCH v2 15/29] ARM: i.MX6: sabresd: Enable CONFIG_DM_REGULATOR Jagan Teki
2017-04-03 13:53 ` Jagan Teki [this message]
2017-04-03 13:53 ` [U-Boot] [PATCH v2 17/29] ARM: dts: imx6qdl-sabresd: Add FEC node Jagan Teki
2017-04-03 13:53 ` [U-Boot] [PATCH v2 18/29] ARM: i.MX6: sabresd: Move CONFIG_FEC_MXC to defconfigs Jagan Teki
2017-04-03 13:53 ` [U-Boot] [PATCH v2 19/29] ARM: i.MX6: sabresd: Enable DM_ETH Jagan Teki
2017-04-03 13:53 ` [U-Boot] [PATCH v2 20/29] ARM: i.MX6: sabresd: Add dm_gpio_* for backlight Jagan Teki
2017-04-03 13:53 ` [U-Boot] [PATCH v2 21/29] ARM: i.MX6: sabresd: Add imx6_pcie_toggle_power Jagan Teki
2017-04-03 13:53 ` [U-Boot] [PATCH v2 22/29] ARM: i.MX6: sabresd: Add imx6_pcie_toggle_reset Jagan Teki
2017-04-03 13:53 ` [U-Boot] [PATCH v2 23/29] ARM: dts: imx6qdl-sabresd: Add imx6dl-sabresd.dts Jagan Teki
2017-04-03 13:53 ` [U-Boot] [PATCH v2 24/29] ARM: i.MX6DL: sabresd: Add initial devicetree support Jagan Teki
2017-04-03 13:53 ` [U-Boot] [PATCH v2 25/29] ARM: i.MX6: sabresd: Drop legacy non-fdt code Jagan Teki
2017-04-03 13:53 ` [U-Boot] [PATCH v2 26/29] ARM: i.MX6: %s/mx6sabresd/imx6sabresd Jagan Teki
2017-04-03 13:53 ` [U-Boot] [PATCH v2 27/29] ARM: i.MX6: sabresd: Move DM_* and OF_CONTROL to arch Kconfig Jagan Teki
2017-04-03 13:53 ` [U-Boot] [PATCH v2 28/29] ARM: i.MX6: sabresd: Update README Jagan Teki
2017-04-06 2:07 ` Peng Fan
2017-04-06 4:03 ` Jagan Teki
2017-04-06 13:30 ` Fabio Estevam
2017-04-06 19:06 ` Jagan Teki
2017-04-06 22:01 ` Fabio Estevam
2017-04-03 13:53 ` [U-Boot] [PATCH v2 29/29] ARM: i.MX6: sabresd: Drop checkboard Jagan Teki
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=1491227616-15042-17-git-send-email-jagan@openedev.com \
--to=jagan@openedev.com \
--cc=u-boot@lists.denx.de \
/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