uboot-mediatek: add build for BPi-R4
[openwrt/staging/dangole.git] / package / boot / uboot-mediatek / patches / 101-02-board-mediatek-update-config-headers.patch
1 From df3a0091b249ea82198ea019d145d05a7cf49c0d Mon Sep 17 00:00:00 2001
2 From: Weijie Gao <weijie.gao@mediatek.com>
3 Date: Wed, 19 Jul 2023 17:15:47 +0800
4 Subject: [PATCH 02/29] board: mediatek: update config headers
5
6 Remove unused information from include/configs/mtxxxx.h
7
8 Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
9 ---
10 include/configs/mt7620.h | 3 +--
11 include/configs/mt7621.h | 6 ++----
12 include/configs/mt7623.h | 8 --------
13 include/configs/mt7628.h | 5 ++---
14 include/configs/mt7629.h | 13 +------------
15 5 files changed, 6 insertions(+), 29 deletions(-)
16
17 --- a/include/configs/mt7620.h
18 +++ b/include/configs/mt7620.h
19 @@ -10,10 +10,9 @@
20
21 #define CFG_SYS_SDRAM_BASE 0x80000000
22
23 -#define CFG_SYS_INIT_SP_OFFSET 0x400000
24 +#define CFG_SYS_INIT_SP_OFFSET 0x400000
25
26 /* SPL */
27 -
28 #define CFG_SYS_UBOOT_START CONFIG_TEXT_BASE
29
30 /* Dummy value */
31 --- a/include/configs/mt7621.h
32 +++ b/include/configs/mt7621.h
33 @@ -12,13 +12,11 @@
34
35 #define CFG_MAX_MEM_MAPPED 0x1c000000
36
37 -#define CFG_SYS_INIT_SP_OFFSET 0x800000
38 +#define CFG_SYS_INIT_SP_OFFSET 0x800000
39
40 /* MMC */
41 #define MMC_SUPPORTS_TUNING
42
43 -/* NAND */
44 -
45 /* Serial SPL */
46 #if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_SERIAL)
47 #define CFG_SYS_NS16550_CLK 50000000
48 @@ -26,7 +24,7 @@
49 #endif
50
51 /* Serial common */
52 -#define CFG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200, \
53 +#define CFG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200, \
54 230400, 460800, 921600 }
55
56 /* Dummy value */
57 --- a/include/configs/mt7623.h
58 +++ b/include/configs/mt7623.h
59 @@ -11,12 +11,6 @@
60
61 #include <linux/sizes.h>
62
63 -/* Miscellaneous configurable options */
64 -
65 -/* Environment */
66 -
67 -/* Preloader -> Uboot */
68 -
69 /* MMC */
70 #define MMC_SUPPORTS_TUNING
71
72 @@ -32,8 +26,6 @@
73 "fdt_addr_r=" FDT_HIGH "\0" \
74 "fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0"
75
76 -/* Ethernet */
77 -
78 #ifdef CONFIG_DISTRO_DEFAULTS
79
80 #define BOOT_TARGET_DEVICES(func) \
81 --- a/include/configs/mt7628.h
82 +++ b/include/configs/mt7628.h
83 @@ -10,7 +10,7 @@
84
85 #define CFG_SYS_SDRAM_BASE 0x80000000
86
87 -#define CFG_SYS_INIT_SP_OFFSET 0x80000
88 +#define CFG_SYS_INIT_SP_OFFSET 0x80000
89
90 /* Serial SPL */
91 #if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_SERIAL)
92 @@ -19,11 +19,10 @@
93 #endif
94
95 /* Serial common */
96 -#define CFG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200, \
97 +#define CFG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200, \
98 230400, 460800, 921600 }
99
100 /* SPL */
101 -
102 #define CFG_SYS_UBOOT_START CONFIG_TEXT_BASE
103
104 /* Dummy value */
105 --- a/include/configs/mt7629.h
106 +++ b/include/configs/mt7629.h
107 @@ -9,21 +9,10 @@
108 #ifndef __MT7629_H
109 #define __MT7629_H
110
111 -#include <linux/sizes.h>
112 -
113 -/* Miscellaneous configurable options */
114 -
115 -/* Environment */
116 -
117 +/* SPL */
118 #define CFG_SYS_UBOOT_BASE (0x30000000 + CONFIG_SPL_PAD_TO)
119
120 -/* SPL -> Uboot */
121 -
122 -/* UBoot -> Kernel */
123 -
124 /* DRAM */
125 #define CFG_SYS_SDRAM_BASE 0x40000000
126
127 -/* Ethernet */
128 -
129 #endif