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 |
| 23 | default 0x9c000000 |
| 24 | |
Stefan Roese | 65da15e | 2018-09-05 15:12:35 +0200 | [diff] [blame] | 25 | choice |
| 26 | prompt "MediaTek MIPS SoC select" |
| 27 | |
developer | 89f051b | 2019-04-30 11:13:58 +0800 | [diff] [blame] | 28 | config SOC_MT7628 |
| 29 | bool "MT7628" |
Stefan Roese | 65da15e | 2018-09-05 15:12:35 +0200 | [diff] [blame] | 30 | select MIPS_L1_CACHE_SHIFT_5 |
developer | 29b37c5 | 2020-04-21 09:28:34 +0200 | [diff] [blame^] | 31 | select MIPS_INIT_STACK_IN_SRAM |
| 32 | select MIPS_SRAM_INIT |
| 33 | select SYS_MIPS_CACHE_INIT_RAM_LOAD |
developer | 591826e | 2019-09-25 17:45:43 +0800 | [diff] [blame] | 34 | select PINCTRL_MT7628 |
| 35 | select MTK_SERIAL |
developer | 3b3015f | 2020-04-21 09:28:30 +0200 | [diff] [blame] | 36 | select SYSRESET_RESETCTL |
Stefan Roese | 65da15e | 2018-09-05 15:12:35 +0200 | [diff] [blame] | 37 | help |
developer | 89f051b | 2019-04-30 11:13:58 +0800 | [diff] [blame] | 38 | This supports MediaTek MT7628/MT7688. |
Stefan Roese | 65da15e | 2018-09-05 15:12:35 +0200 | [diff] [blame] | 39 | |
| 40 | endchoice |
| 41 | |
| 42 | choice |
| 43 | prompt "Board select" |
| 44 | |
Stefan Roese | 115802d | 2018-08-16 15:27:31 +0200 | [diff] [blame] | 45 | config BOARD_GARDENA_SMART_GATEWAY_MT7688 |
Stefan Roese | f08cc08 | 2019-03-15 09:09:34 +0100 | [diff] [blame] | 46 | bool "GARDENA smart Gateway" |
developer | 89f051b | 2019-04-30 11:13:58 +0800 | [diff] [blame] | 47 | depends on SOC_MT7628 |
Stefan Roese | d0fdd67 | 2018-10-09 08:59:13 +0200 | [diff] [blame] | 48 | select BOARD_LATE_INIT |
Stefan Roese | 115802d | 2018-08-16 15:27:31 +0200 | [diff] [blame] | 49 | select SUPPORTS_BOOT_RAM |
| 50 | help |
Stefan Roese | f08cc08 | 2019-03-15 09:09:34 +0100 | [diff] [blame] | 51 | 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] | 52 | and 8 MiB of flash (SPI NOR) and additional SPI NAND storage. |
| 53 | |
Stefan Roese | 2052a93 | 2018-08-16 15:27:30 +0200 | [diff] [blame] | 54 | config BOARD_LINKIT_SMART_7688 |
| 55 | bool "LinkIt Smart 7688" |
developer | 89f051b | 2019-04-30 11:13:58 +0800 | [diff] [blame] | 56 | depends on SOC_MT7628 |
Stefan Roese | 2052a93 | 2018-08-16 15:27:30 +0200 | [diff] [blame] | 57 | select SUPPORTS_BOOT_RAM |
| 58 | help |
| 59 | Seeed LinkIt Smart 7688 boards have a MT7688 SoC with 128 MiB of RAM |
| 60 | and 32 MiB of flash (SPI). |
| 61 | Between its different peripherals there's an integrated switch with 4 |
| 62 | ethernet ports, 1 USB port, 1 UART, GPIO buttons and LEDs, and |
| 63 | a MT7688 (PCIe). |
| 64 | |
Stefan Roese | 65da15e | 2018-09-05 15:12:35 +0200 | [diff] [blame] | 65 | endchoice |
| 66 | |
| 67 | choice |
| 68 | prompt "Boot mode" |
| 69 | |
| 70 | config BOOT_RAM |
| 71 | bool "RAM boot" |
| 72 | depends on SUPPORTS_BOOT_RAM |
| 73 | help |
| 74 | This builds an image that is linked to a RAM address. It can be used |
| 75 | for booting from CFE via TFTP using an ELF image, but it can also be |
| 76 | booted from RAM by other bootloaders using a BIN image. |
| 77 | |
| 78 | config BOOT_ROM |
| 79 | bool "ROM boot" |
| 80 | depends on SUPPORTS_BOOT_RAM |
| 81 | help |
| 82 | This builds an image that is linked to a ROM address. It can be |
| 83 | used as main bootloader image which is programmed onto the onboard |
| 84 | flash storage (SPI NOR). |
| 85 | |
| 86 | endchoice |
| 87 | |
Stefan Roese | 65da15e | 2018-09-05 15:12:35 +0200 | [diff] [blame] | 88 | config SUPPORTS_BOOT_RAM |
| 89 | bool |
| 90 | |
Stefan Roese | 115802d | 2018-08-16 15:27:31 +0200 | [diff] [blame] | 91 | source "board/gardena/smart-gateway-mt7688/Kconfig" |
Stefan Roese | 2052a93 | 2018-08-16 15:27:30 +0200 | [diff] [blame] | 92 | source "board/seeed/linkit-smart-7688/Kconfig" |
| 93 | |
Stefan Roese | 65da15e | 2018-09-05 15:12:35 +0200 | [diff] [blame] | 94 | endmenu |