Ryder Lee | cbd2fba | 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 | |
mingming lee | 953bb4c | 2019-12-31 11:29:19 +0800 | [diff] [blame] | 9 | config MT8512 |
| 10 | bool "MediaTek MT8512 SoC" |
mingming lee | 953bb4c | 2019-12-31 11:29:19 +0800 | [diff] [blame] | 11 | |
Ryder Lee | cbd2fba | 2018-11-15 10:07:52 +0800 | [diff] [blame] | 12 | choice |
| 13 | prompt "MediaTek board select" |
| 14 | |
Sam Shih | ac57e2b | 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 | |
Weijie Gao | 361e13f | 2018-11-15 10:07:53 +0800 | [diff] [blame] | 23 | config TARGET_MT7623 |
| 24 | bool "MediaTek MT7623 SoC" |
| 25 | select CPU_V7A |
Weijie Gao | 361e13f | 2018-11-15 10:07:53 +0800 | [diff] [blame] | 26 | help |
| 27 | The MediaTek MT7623 is a ARM-based SoC with a quad-core Cortex-A7 |
| 28 | including NEON and GPU, Mali-450 graphics, several DDR3 options, |
| 29 | crypto engine, built-in Wi-Fi / Bluetooth combo chip, JPEG decoder, |
| 30 | video interfaces supporting HDMI and MIPI, and video codec support. |
| 31 | Peripherals include Gigabit Ethernet, switch, USB3.0 and OTG, PCIe, |
| 32 | I2S, PCM, S/PDIF, UART, SPI, I2C, IR TX/RX, and PWM. |
| 33 | |
Ryder Lee | cbd2fba | 2018-11-15 10:07:52 +0800 | [diff] [blame] | 34 | config TARGET_MT7629 |
| 35 | bool "MediaTek MT7629 SoC" |
| 36 | select CPU_V7A |
| 37 | select SPL |
Ryder Lee | cbd2fba | 2018-11-15 10:07:52 +0800 | [diff] [blame] | 38 | help |
| 39 | The MediaTek MT7629 is a ARM-based SoC with a dual-core Cortex-A7 |
| 40 | including DDR3, crypto engine, 3x3 11n/ac Wi-Fi, Gigabit Ethernet, |
| 41 | switch, USB3.0, PCIe, UART, SPI, I2C and PWM. |
| 42 | |
Fabien Parent | 1838043 | 2021-02-15 19:21:11 +0100 | [diff] [blame] | 43 | config TARGET_MT8183 |
| 44 | bool "MediaTek MT8183 SoC" |
| 45 | select ARM64 |
| 46 | help |
| 47 | The MediaTek MT8183 is a ARM64-based SoC with a quad-core Cortex-A73 and |
| 48 | a quad-core Cortex-A53. It is including UART, SPI, USB3.0 dual role, |
| 49 | SD and MMC cards, UFS, PWM, I2C, I2S, S/PDIF, and several LPDDR3 |
| 50 | and LPDDR4 options. |
| 51 | |
mingming lee | 953bb4c | 2019-12-31 11:29:19 +0800 | [diff] [blame] | 52 | config TARGET_MT8512 |
| 53 | bool "MediaTek MT8512 M1 Board" |
| 54 | select ARM64 |
| 55 | select MT8512 |
| 56 | help |
Mingming Lee | 75fb7b9 | 2020-09-04 13:35:22 +0800 | [diff] [blame] | 57 | The MediaTek MT8512 is a ARM64-based SoC with a dual-core Cortex-A53. |
mingming lee | 953bb4c | 2019-12-31 11:29:19 +0800 | [diff] [blame] | 58 | including UART, SPI, USB2.0 and OTG, SD and MMC cards, NAND, PWM, |
Mingming Lee | 75fb7b9 | 2020-09-04 13:35:22 +0800 | [diff] [blame] | 59 | IR RX, I2C, I2S, S/PDIF, and built-in Wi-Fi / Bluetooth digital |
| 60 | and several LPDDR3 and LPDDR4 options. |
mingming lee | 953bb4c | 2019-12-31 11:29:19 +0800 | [diff] [blame] | 61 | |
Fabien Parent | def2fc0 | 2019-03-24 16:46:38 +0100 | [diff] [blame] | 62 | config TARGET_MT8516 |
| 63 | bool "MediaTek MT8516 SoC" |
| 64 | select ARM64 |
Fabien Parent | def2fc0 | 2019-03-24 16:46:38 +0100 | [diff] [blame] | 65 | help |
| 66 | The MediaTek MT8516 is a ARM64-based SoC with a quad-core Cortex-A35. |
| 67 | including UART, SPI, USB2.0 and OTG, SD and MMC cards, NAND, PWM, |
| 68 | Ethernet, IR TX/RX, I2C, I2S, S/PDIF, and built-in Wi-Fi / Bluetooth combo |
| 69 | chip and several DDR3 and DDR4 options. |
| 70 | |
mingming lee | 13e89d7 | 2019-11-07 19:28:40 +0800 | [diff] [blame] | 71 | config TARGET_MT8518 |
| 72 | bool "MediaTek MT8518 SoC" |
| 73 | select ARM64 |
| 74 | help |
| 75 | The MediaTek MT8518 is a ARM64-based SoC with a quad-core Cortex-A53. |
| 76 | including UART, SPI, USB2.0 and OTG, SD and MMC cards, NAND, PWM, |
| 77 | Ethernet, IR TX/RX, I2C, I2S, S/PDIF, and built-in Wi-Fi / Bluetooth combo |
| 78 | chip and several DDR3 and DDR4 options. |
| 79 | |
Ryder Lee | cbd2fba | 2018-11-15 10:07:52 +0800 | [diff] [blame] | 80 | endchoice |
| 81 | |
Guillaume La Roque | df3ab89 | 2021-09-10 10:21:06 +0200 | [diff] [blame^] | 82 | config SYS_BOARD |
| 83 | string "Board name" |
| 84 | default "mt7622" if TARGET_MT7622 |
| 85 | default "mt7623" if TARGET_MT7623 |
| 86 | default "mt7629" if TARGET_MT7629 |
| 87 | default "mt8183" if TARGET_MT8183 |
| 88 | default "mt8512" if TARGET_MT8512 |
| 89 | default "mt8516" if TARGET_MT8516 |
| 90 | default "mt8518" if TARGET_MT8518 |
| 91 | default "" |
| 92 | help |
| 93 | This option contains information about board name. |
| 94 | Based on this option board/<CONFIG_SYS_VENDOR>/<CONFIG_SYS_BOARD> will |
| 95 | be used. |
| 96 | |
| 97 | config SYS_CONFIG_NAME |
| 98 | string "Board configuration name" |
| 99 | default "mt7622" if TARGET_MT7622 |
| 100 | default "mt7623" if TARGET_MT7623 |
| 101 | default "mt7629" if TARGET_MT7629 |
| 102 | default "mt8183" if TARGET_MT8183 |
| 103 | default "mt8512" if TARGET_MT8512 |
| 104 | default "mt8516" if TARGET_MT8516 |
| 105 | default "mt8518" if TARGET_MT8518 |
| 106 | default "" |
| 107 | help |
| 108 | This option contains information about board configuration name. |
| 109 | Based on this option include/configs/<CONFIG_SYS_CONFIG_NAME>.h header |
| 110 | will be used for board configuration. |
| 111 | |
| 112 | config MTK_BROM_HEADER_INFO |
| 113 | string |
| 114 | default "media=nor" if TARGET_MT8518 || TARGET_MT8512 || TARGET_MT7629 || TARGET_MT7622 |
| 115 | default "media=emmc" if TARGET_MT8516 || TARGET_MT8365 || TARGET_MT8183 |
| 116 | default "lk=1" if TARGET_MT7623 |
Ryder Lee | cbd2fba | 2018-11-15 10:07:52 +0800 | [diff] [blame] | 117 | |
| 118 | endif |