From: Jagan Teki <jagan@openedev.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 19/31] ARM: i.MX6: sabresd: Enable DM_ETH
Date: Thu, 6 Apr 2017 00:50:29 +0530 [thread overview]
Message-ID: <1491420041-12471-20-git-send-email-jagan@openedev.com> (raw)
In-Reply-To: <1491420041-12471-1-git-send-email-jagan@openedev.com>
From: Jagan Teki <jagan@amarulasolutions.com>
Enable DM_ETH 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 | 6 ++++++
configs/imx6q_sabresd_defconfig | 1 +
configs/imx6qp_sabresd_defconfig | 1 +
3 files changed, 8 insertions(+)
diff --git a/board/freescale/mx6sabresd/mx6sabresd.c b/board/freescale/mx6sabresd/mx6sabresd.c
index a143dbb..10bc7c6 100644
--- a/board/freescale/mx6sabresd/mx6sabresd.c
+++ b/board/freescale/mx6sabresd/mx6sabresd.c
@@ -70,6 +70,7 @@ static iomux_v3_cfg_t const uart1_pads[] = {
MX6_PAD_CSI0_DAT11__UART1_RX_DATA | MUX_PAD_CTRL(UART_PAD_CTRL),
};
+#ifndef CONFIG_OF_CONTROL
static iomux_v3_cfg_t const enet_pads[] = {
MX6_PAD_ENET_MDIO__ENET_MDIO | MUX_PAD_CTRL(ENET_PAD_CTRL),
MX6_PAD_ENET_MDC__ENET_MDC | MUX_PAD_CTRL(ENET_PAD_CTRL),
@@ -100,6 +101,7 @@ static void setup_iomux_enet(void)
gpio_set_value(IMX_GPIO_NR(1, 25), 1);
udelay(100);
}
+#endif
static iomux_v3_cfg_t const usdhc2_pads[] = {
MX6_PAD_SD2_CLK__SD2_CLK | MUX_PAD_CTRL(USDHC_PAD_CTRL),
@@ -222,6 +224,7 @@ static void setup_spi(void)
imx_iomux_v3_setup_multiple_pads(ecspi1_pads, ARRAY_SIZE(ecspi1_pads));
}
+#ifndef CONFIG_OF_CONTROL
iomux_v3_cfg_t const pcie_pads[] = {
MX6_PAD_EIM_D19__GPIO3_IO19 | MUX_PAD_CTRL(NO_PAD_CTRL), /* POWER */
MX6_PAD_GPIO_17__GPIO7_IO12 | MUX_PAD_CTRL(NO_PAD_CTRL), /* RESET */
@@ -231,6 +234,7 @@ static void setup_pcie(void)
{
imx_iomux_v3_setup_multiple_pads(pcie_pads, ARRAY_SIZE(pcie_pads));
}
+#endif
iomux_v3_cfg_t const di0_pads[] = {
MX6_PAD_DI0_DISP_CLK__IPU1_DI0_DISP_CLK, /* DISP0_CLK */
@@ -507,6 +511,7 @@ int overwrite_console(void)
return 1;
}
+#ifndef CONFIG_OF_CONTROL
int board_eth_init(bd_t *bis)
{
setup_iomux_enet();
@@ -514,6 +519,7 @@ int board_eth_init(bd_t *bis)
return cpu_eth_init(bis);
}
+#endif
#if defined(CONFIG_USB_EHCI_MX6) && !defined(CONFIG_DM_USB)
#define USB_OTHERREGS_OFFSET 0x800
diff --git a/configs/imx6q_sabresd_defconfig b/configs/imx6q_sabresd_defconfig
index 377a489..8c7baee 100644
--- a/configs/imx6q_sabresd_defconfig
+++ b/configs/imx6q_sabresd_defconfig
@@ -52,6 +52,7 @@ CONFIG_G_DNL_PRODUCT_NUM=0xa4a5
# CONFIG_VIDEO_SW_CURSOR is not set
CONFIG_OF_LIBFDT=y
CONFIG_OF_CONTROL=y
+CONFIG_DM_ETH=y
CONFIG_DM_I2C=y
CONFIG_DM_GPIO=y
CONFIG_DM_MMC=y
diff --git a/configs/imx6qp_sabresd_defconfig b/configs/imx6qp_sabresd_defconfig
index 037bd41..cccb7b1 100644
--- a/configs/imx6qp_sabresd_defconfig
+++ b/configs/imx6qp_sabresd_defconfig
@@ -53,6 +53,7 @@ CONFIG_G_DNL_PRODUCT_NUM=0xa4a5
# CONFIG_VIDEO_SW_CURSOR is not set
CONFIG_OF_LIBFDT=y
CONFIG_OF_CONTROL=y
+CONFIG_DM_ETH=y
CONFIG_DM_I2C=y
CONFIG_DM_GPIO=y
CONFIG_DM_MMC=y
--
1.9.1
next prev parent reply other threads:[~2017-04-05 19:20 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-05 19:20 [U-Boot] [PATCH v3 00/31] ARM: i.MX6: SabreSD: Add dts support Jagan Teki
2017-04-05 19:20 ` [U-Boot] [PATCH v3 01/31] ARM: i.MX6: sabresd: Fix README - s/of=/dev/sdbbs=1K/of=/dev/sdb bs=1K/ Jagan Teki
2017-04-05 19:20 ` [U-Boot] [PATCH v3 02/31] ARM: dts: i.MX6: Add imx6qdl-sabresd.dtsi Jagan Teki
2017-04-05 19:20 ` [U-Boot] [PATCH v3 03/31] ARM: dts: imx6qdl-sabresd: Add imx6q-sabresd.dts Jagan Teki
2017-04-05 19:20 ` [U-Boot] [PATCH v3 04/31] ARM: i.MX6: sabresd: Remove SPL_I2C_SUPPORT Jagan Teki
2017-04-05 19:20 ` [U-Boot] [PATCH v3 05/31] ARM: i.MX6Q: sabresd: Add initial devicetree support Jagan Teki
2017-04-05 19:20 ` [U-Boot] [PATCH v3 06/31] ARM: dts: imx6qdl-sabresd: Add imx6qp-sabresd.dts Jagan Teki
2017-04-05 19:20 ` [U-Boot] [PATCH v3 07/31] ARM: i.MX6QP: sabresd: Add initial devicetree support Jagan Teki
2017-04-05 19:20 ` [U-Boot] [PATCH v3 08/31] ARM: i.MX6: sabresd: Move CONFIG_SYS_I2C_MXC to defconfigs Jagan Teki
2017-04-05 19:20 ` [U-Boot] [PATCH v3 09/31] ARM: dts: imx6qdl-sabresd: Add I2C node's Jagan Teki
2017-04-05 19:20 ` [U-Boot] [PATCH v3 10/31] ARM: dts: imx6qdl-sabresd: Add PMIC pfuze100 node Jagan Teki
2017-04-05 19:20 ` [U-Boot] [PATCH v3 11/31] ARM: i.MX6: sabresd: Enable DM_I2C and DM_PMIC Jagan Teki
2017-04-05 19:20 ` [U-Boot] [PATCH v3 12/31] ARM: i.MX6: sabresd: defconfig move - CONFIG_USB_EHCI(_MX6) Jagan Teki
2017-04-05 19:20 ` [U-Boot] [PATCH v3 13/31] ARM: dts: imx6qdl-sabresd: Add usb host node Jagan Teki
2017-04-05 19:20 ` [U-Boot] [PATCH v3 14/31] ARM: dts: imx6qdl-sabresd: Add usb otg node Jagan Teki
2017-04-05 19:20 ` [U-Boot] [PATCH v3 15/31] ARM: i.MX6: sabresd: Enable CONFIG_DM_REGULATOR Jagan Teki
2017-04-05 19:20 ` [U-Boot] [PATCH v3 16/31] ARM: i.MX6: sabresd: Enable DM_USB Jagan Teki
2017-04-05 19:20 ` [U-Boot] [PATCH v3 17/31] ARM: dts: imx6qdl-sabresd: Add FEC node Jagan Teki
2017-04-05 19:20 ` [U-Boot] [PATCH v3 18/31] ARM: i.MX6: sabresd: Move CONFIG_FEC_MXC to defconfigs Jagan Teki
2017-04-05 19:20 ` Jagan Teki [this message]
2017-04-05 19:20 ` [U-Boot] [PATCH v3 20/31] ARM: i.MX6: sabresd: Add dm_gpio_* for backlight Jagan Teki
2017-04-05 19:20 ` [U-Boot] [PATCH v3 21/31] ARM: i.MX6: sabresd: Add imx6_pcie_toggle_power Jagan Teki
2017-04-05 19:20 ` [U-Boot] [PATCH v3 22/31] ARM: i.MX6: sabresd: Add imx6_pcie_toggle_reset Jagan Teki
2017-04-06 21:56 ` Fabio Estevam
2017-04-07 6:42 ` Jagan Teki
2017-04-05 19:20 ` [U-Boot] [PATCH v3 23/31] ARM: i.MX6DL: sabresd: Move DCD reginit on SPL Jagan Teki
2017-04-06 21:54 ` Fabio Estevam
2017-04-07 6:10 ` Jagan Teki
2017-05-12 4:03 ` Fabio Estevam
2017-04-05 19:20 ` [U-Boot] [PATCH v3 24/31] ARM: dts: imx6qdl-sabresd: Add imx6dl-sabresd.dts Jagan Teki
2017-04-05 19:20 ` [U-Boot] [PATCH v3 25/31] ARM: i.MX6DL: sabresd: Add initial devicetree support Jagan Teki
2017-04-05 19:20 ` [U-Boot] [PATCH v3 26/31] ARM: i.MX6: sabresd: Drop legacy non-fdt code Jagan Teki
2017-04-05 19:20 ` [U-Boot] [PATCH v3 27/31] ARM: i.MX6: %s/mx6sabresd/imx6sabresd Jagan Teki
2017-04-05 19:20 ` [U-Boot] [PATCH v3 28/31] ARM: i.MX6: sabresd: Move DM_* and OF_CONTROL to arch Kconfig Jagan Teki
2017-04-05 19:20 ` [U-Boot] [PATCH v3 29/31] ARM: i.MX6: sabresd: Update README Jagan Teki
2017-04-05 19:20 ` [U-Boot] [PATCH v3 30/31] ARM: i.MX6: sabresd: Drop checkboard Jagan Teki
2017-04-05 19:20 ` [U-Boot] [PATCH v3 31/31] ARM: i.MX6: sabresd: Cleanup board code 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=1491420041-12471-20-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