101-02-board-mediatek-update-config-headers.patch 2.9 KB

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