blob: 3f25de8b8582959f964933bd749b9da25548ebbd [file] [log] [blame]
Stefan Roese4c835a62018-09-05 15:12:35 +02001menu "MediaTek MIPS platforms"
Weijie Gao16b94902019-04-30 11:13:58 +08002 depends on ARCH_MTMIPS
Stefan Roese4c835a62018-09-05 15:12:35 +02003
4config SYS_MALLOC_F_LEN
5 default 0x1000
6
7config SYS_SOC
Weijie Gao16b94902019-04-30 11:13:58 +08008 default "mt7628" if SOC_MT7628
Stefan Roese4c835a62018-09-05 15:12:35 +02009
Weijie Gao79765202020-04-21 09:28:26 +020010config SYS_DCACHE_SIZE
11 default 32768
12
13config SYS_DCACHE_LINE_SIZE
14 default 32
15
16config SYS_ICACHE_SIZE
17 default 65536
18
19config SYS_ICACHE_LINE_SIZE
20 default 32
21
Weijie Gao02cd4492020-04-21 09:28:34 +020022config SYS_TEXT_BASE
23 default 0x9c000000
24
Stefan Roese4c835a62018-09-05 15:12:35 +020025choice
26 prompt "MediaTek MIPS SoC select"
27
Weijie Gao16b94902019-04-30 11:13:58 +080028config SOC_MT7628
29 bool "MT7628"
Stefan Roese4c835a62018-09-05 15:12:35 +020030 select MIPS_L1_CACHE_SHIFT_5
Weijie Gao02cd4492020-04-21 09:28:34 +020031 select MIPS_INIT_STACK_IN_SRAM
32 select MIPS_SRAM_INIT
33 select SYS_MIPS_CACHE_INIT_RAM_LOAD
Weijie Gao3f851c92019-09-25 17:45:43 +080034 select PINCTRL_MT7628
35 select MTK_SERIAL
Weijie Gaoc366a452020-04-21 09:28:30 +020036 select SYSRESET_RESETCTL
Stefan Roese4c835a62018-09-05 15:12:35 +020037 help
Weijie Gao16b94902019-04-30 11:13:58 +080038 This supports MediaTek MT7628/MT7688.
Stefan Roese4c835a62018-09-05 15:12:35 +020039
40endchoice
41
42choice
43 prompt "Board select"
44
Stefan Roese88dc4092018-08-16 15:27:31 +020045config BOARD_GARDENA_SMART_GATEWAY_MT7688
Stefan Roeseeacbdd62019-03-15 09:09:34 +010046 bool "GARDENA smart Gateway"
Weijie Gao16b94902019-04-30 11:13:58 +080047 depends on SOC_MT7628
Stefan Roeseb1f51fc2018-10-09 08:59:13 +020048 select BOARD_LATE_INIT
Stefan Roese88dc4092018-08-16 15:27:31 +020049 select SUPPORTS_BOOT_RAM
50 help
Stefan Roeseeacbdd62019-03-15 09:09:34 +010051 GARDENA smart Gateway boards have a MT7688 SoC with 128 MiB of RAM
Stefan Roese88dc4092018-08-16 15:27:31 +020052 and 8 MiB of flash (SPI NOR) and additional SPI NAND storage.
53
Stefan Roeseb02f76a2018-08-16 15:27:30 +020054config BOARD_LINKIT_SMART_7688
55 bool "LinkIt Smart 7688"
Weijie Gao16b94902019-04-30 11:13:58 +080056 depends on SOC_MT7628
Stefan Roeseb02f76a2018-08-16 15:27:30 +020057 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 Roese4c835a62018-09-05 15:12:35 +020065endchoice
66
67choice
68 prompt "Boot mode"
69
70config 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
78config 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
86endchoice
87
Stefan Roese4c835a62018-09-05 15:12:35 +020088config SUPPORTS_BOOT_RAM
89 bool
90
Stefan Roese88dc4092018-08-16 15:27:31 +020091source "board/gardena/smart-gateway-mt7688/Kconfig"
Stefan Roeseb02f76a2018-08-16 15:27:30 +020092source "board/seeed/linkit-smart-7688/Kconfig"
93
Stefan Roese4c835a62018-09-05 15:12:35 +020094endmenu