blob: 4ebcb4b053cb16a08c549309d46ea9440268d7ac [file] [log] [blame]
Stefan Roese4c835a62018-09-05 15:12:35 +02001menu "MediaTek MIPS platforms"
2 depends on ARCH_MT7620
3
4config SYS_MALLOC_F_LEN
5 default 0x1000
6
7config SYS_SOC
8 default "mt7620" if SOC_MT7620
9
10choice
11 prompt "MediaTek MIPS SoC select"
12
13config SOC_MT7620
14 bool "MT7620/8"
15 select MIPS_L1_CACHE_SHIFT_5
16 help
17 This supports MediaTek MIPS MT7620 family.
18
19endchoice
20
21choice
22 prompt "Board select"
23
Stefan Roese88dc4092018-08-16 15:27:31 +020024config BOARD_GARDENA_SMART_GATEWAY_MT7688
25 bool "Gardena Smart Gateway"
26 depends on SOC_MT7620
Stefan Roeseb1f51fc2018-10-09 08:59:13 +020027 select BOARD_LATE_INIT
Stefan Roese88dc4092018-08-16 15:27:31 +020028 select SUPPORTS_BOOT_RAM
29 help
30 Gardena Smart Gateway boards have a MT7688 SoC with 128 MiB of RAM
31 and 8 MiB of flash (SPI NOR) and additional SPI NAND storage.
32
Stefan Roeseb02f76a2018-08-16 15:27:30 +020033config BOARD_LINKIT_SMART_7688
34 bool "LinkIt Smart 7688"
35 depends on SOC_MT7620
36 select SUPPORTS_BOOT_RAM
37 help
38 Seeed LinkIt Smart 7688 boards have a MT7688 SoC with 128 MiB of RAM
39 and 32 MiB of flash (SPI).
40 Between its different peripherals there's an integrated switch with 4
41 ethernet ports, 1 USB port, 1 UART, GPIO buttons and LEDs, and
42 a MT7688 (PCIe).
43
Stefan Roese4c835a62018-09-05 15:12:35 +020044endchoice
45
46choice
47 prompt "Boot mode"
48
49config BOOT_RAM
50 bool "RAM boot"
51 depends on SUPPORTS_BOOT_RAM
52 help
53 This builds an image that is linked to a RAM address. It can be used
54 for booting from CFE via TFTP using an ELF image, but it can also be
55 booted from RAM by other bootloaders using a BIN image.
56
57config BOOT_ROM
58 bool "ROM boot"
59 depends on SUPPORTS_BOOT_RAM
60 help
61 This builds an image that is linked to a ROM address. It can be
62 used as main bootloader image which is programmed onto the onboard
63 flash storage (SPI NOR).
64
65endchoice
66
67choice
68 prompt "DDR2 size"
69
70config ONBOARD_DDR2_SIZE_256MBIT
71 bool "256MBit (32MByte) total size"
72 depends on BOOT_ROM
73 help
74 Use 256MBit (32MByte) of DDR total size
75
76config ONBOARD_DDR2_SIZE_512MBIT
77 bool "512MBit (64MByte) total size"
78 depends on BOOT_ROM
79 help
80 Use 512MBit (64MByte) of DDR total size
81
82config ONBOARD_DDR2_SIZE_1024MBIT
83 bool "1024MBit (128MByte) total size"
84 depends on BOOT_ROM
85 help
86 Use 1024MBit (128MByte) of DDR total size
87
88config ONBOARD_DDR2_SIZE_2048MBIT
89 bool "2048MBit (256MByte) total size"
90 depends on BOOT_ROM
91 help
92 Use 2048MBit (256MByte) of DDR total size
93
94endchoice
95
96choice
97 prompt "DDR2 chip width"
98
99config ONBOARD_DDR2_CHIP_WIDTH_8BIT
100 bool "8bit DDR chip width"
101 depends on BOOT_ROM
102 help
103 Use DDR chips with 8bit width
104
105config ONBOARD_DDR2_CHIP_WIDTH_16BIT
106 bool "16bit DDR chip width"
107 depends on BOOT_ROM
108 help
109 Use DDR chips with 16bit width
110
111endchoice
112
113choice
114 prompt "DDR2 bus width"
115
116config ONBOARD_DDR2_BUS_WIDTH_16BIT
117 bool "16bit DDR bus width"
118 depends on BOOT_ROM
119 help
120 Use 16bit DDR bus width
121
122config ONBOARD_DDR2_BUS_WIDTH_32BIT
123 bool "32bit DDR bus width"
124 depends on BOOT_ROM
125 help
126 Use 32bit DDR bus width
127
128endchoice
129
130config SUPPORTS_BOOT_RAM
131 bool
132
Stefan Roese88dc4092018-08-16 15:27:31 +0200133source "board/gardena/smart-gateway-mt7688/Kconfig"
Stefan Roeseb02f76a2018-08-16 15:27:30 +0200134source "board/seeed/linkit-smart-7688/Kconfig"
135
Stefan Roese4c835a62018-09-05 15:12:35 +0200136endmenu