developer | f4a079c | 2018-11-15 10:07:52 +0800 | [diff] [blame] | 1 | if ARCH_MEDIATEK |
| 2 | |
| 3 | config SYS_SOC |
| 4 | default "mediatek" |
| 5 | |
| 6 | config SYS_VENDOR |
| 7 | default "mediatek" |
| 8 | |
developer | b3c8f17 | 2019-12-31 11:29:19 +0800 | [diff] [blame] | 9 | config MT8512 |
| 10 | bool "MediaTek MT8512 SoC" |
developer | b3c8f17 | 2019-12-31 11:29:19 +0800 | [diff] [blame] | 11 | |
developer | f4a079c | 2018-11-15 10:07:52 +0800 | [diff] [blame] | 12 | choice |
| 13 | prompt "MediaTek board select" |
| 14 | |
developer | b73d795 | 2020-01-10 16:30:26 +0800 | [diff] [blame] | 15 | config TARGET_MT7622 |
| 16 | bool "MediaTek MT7622 SoC" |
| 17 | select ARM64 |
| 18 | help |
| 19 | The MediaTek MT7622 is a ARM64-based SoC with a dual-core Cortex-A53. |
| 20 | including UART, SPI, USB3.0, SD and MMC cards, NAND, SNFI, PWM, PCIe, |
| 21 | Gigabit Ethernet, I2C, built-in Wi-Fi, and PCIe. |
| 22 | |
developer | ed71a40 | 2018-11-15 10:07:53 +0800 | [diff] [blame] | 23 | config TARGET_MT7623 |
| 24 | bool "MediaTek MT7623 SoC" |
| 25 | select CPU_V7A |
Tom Rini | dec7ea0 | 2024-05-20 13:35:03 -0600 | [diff] [blame] | 26 | select MMC_SUPPORTS_TUNING |
developer | ed71a40 | 2018-11-15 10:07:53 +0800 | [diff] [blame] | 27 | help |
| 28 | The MediaTek MT7623 is a ARM-based SoC with a quad-core Cortex-A7 |
| 29 | including NEON and GPU, Mali-450 graphics, several DDR3 options, |
| 30 | crypto engine, built-in Wi-Fi / Bluetooth combo chip, JPEG decoder, |
| 31 | video interfaces supporting HDMI and MIPI, and video codec support. |
| 32 | Peripherals include Gigabit Ethernet, switch, USB3.0 and OTG, PCIe, |
| 33 | I2S, PCM, S/PDIF, UART, SPI, I2C, IR TX/RX, and PWM. |
| 34 | |
developer | f4a079c | 2018-11-15 10:07:52 +0800 | [diff] [blame] | 35 | config TARGET_MT7629 |
| 36 | bool "MediaTek MT7629 SoC" |
| 37 | select CPU_V7A |
| 38 | select SPL |
developer | f4a079c | 2018-11-15 10:07:52 +0800 | [diff] [blame] | 39 | help |
| 40 | The MediaTek MT7629 is a ARM-based SoC with a dual-core Cortex-A7 |
| 41 | including DDR3, crypto engine, 3x3 11n/ac Wi-Fi, Gigabit Ethernet, |
| 42 | switch, USB3.0, PCIe, UART, SPI, I2C and PWM. |
| 43 | |
developer | ff9f2d4 | 2022-09-09 19:59:11 +0800 | [diff] [blame] | 44 | config TARGET_MT7981 |
| 45 | bool "MediaTek MT7981 SoC" |
| 46 | select ARM64 |
| 47 | select CPU |
| 48 | help |
| 49 | The MediaTek MT7981 is a ARM64-based SoC with a dual-core Cortex-A53. |
| 50 | including UART, SPI, USB, NAND, SNFI, PWM, Gigabit Ethernet, I2C, |
| 51 | built-in Wi-Fi, and PCIe. |
| 52 | |
developer | e021c15 | 2022-09-09 19:59:09 +0800 | [diff] [blame] | 53 | config TARGET_MT7986 |
| 54 | bool "MediaTek MT7986 SoC" |
| 55 | select ARM64 |
| 56 | select CPU |
| 57 | help |
| 58 | The MediaTek MT7986 is a ARM64-based SoC with a quad-core Cortex-A53. |
| 59 | including UART, SPI, SPI flash, USB3.0, MMC, NAND, SNFI, PWM, PCIe, |
| 60 | Gigabit Ethernet, I2C, built-in 4x4 Wi-Fi, and PCIe. |
| 61 | |
developer | f596c1a | 2023-07-19 17:17:49 +0800 | [diff] [blame] | 62 | config TARGET_MT7988 |
| 63 | bool "MediaTek MT7988 SoC" |
| 64 | select ARM64 |
| 65 | select CPU |
| 66 | help |
| 67 | The MediaTek MT7988 is a ARM64-based SoC with a quad-core Cortex-A73. |
| 68 | including UART, SPI, SPI flash, USB3.0, MMC, NAND, SNFI, PWM, PCIe, |
| 69 | 10 Gigabit Ethernet , I2C, and PCIe. |
| 70 | |
Fabien Parent | 4640e2a | 2021-02-15 19:21:11 +0100 | [diff] [blame] | 71 | config TARGET_MT8183 |
| 72 | bool "MediaTek MT8183 SoC" |
| 73 | select ARM64 |
| 74 | help |
| 75 | The MediaTek MT8183 is a ARM64-based SoC with a quad-core Cortex-A73 and |
| 76 | a quad-core Cortex-A53. It is including UART, SPI, USB3.0 dual role, |
| 77 | SD and MMC cards, UFS, PWM, I2C, I2S, S/PDIF, and several LPDDR3 |
| 78 | and LPDDR4 options. |
| 79 | |
Julien Masson | cfa0e16 | 2023-12-04 11:48:55 +0100 | [diff] [blame] | 80 | config TARGET_MT8365 |
| 81 | bool "MediaTek MT8365 SoC" |
| 82 | select ARM64 |
| 83 | help |
| 84 | The MediaTek MT8365 is a ARM64-based SoC with a quad-core Cortex-A53. |
| 85 | It is including UART, SPI, USB2.0 dual role, SD and MMC cards, NAND, PWM, |
| 86 | I2C, I2S, S/PDIF, and several LPDDR3 and LPDDR4 options. |
| 87 | |
developer | b3c8f17 | 2019-12-31 11:29:19 +0800 | [diff] [blame] | 88 | config TARGET_MT8512 |
| 89 | bool "MediaTek MT8512 M1 Board" |
| 90 | select ARM64 |
| 91 | select MT8512 |
| 92 | help |
developer | ca7d22a | 2020-09-04 13:35:22 +0800 | [diff] [blame] | 93 | The MediaTek MT8512 is a ARM64-based SoC with a dual-core Cortex-A53. |
developer | b3c8f17 | 2019-12-31 11:29:19 +0800 | [diff] [blame] | 94 | including UART, SPI, USB2.0 and OTG, SD and MMC cards, NAND, PWM, |
developer | ca7d22a | 2020-09-04 13:35:22 +0800 | [diff] [blame] | 95 | IR RX, I2C, I2S, S/PDIF, and built-in Wi-Fi / Bluetooth digital |
| 96 | and several LPDDR3 and LPDDR4 options. |
developer | b3c8f17 | 2019-12-31 11:29:19 +0800 | [diff] [blame] | 97 | |
Fabien Parent | b6530b4 | 2019-03-24 16:46:38 +0100 | [diff] [blame] | 98 | config TARGET_MT8516 |
| 99 | bool "MediaTek MT8516 SoC" |
| 100 | select ARM64 |
Fabien Parent | b6530b4 | 2019-03-24 16:46:38 +0100 | [diff] [blame] | 101 | help |
| 102 | The MediaTek MT8516 is a ARM64-based SoC with a quad-core Cortex-A35. |
| 103 | including UART, SPI, USB2.0 and OTG, SD and MMC cards, NAND, PWM, |
| 104 | Ethernet, IR TX/RX, I2C, I2S, S/PDIF, and built-in Wi-Fi / Bluetooth combo |
| 105 | chip and several DDR3 and DDR4 options. |
| 106 | |
developer | 9445eda | 2019-11-07 19:28:40 +0800 | [diff] [blame] | 107 | config TARGET_MT8518 |
| 108 | bool "MediaTek MT8518 SoC" |
| 109 | select ARM64 |
| 110 | help |
| 111 | The MediaTek MT8518 is a ARM64-based SoC with a quad-core Cortex-A53. |
| 112 | including UART, SPI, USB2.0 and OTG, SD and MMC cards, NAND, PWM, |
| 113 | Ethernet, IR TX/RX, I2C, I2S, S/PDIF, and built-in Wi-Fi / Bluetooth combo |
| 114 | chip and several DDR3 and DDR4 options. |
| 115 | |
developer | f4a079c | 2018-11-15 10:07:52 +0800 | [diff] [blame] | 116 | endchoice |
| 117 | |
Guillaume La Roque | a24e1cf | 2021-09-10 10:21:06 +0200 | [diff] [blame] | 118 | config SYS_BOARD |
| 119 | string "Board name" |
| 120 | default "mt7622" if TARGET_MT7622 |
| 121 | default "mt7623" if TARGET_MT7623 |
| 122 | default "mt7629" if TARGET_MT7629 |
developer | ff9f2d4 | 2022-09-09 19:59:11 +0800 | [diff] [blame] | 123 | default "mt7981" if TARGET_MT7981 |
developer | e021c15 | 2022-09-09 19:59:09 +0800 | [diff] [blame] | 124 | default "mt7986" if TARGET_MT7986 |
developer | f596c1a | 2023-07-19 17:17:49 +0800 | [diff] [blame] | 125 | default "mt7988" if TARGET_MT7988 |
Guillaume La Roque | a24e1cf | 2021-09-10 10:21:06 +0200 | [diff] [blame] | 126 | default "mt8183" if TARGET_MT8183 |
| 127 | default "mt8512" if TARGET_MT8512 |
| 128 | default "mt8516" if TARGET_MT8516 |
| 129 | default "mt8518" if TARGET_MT8518 |
| 130 | default "" |
| 131 | help |
| 132 | This option contains information about board name. |
| 133 | Based on this option board/<CONFIG_SYS_VENDOR>/<CONFIG_SYS_BOARD> will |
| 134 | be used. |
| 135 | |
| 136 | config SYS_CONFIG_NAME |
Guillaume La Roque | a24e1cf | 2021-09-10 10:21:06 +0200 | [diff] [blame] | 137 | default "mt7622" if TARGET_MT7622 |
| 138 | default "mt7623" if TARGET_MT7623 |
| 139 | default "mt7629" if TARGET_MT7629 |
developer | ff9f2d4 | 2022-09-09 19:59:11 +0800 | [diff] [blame] | 140 | default "mt7981" if TARGET_MT7981 |
developer | e021c15 | 2022-09-09 19:59:09 +0800 | [diff] [blame] | 141 | default "mt7986" if TARGET_MT7986 |
developer | f596c1a | 2023-07-19 17:17:49 +0800 | [diff] [blame] | 142 | default "mt7988" if TARGET_MT7988 |
Guillaume La Roque | a24e1cf | 2021-09-10 10:21:06 +0200 | [diff] [blame] | 143 | default "mt8183" if TARGET_MT8183 |
Julien Masson | cfa0e16 | 2023-12-04 11:48:55 +0100 | [diff] [blame] | 144 | default "mt8365" if TARGET_MT8365 |
Guillaume La Roque | a24e1cf | 2021-09-10 10:21:06 +0200 | [diff] [blame] | 145 | default "mt8512" if TARGET_MT8512 |
| 146 | default "mt8516" if TARGET_MT8516 |
| 147 | default "mt8518" if TARGET_MT8518 |
Guillaume La Roque | a24e1cf | 2021-09-10 10:21:06 +0200 | [diff] [blame] | 148 | |
| 149 | config MTK_BROM_HEADER_INFO |
| 150 | string |
| 151 | default "media=nor" if TARGET_MT8518 || TARGET_MT8512 || TARGET_MT7629 || TARGET_MT7622 |
| 152 | default "media=emmc" if TARGET_MT8516 || TARGET_MT8365 || TARGET_MT8183 |
developer | f596c1a | 2023-07-19 17:17:49 +0800 | [diff] [blame] | 153 | default "media=snand;nandinfo=2k+64" if TARGET_MT7981 || TARGET_MT7986 || TARGET_MT7988 |
Guillaume La Roque | a24e1cf | 2021-09-10 10:21:06 +0200 | [diff] [blame] | 154 | default "lk=1" if TARGET_MT7623 |
developer | f4a079c | 2018-11-15 10:07:52 +0800 | [diff] [blame] | 155 | |
| 156 | endif |