summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2015-07-28 20:24:41 -0300
committerStefano Babic <sbabic@denx.de>2015-09-02 15:26:12 +0200
commitf02229021d2698e97915740ed491ddc3f0975f2e (patch)
tree98293361c1a866cda442f4edea3e3c6f1b9f2a5e /include
parent066f876bf696559da142aed657f2fd6ae7a3c658 (diff)
downloadu-boot-f02229021d2698e97915740ed491ddc3f0975f2e.tar.gz
u-boot-f02229021d2698e97915740ed491ddc3f0975f2e.tar.bz2
u-boot-f02229021d2698e97915740ed491ddc3f0975f2e.zip
cgtqmx6eval: Add Ethernet support
cgtqmx6eval can be populated with a AR8035 or KSZ9031 depending on the board revision. Add Ethernet support. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'include')
-rw-r--r--include/configs/cgtqmx6eval.h13
-rw-r--r--include/micrel.h4
2 files changed, 17 insertions, 0 deletions
diff --git a/include/configs/cgtqmx6eval.h b/include/configs/cgtqmx6eval.h
index fb5b82ee33..92930c8f72 100644
--- a/include/configs/cgtqmx6eval.h
+++ b/include/configs/cgtqmx6eval.h
@@ -97,6 +97,19 @@
#define CONFIG_LBA48
#define CONFIG_LIBATA
+/* Ethernet */
+#define CONFIG_CMD_PING
+#define CONFIG_CMD_DHCP
+#define CONFIG_CMD_MII
+#define CONFIG_FEC_MXC
+#define CONFIG_MII
+#define IMX_FEC_BASE ENET_BASE_ADDR
+#define CONFIG_FEC_XCV_TYPE RGMII
+#define CONFIG_ETHPRIME "FEC"
+#define CONFIG_FEC_MXC_PHYADDR 6
+#define CONFIG_PHYLIB
+#define CONFIG_PHY_ATHEROS
+
/* Command definition */
#define CONFIG_MXC_UART_BASE UART2_BASE
diff --git a/include/micrel.h b/include/micrel.h
index 04c9ecf3bf..e6d145d4b2 100644
--- a/include/micrel.h
+++ b/include/micrel.h
@@ -20,6 +20,10 @@
#define MII_KSZ9031_EXT_RGMII_TX_DATA_SKEW 0x6
#define MII_KSZ9031_EXT_RGMII_CLOCK_SKEW 0x8
+/* Registers */
+#define MMD_ACCESS_CONTROL 0xd
+#define MMD_ACCESS_REG_DATA 0xe
+
struct phy_device;
int ksz9021_phy_extended_write(struct phy_device *phydev, int regnum, u16 val);
int ksz9021_phy_extended_read(struct phy_device *phydev, int regnum);