• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1menu "MediaTek MIPS platforms"
2	depends on ARCH_MTMIPS
3
4config SYS_MALLOC_F_LEN
5	default 0x1000
6
7config SYS_SOC
8	default "mt7628" if SOC_MT7628
9
10choice
11	prompt "MediaTek MIPS SoC select"
12
13config SOC_MT7628
14	bool "MT7628"
15	select MIPS_L1_CACHE_SHIFT_5
16	select PINCTRL_MT7628
17	select MTK_SERIAL
18	help
19	  This supports MediaTek MT7628/MT7688.
20
21endchoice
22
23choice
24	prompt "Board select"
25
26config BOARD_GARDENA_SMART_GATEWAY_MT7688
27	bool "GARDENA smart Gateway"
28	depends on SOC_MT7628
29	select BOARD_LATE_INIT
30	select SUPPORTS_BOOT_RAM
31	help
32	  GARDENA smart Gateway boards have a MT7688 SoC with 128 MiB of RAM
33	  and 8 MiB of flash (SPI NOR) and additional SPI NAND storage.
34
35config BOARD_LINKIT_SMART_7688
36	bool "LinkIt Smart 7688"
37	depends on SOC_MT7628
38	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
46endchoice
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
135source "board/gardena/smart-gateway-mt7688/Kconfig"
136source "board/seeed/linkit-smart-7688/Kconfig"
137
138endmenu
139