aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot/uboot-mediatek/patches/100-01-board-mediatek-add-more-network-configurations.patch
blob: 959146337360682e6d3bc42483f8e4efff8029bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
From 97df847f8f895cc2692bb0e4e933269c275da378 Mon Sep 17 00:00:00 2001
From: Weijie Gao <weijie.gao@mediatek.com>
Date: Tue, 2 Mar 2021 15:47:45 +0800
Subject: [PATCH 35/71] board: mediatek: add more network configurations

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 +
 include/configs/mt7981.h | 5 +++++
 include/configs/mt7986.h | 5 +++++
 5 files changed, 14 insertions(+), 1 deletion(-)

--- a/include/configs/mt7622.h
+++ b/include/configs/mt7622.h
@@ -30,6 +30,7 @@
 
 /* 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
@@ -45,6 +45,7 @@
 /* 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
@@ -45,5 +45,6 @@
 /* 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/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