arm: MediaTek: add ethernet support for MT7623 boards
authorWeijie Gao <weijie.gao@mediatek.com>
Thu, 20 Dec 2018 08:12:56 +0000 (16:12 +0800)
committerTom Rini <trini@konsulko.com>
Mon, 14 Jan 2019 22:43:18 +0000 (17:43 -0500)
Enable ethernet related configs to mt7623n_bpir2_defconfig.
Add default IP addresses.
Enable noncached memory region required by ethernet driver.

Signed-off-by: Mark Lee <Mark-MC.Lee@mediatek.com>
configs/mt7623n_bpir2_defconfig
include/configs/mt7623.h

index ae4fb280dc4efc76c10179d4a922968680e06650..53ac63e19c90f160d4a5034e7ad8cbbd31fe4369 100644 (file)
@@ -28,6 +28,7 @@ CONFIG_CMD_FAT=y
 CONFIG_CMD_FS_GENERIC=y
 CONFIG_OF_EMBED=y
 CONFIG_DEFAULT_DEVICE_TREE="mt7623n-bananapi-bpi-r2"
+CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_REGMAP=y
 CONFIG_SYSCON=y
 # CONFIG_BLOCK_CACHE is not set
@@ -37,6 +38,11 @@ CONFIG_DM_MMC=y
 # CONFIG_MMC_QUIRKS is not set
 CONFIG_MMC_HS400_SUPPORT=y
 CONFIG_MMC_MTK=y
+CONFIG_DM_RESET=y
+CONFIG_RESET_MEDIATEK=y
+CONFIG_PHY_FIXED=y
+CONFIG_DM_ETH=y
+CONFIG_MEDIATEK_ETH=y
 CONFIG_PINCTRL=y
 CONFIG_PINCONF=y
 CONFIG_PINCTRL_MT7623=y
index ba763501cf2eb0cdaa88efaf1ded7e22f0b147bd..5129c83da8fd7a2ece14a8c696f99249c7bb0036 100644 (file)
@@ -24,6 +24,7 @@
 
 /* Size of malloc() pool */
 #define CONFIG_SYS_MALLOC_LEN          SZ_4M
+#define CONFIG_SYS_NONCACHED_MEMORY    SZ_1M
 
 /* Environment */
 #define CONFIG_ENV_SIZE                        SZ_4K
@@ -53,4 +54,8 @@
 #define CONFIG_EXTRA_ENV_SETTINGS      \
        FDT_HIGH
 
+/* Ethernet */
+#define CONFIG_IPADDR                  192.168.1.1
+#define CONFIG_SERVERIP                        192.168.1.2
+
 #endif