blob: 8cb76c45608bb87058e14f0601b955d2d000a221 [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
Stefan Roese4c835a62018-09-05 15:12:35 +020022choice
23 prompt "MediaTek MIPS SoC select"
24
Weijie Gao16b94902019-04-30 11:13:58 +080025config SOC_MT7628
26 bool "MT7628"
Stefan Roese4c835a62018-09-05 15:12:35 +020027 select MIPS_L1_CACHE_SHIFT_5
Weijie Gao3f851c92019-09-25 17:45:43 +080028 select PINCTRL_MT7628
29 select MTK_SERIAL
Weijie Gaoc366a452020-04-21 09:28:30 +020030 select SYSRESET_RESETCTL
Stefan Roese4c835a62018-09-05 15:12:35 +020031 help
Weijie Gao16b94902019-04-30 11:13:58 +080032 This supports MediaTek MT7628/MT7688.
Stefan Roese4c835a62018-09-05 15:12:35 +020033
34endchoice
35
36choice
37 prompt "Board select"
38
Stefan Roese88dc4092018-08-16 15:27:31 +020039config BOARD_GARDENA_SMART_GATEWAY_MT7688
Stefan Roeseeacbdd62019-03-15 09:09:34 +010040 bool "GARDENA smart Gateway"
Weijie Gao16b94902019-04-30 11:13:58 +080041 depends on SOC_MT7628
Stefan Roeseb1f51fc2018-10-09 08:59:13 +020042 select BOARD_LATE_INIT
Stefan Roese88dc4092018-08-16 15:27:31 +020043 select SUPPORTS_BOOT_RAM
44 help
Stefan Roeseeacbdd62019-03-15 09:09:34 +010045 GARDENA smart Gateway boards have a MT7688 SoC with 128 MiB of RAM
Stefan Roese88dc4092018-08-16 15:27:31 +020046 and 8 MiB of flash (SPI NOR) and additional SPI NAND storage.
47
Stefan Roeseb02f76a2018-08-16 15:27:30 +020048config BOARD_LINKIT_SMART_7688
49 bool "LinkIt Smart 7688"
Weijie Gao16b94902019-04-30 11:13:58 +080050 depends on SOC_MT7628
Stefan Roeseb02f76a2018-08-16 15:27:30 +020051 select SUPPORTS_BOOT_RAM
52 help
53 Seeed LinkIt Smart 7688 boards have a MT7688 SoC with 128 MiB of RAM
54 and 32 MiB of flash (SPI).
55 Between its different peripherals there's an integrated switch with 4
56 ethernet ports, 1 USB port, 1 UART, GPIO buttons and LEDs, and
57 a MT7688 (PCIe).
58
Stefan Roese4c835a62018-09-05 15:12:35 +020059endchoice
60
61choice
62 prompt "Boot mode"
63
64config BOOT_RAM
65 bool "RAM boot"
66 depends on SUPPORTS_BOOT_RAM
67 help
68 This builds an image that is linked to a RAM address. It can be used
69 for booting from CFE via TFTP using an ELF image, but it can also be
70 booted from RAM by other bootloaders using a BIN image.
71
72config BOOT_ROM
73 bool "ROM boot"
74 depends on SUPPORTS_BOOT_RAM
75 help
76 This builds an image that is linked to a ROM address. It can be
77 used as main bootloader image which is programmed onto the onboard
78 flash storage (SPI NOR).
79
80endchoice
81
82choice
83 prompt "DDR2 size"
84
85config ONBOARD_DDR2_SIZE_256MBIT
86 bool "256MBit (32MByte) total size"
87 depends on BOOT_ROM
88 help
89 Use 256MBit (32MByte) of DDR total size
90
91config ONBOARD_DDR2_SIZE_512MBIT
92 bool "512MBit (64MByte) total size"
93 depends on BOOT_ROM
94 help
95 Use 512MBit (64MByte) of DDR total size
96
97config ONBOARD_DDR2_SIZE_1024MBIT
98 bool "1024MBit (128MByte) total size"
99 depends on BOOT_ROM
100 help
101 Use 1024MBit (128MByte) of DDR total size
102
103config ONBOARD_DDR2_SIZE_2048MBIT
104 bool "2048MBit (256MByte) total size"
105 depends on BOOT_ROM
106 help
107 Use 2048MBit (256MByte) of DDR total size
108
109endchoice
110
111choice
112 prompt "DDR2 chip width"
113
114config ONBOARD_DDR2_CHIP_WIDTH_8BIT
115 bool "8bit DDR chip width"
116 depends on BOOT_ROM
117 help
118 Use DDR chips with 8bit width
119
120config ONBOARD_DDR2_CHIP_WIDTH_16BIT
121 bool "16bit DDR chip width"
122 depends on BOOT_ROM
123 help
124 Use DDR chips with 16bit width
125
126endchoice
127
128choice
129 prompt "DDR2 bus width"
130
131config ONBOARD_DDR2_BUS_WIDTH_16BIT
132 bool "16bit DDR bus width"
133 depends on BOOT_ROM
134 help
135 Use 16bit DDR bus width
136
137config ONBOARD_DDR2_BUS_WIDTH_32BIT
138 bool "32bit DDR bus width"
139 depends on BOOT_ROM
140 help
141 Use 32bit DDR bus width
142
143endchoice
144
145config SUPPORTS_BOOT_RAM
146 bool
147
Stefan Roese88dc4092018-08-16 15:27:31 +0200148source "board/gardena/smart-gateway-mt7688/Kconfig"
Stefan Roeseb02f76a2018-08-16 15:27:30 +0200149source "board/seeed/linkit-smart-7688/Kconfig"
150
Stefan Roese4c835a62018-09-05 15:12:35 +0200151endmenu