Stefan Roese | 65da15e | 2018-09-05 15:12:35 +0200 | [diff] [blame] | 1 | menu "MediaTek MIPS platforms" |
developer | 89f051b | 2019-04-30 11:13:58 +0800 | [diff] [blame] | 2 | depends on ARCH_MTMIPS |
Stefan Roese | 65da15e | 2018-09-05 15:12:35 +0200 | [diff] [blame] | 3 | |
| 4 | config SYS_MALLOC_F_LEN |
| 5 | default 0x1000 |
| 6 | |
| 7 | config SYS_SOC |
developer | 89f051b | 2019-04-30 11:13:58 +0800 | [diff] [blame] | 8 | default "mt7628" if SOC_MT7628 |
Stefan Roese | 65da15e | 2018-09-05 15:12:35 +0200 | [diff] [blame] | 9 | |
developer | 26f763e | 2020-04-21 09:28:26 +0200 | [diff] [blame] | 10 | config SYS_DCACHE_SIZE |
| 11 | default 32768 |
| 12 | |
| 13 | config SYS_DCACHE_LINE_SIZE |
| 14 | default 32 |
| 15 | |
| 16 | config SYS_ICACHE_SIZE |
| 17 | default 65536 |
| 18 | |
| 19 | config SYS_ICACHE_LINE_SIZE |
| 20 | default 32 |
| 21 | |
developer | 29b37c5 | 2020-04-21 09:28:34 +0200 | [diff] [blame] | 22 | config SYS_TEXT_BASE |
developer | 19d572e | 2020-04-21 09:28:47 +0200 | [diff] [blame] | 23 | default 0x9c000000 if !SPL |
| 24 | default 0x80200000 if SPL |
| 25 | |
| 26 | config SPL_TEXT_BASE |
developer | 29b37c5 | 2020-04-21 09:28:34 +0200 | [diff] [blame] | 27 | default 0x9c000000 |
| 28 | |
developer | 19d572e | 2020-04-21 09:28:47 +0200 | [diff] [blame] | 29 | config SPL_PAYLOAD |
| 30 | default "u-boot-lzma.img" if SPL_LZMA |
| 31 | |
| 32 | config BUILD_TARGET |
| 33 | default "u-boot-with-spl.bin" if SPL |
| 34 | |
Stefan Roese | 65da15e | 2018-09-05 15:12:35 +0200 | [diff] [blame] | 35 | choice |
| 36 | prompt "MediaTek MIPS SoC select" |
| 37 | |
developer | 89f051b | 2019-04-30 11:13:58 +0800 | [diff] [blame] | 38 | config SOC_MT7628 |
| 39 | bool "MT7628" |
Stefan Roese | 65da15e | 2018-09-05 15:12:35 +0200 | [diff] [blame] | 40 | select MIPS_L1_CACHE_SHIFT_5 |
developer | 29b37c5 | 2020-04-21 09:28:34 +0200 | [diff] [blame] | 41 | select MIPS_INIT_STACK_IN_SRAM |
| 42 | select MIPS_SRAM_INIT |
| 43 | select SYS_MIPS_CACHE_INIT_RAM_LOAD |
developer | 591826e | 2019-09-25 17:45:43 +0800 | [diff] [blame] | 44 | select PINCTRL_MT7628 |
| 45 | select MTK_SERIAL |
developer | 3b3015f | 2020-04-21 09:28:30 +0200 | [diff] [blame] | 46 | select SYSRESET_RESETCTL |
developer | 19d572e | 2020-04-21 09:28:47 +0200 | [diff] [blame] | 47 | select SPL_SEPARATE_BSS if SPL |
| 48 | select SPL_INIT_STACK_WITHOUT_MALLOC_F if SPL |
| 49 | select SPL_LOADER_SUPPORT if SPL |
| 50 | select SPL_OF_CONTROL if SPL_DM |
| 51 | select SPL_SIMPLE_BUS if SPL_DM |
| 52 | select SPL_DM_SERIAL if SPL_DM |
| 53 | select SPL_CLK if SPL_DM && SPL_SERIAL_SUPPORT |
| 54 | select SPL_SYSRESET if SPL_DM |
| 55 | select SPL_OF_LIBFDT if SPL_OF_CONTROL |
Stefan Roese | 65da15e | 2018-09-05 15:12:35 +0200 | [diff] [blame] | 56 | help |
developer | 89f051b | 2019-04-30 11:13:58 +0800 | [diff] [blame] | 57 | This supports MediaTek MT7628/MT7688. |
Stefan Roese | 65da15e | 2018-09-05 15:12:35 +0200 | [diff] [blame] | 58 | |
| 59 | endchoice |
| 60 | |
| 61 | choice |
| 62 | prompt "Board select" |
| 63 | |
Stefan Roese | 115802d | 2018-08-16 15:27:31 +0200 | [diff] [blame] | 64 | config BOARD_GARDENA_SMART_GATEWAY_MT7688 |
Stefan Roese | f08cc08 | 2019-03-15 09:09:34 +0100 | [diff] [blame] | 65 | bool "GARDENA smart Gateway" |
developer | 89f051b | 2019-04-30 11:13:58 +0800 | [diff] [blame] | 66 | depends on SOC_MT7628 |
Stefan Roese | d0fdd67 | 2018-10-09 08:59:13 +0200 | [diff] [blame] | 67 | select BOARD_LATE_INIT |
Stefan Roese | 115802d | 2018-08-16 15:27:31 +0200 | [diff] [blame] | 68 | help |
Stefan Roese | f08cc08 | 2019-03-15 09:09:34 +0100 | [diff] [blame] | 69 | GARDENA smart Gateway boards have a MT7688 SoC with 128 MiB of RAM |
Stefan Roese | 115802d | 2018-08-16 15:27:31 +0200 | [diff] [blame] | 70 | and 8 MiB of flash (SPI NOR) and additional SPI NAND storage. |
| 71 | |
Stefan Roese | 2052a93 | 2018-08-16 15:27:30 +0200 | [diff] [blame] | 72 | config BOARD_LINKIT_SMART_7688 |
| 73 | bool "LinkIt Smart 7688" |
developer | 89f051b | 2019-04-30 11:13:58 +0800 | [diff] [blame] | 74 | depends on SOC_MT7628 |
Stefan Roese | 2052a93 | 2018-08-16 15:27:30 +0200 | [diff] [blame] | 75 | help |
| 76 | Seeed LinkIt Smart 7688 boards have a MT7688 SoC with 128 MiB of RAM |
| 77 | and 32 MiB of flash (SPI). |
| 78 | Between its different peripherals there's an integrated switch with 4 |
| 79 | ethernet ports, 1 USB port, 1 UART, GPIO buttons and LEDs, and |
| 80 | a MT7688 (PCIe). |
| 81 | |
developer | 7305b4c | 2020-04-21 09:28:49 +0200 | [diff] [blame] | 82 | config BOARD_MT7628_RFB |
| 83 | bool "MediaTek MT7628 RFB" |
| 84 | depends on SOC_MT7628 |
| 85 | help |
| 86 | The reference design of MT7628. The board has 128 MiB DDR2, 8 MiB |
| 87 | SPI-NOR flash, 1 built-in switch with 5 ports, 1 UART, 1 USB host, |
| 88 | 1 SDXC, 1 PCIe socket and JTAG pins. |
| 89 | |
Mauro Condarelli | 83ae2ce | 2020-02-18 09:34:48 +0100 | [diff] [blame] | 90 | config BOARD_VOCORE2 |
| 91 | bool "VoCore2" |
| 92 | depends on SOC_MT7628 |
| 93 | select SPL_SERIAL_SUPPORT |
| 94 | select SPL_UART2_SPIS_PINMUX |
| 95 | help |
| 96 | VoCore VoCore2 board has a MT7628 SoC with 128 MiB of RAM |
| 97 | and 16 MiB of flash (SPI). |
| 98 | |
Stefan Roese | 65da15e | 2018-09-05 15:12:35 +0200 | [diff] [blame] | 99 | endchoice |
| 100 | |
developer | 19d572e | 2020-04-21 09:28:47 +0200 | [diff] [blame] | 101 | config SPL_UART2_SPIS_PINMUX |
| 102 | bool "Use alternative pinmux for UART2 in SPL stage" |
| 103 | depends on SPL_SERIAL_SUPPORT |
| 104 | default n |
| 105 | help |
| 106 | Select this if the UART2 of your board is connected to GPIO 16/17 |
| 107 | (shared with SPIS) rather than the usual GPIO 20/21. |
| 108 | |
Stefan Roese | 115802d | 2018-08-16 15:27:31 +0200 | [diff] [blame] | 109 | source "board/gardena/smart-gateway-mt7688/Kconfig" |
developer | 7305b4c | 2020-04-21 09:28:49 +0200 | [diff] [blame] | 110 | source "board/mediatek/mt7628/Kconfig" |
Stefan Roese | 2052a93 | 2018-08-16 15:27:30 +0200 | [diff] [blame] | 111 | source "board/seeed/linkit-smart-7688/Kconfig" |
Mauro Condarelli | 83ae2ce | 2020-02-18 09:34:48 +0100 | [diff] [blame] | 112 | source "board/vocore/vocore2/Kconfig" |
Stefan Roese | 2052a93 | 2018-08-16 15:27:30 +0200 | [diff] [blame] | 113 | |
Stefan Roese | 65da15e | 2018-09-05 15:12:35 +0200 | [diff] [blame] | 114 | endmenu |