2022-08-07 10:06:56 +00:00
|
|
|
From 97df847f8f895cc2692bb0e4e933269c275da378 Mon Sep 17 00:00:00 2001
|
2021-02-20 13:04:38 +00:00
|
|
|
From: Weijie Gao <weijie.gao@mediatek.com>
|
|
|
|
Date: Tue, 2 Mar 2021 15:47:45 +0800
|
2022-08-07 10:06:56 +00:00
|
|
|
Subject: [PATCH 35/71] board: mediatek: add more network configurations
|
2021-02-20 13:04:38 +00:00
|
|
|
|
|
|
|
Make the network configurations uniform for mediatek boards
|
|
|
|
|
|
|
|
Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
|
|
|
|
---
|
|
|
|
include/configs/mt7622.h | 3 ++-
|
|
|
|
include/configs/mt7623.h | 1 +
|
|
|
|
include/configs/mt7629.h | 1 +
|
2022-08-07 10:06:56 +00:00
|
|
|
include/configs/mt7981.h | 5 +++++
|
|
|
|
include/configs/mt7986.h | 5 +++++
|
|
|
|
5 files changed, 14 insertions(+), 1 deletion(-)
|
2021-02-20 13:04:38 +00:00
|
|
|
|
|
|
|
--- a/include/configs/mt7622.h
|
|
|
|
+++ b/include/configs/mt7622.h
|
2022-01-11 21:26:43 +00:00
|
|
|
@@ -30,6 +30,7 @@
|
2021-02-20 13:04:38 +00:00
|
|
|
|
|
|
|
/* Ethernet */
|
|
|
|
#define CONFIG_IPADDR 192.168.1.1
|
|
|
|
-#define CONFIG_SERVERIP 192.168.1.3
|
|
|
|
+#define CONFIG_SERVERIP 192.168.1.2
|
|
|
|
+#define CONFIG_NETMASK 255.255.255.0
|
|
|
|
|
|
|
|
#endif
|
|
|
|
--- a/include/configs/mt7623.h
|
|
|
|
+++ b/include/configs/mt7623.h
|
2022-01-11 21:26:43 +00:00
|
|
|
@@ -45,6 +45,7 @@
|
2021-02-20 13:04:38 +00:00
|
|
|
/* Ethernet */
|
|
|
|
#define CONFIG_IPADDR 192.168.1.1
|
|
|
|
#define CONFIG_SERVERIP 192.168.1.2
|
|
|
|
+#define CONFIG_NETMASK 255.255.255.0
|
|
|
|
|
|
|
|
#ifdef CONFIG_DISTRO_DEFAULTS
|
|
|
|
|
|
|
|
--- a/include/configs/mt7629.h
|
|
|
|
+++ b/include/configs/mt7629.h
|
2022-01-11 21:26:43 +00:00
|
|
|
@@ -45,5 +45,6 @@
|
2021-02-20 13:04:38 +00:00
|
|
|
/* Ethernet */
|
|
|
|
#define CONFIG_IPADDR 192.168.1.1
|
|
|
|
#define CONFIG_SERVERIP 192.168.1.2
|
|
|
|
+#define CONFIG_NETMASK 255.255.255.0
|
|
|
|
|
|
|
|
#endif
|
2022-08-07 10:06:56 +00:00
|
|
|
--- a/include/configs/mt7981.h
|
|
|
|
+++ b/include/configs/mt7981.h
|
|
|
|
@@ -23,4 +23,9 @@
|
|
|
|
/* DRAM */
|
|
|
|
#define CONFIG_SYS_SDRAM_BASE 0x40000000
|
|
|
|
|
|
|
|
+/* Ethernet */
|
|
|
|
+#define CONFIG_IPADDR 192.168.1.1
|
|
|
|
+#define CONFIG_SERVERIP 192.168.1.2
|
|
|
|
+#define CONFIG_NETMASK 255.255.255.0
|
|
|
|
+
|
|
|
|
#endif
|
|
|
|
--- a/include/configs/mt7986.h
|
|
|
|
+++ b/include/configs/mt7986.h
|
|
|
|
@@ -23,4 +23,9 @@
|
|
|
|
/* DRAM */
|
|
|
|
#define CONFIG_SYS_SDRAM_BASE 0x40000000
|
|
|
|
|
|
|
|
+/* Ethernet */
|
|
|
|
+#define CONFIG_IPADDR 192.168.1.1
|
|
|
|
+#define CONFIG_SERVERIP 192.168.1.2
|
|
|
|
+#define CONFIG_NETMASK 255.255.255.0
|
|
|
|
+
|
|
|
|
#endif
|