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