diff mbox series

[U-Boot,09/11] arm: MediaTek: add ethernet support for MT7629 boards

Message ID 1545293579-19235-10-git-send-email-weijie.gao@mediatek.com
State Accepted
Commit d7fe0ad2850a1bdba6d5582d8a6b871cd4ace8de
Delegated to: Tom Rini
Headers show
Series Add ethernet driver for MediaTek SoCs | expand

Commit Message

Weijie Gao (高惟杰) Dec. 20, 2018, 8:12 a.m. UTC
Enable ethernet related configs to mt7629_rfb_defconfig.
Add default IP addresses.
Enable noncached memory region required by ethernet driver.

Signed-off-by: Mark Lee <Mark-MC.Lee@mediatek.com>
---
 configs/mt7629_rfb_defconfig | 5 +++++
 include/configs/mt7629.h     | 5 +++++
 2 files changed, 10 insertions(+)

Comments

Tom Rini Jan. 16, 2019, 2:41 a.m. UTC | #1
On Thu, Dec 20, 2018 at 04:12:57PM +0800, Weijie Gao wrote:

> Enable ethernet related configs to mt7629_rfb_defconfig.
> Add default IP addresses.
> Enable noncached memory region required by ethernet driver.
> 
> Signed-off-by: Mark Lee <Mark-MC.Lee@mediatek.com>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/configs/mt7629_rfb_defconfig b/configs/mt7629_rfb_defconfig
index 1729d13c3d3..fdd5f575774 100644
--- a/configs/mt7629_rfb_defconfig
+++ b/configs/mt7629_rfb_defconfig
@@ -32,6 +32,7 @@  CONFIG_CMD_PING=y
 CONFIG_OF_EMBED=y
 CONFIG_DEFAULT_DEVICE_TREE="mt7629-rfb"
 CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-parents"
+CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_SPL_DM_SEQ_ALIAS=y
 CONFIG_REGMAP=y
 CONFIG_SPL_REGMAP=y
@@ -51,6 +52,10 @@  CONFIG_SPI_FLASH_MACRONIX=y
 CONFIG_SPI_FLASH_SPANSION=y
 CONFIG_SPI_FLASH_STMICRO=y
 CONFIG_SPI_FLASH_WINBOND=y
+CONFIG_DM_RESET=y
+CONFIG_RESET_MEDIATEK=y
+CONFIG_DM_ETH=y
+CONFIG_MEDIATEK_ETH=y
 CONFIG_PINCTRL=y
 CONFIG_PINCONF=y
 CONFIG_PINCTRL_MT7629=y
diff --git a/include/configs/mt7629.h b/include/configs/mt7629.h
index a665a5eb7f2..9910d8c89a6 100644
--- a/include/configs/mt7629.h
+++ b/include/configs/mt7629.h
@@ -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
@@ -54,4 +55,8 @@ 
 /* DRAM */
 #define CONFIG_SYS_SDRAM_BASE		0x40000000
 
+/* Ethernet */
+#define CONFIG_IPADDR			192.168.1.1
+#define CONFIG_SERVERIP			192.168.1.2
+
 #endif