summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorYe.Li <B37916@freescale.com>2015-12-17 11:39:09 +0800
committerYe.Li <B37916@freescale.com>2015-12-18 15:27:59 +0800
commitf026a65375094cc2c0e25ed11772aee9362ee63d (patch)
tree6685b6a631886a28d9aa93b3ad033d936b8fb5e8 /include
parent80479ea591a7ae5263ae6930c02884a8b844dcf6 (diff)
downloadu-boot-imx-f026a65375094cc2c0e25ed11772aee9362ee63d.zip
u-boot-imx-f026a65375094cc2c0e25ed11772aee9362ee63d.tar.gz
u-boot-imx-f026a65375094cc2c0e25ed11772aee9362ee63d.tar.bz2
MLK-12034 imx: mx7dsabresd: Add RevB board support
Since i.MX7D SDB revB board has some HW changes, we have modify the BSP file to support new pinmux. 1. OTG2 PWR pin is changed to GPIO1_IO07. 2. A enet2_en pin is added for isolating enet2 signals with EPDC, we also add support for enet2. 3. pin6 of 74LV output is changed for CSI PWDN. Set output to high to power down it. This patch also tries to get the board id and apply changes according with it. Since current RevB board does not burn GP1 fuse for board id, we have to check the TO rev instead even it is not very exact. Will update this if any new way implemented. Signed-off-by: Ye.Li <B37916@freescale.com>
Diffstat (limited to 'include')
-rw-r--r--include/configs/mx7dsabresd.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/include/configs/mx7dsabresd.h b/include/configs/mx7dsabresd.h
index faf36fc..02aee51 100644
--- a/include/configs/mx7dsabresd.h
+++ b/include/configs/mx7dsabresd.h
@@ -80,14 +80,21 @@
#define CONFIG_MII
#define CONFIG_FEC_XCV_TYPE RGMII
#define CONFIG_ETHPRIME "FEC"
-#define CONFIG_FEC_MXC_PHYADDR 0
-
#define CONFIG_PHYLIB
#define CONFIG_PHY_BROADCOM
#define CONFIG_FEC_DMA_MINALIGN 64
-/* ENET1 */
+#define CONFIG_FEC_ENET_DEV 0
+
+#if (CONFIG_FEC_ENET_DEV == 0)
#define IMX_FEC_BASE ENET_IPS_BASE_ADDR
+#define CONFIG_FEC_MXC_PHYADDR 0x0
+#elif (CONFIG_FEC_ENET_DEV == 1)
+#define IMX_FEC_BASE ENET2_IPS_BASE_ADDR
+#define CONFIG_FEC_MXC_PHYADDR 0x1
+#endif
+
+#define CONFIG_FEC_MXC_MDIO_BASE ENET_IPS_BASE_ADDR
/* PMIC */
#define CONFIG_POWER