xref: /openbmc/u-boot/arch/mips/mach-mt7620/Kconfig (revision 0f347a00)
1menu "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
24config BOARD_GARDENA_SMART_GATEWAY_MT7688
25	bool "Gardena Smart Gateway"
26	depends on SOC_MT7620
27	select SUPPORTS_BOOT_RAM
28	help
29	  Gardena Smart Gateway boards have a MT7688 SoC with 128 MiB of RAM
30	  and 8 MiB of flash (SPI NOR) and additional SPI NAND storage.
31
32config BOARD_LINKIT_SMART_7688
33	bool "LinkIt Smart 7688"
34	depends on SOC_MT7620
35	select SUPPORTS_BOOT_RAM
36	help
37	  Seeed LinkIt Smart 7688 boards have a MT7688 SoC with 128 MiB of RAM
38	  and 32 MiB of flash (SPI).
39	  Between its different peripherals there's an integrated switch with 4
40	  ethernet ports, 1 USB port, 1 UART, GPIO buttons and LEDs, and
41	  a MT7688 (PCIe).
42
43endchoice
44
45choice
46	prompt "Boot mode"
47
48config BOOT_RAM
49	bool "RAM boot"
50	depends on SUPPORTS_BOOT_RAM
51	help
52	  This builds an image that is linked to a RAM address. It can be used
53	  for booting from CFE via TFTP using an ELF image, but it can also be
54	  booted from RAM by other bootloaders using a BIN image.
55
56config BOOT_ROM
57	bool "ROM boot"
58	depends on SUPPORTS_BOOT_RAM
59	help
60	  This builds an image that is linked to a ROM address. It can be
61	  used as main bootloader image which is programmed onto the onboard
62	  flash storage (SPI NOR).
63
64endchoice
65
66choice
67	prompt "DDR2 size"
68
69config ONBOARD_DDR2_SIZE_256MBIT
70	bool "256MBit (32MByte) total size"
71	depends on BOOT_ROM
72	help
73	  Use 256MBit (32MByte) of DDR total size
74
75config ONBOARD_DDR2_SIZE_512MBIT
76	bool "512MBit (64MByte) total size"
77	depends on BOOT_ROM
78	help
79	  Use 512MBit (64MByte) of DDR total size
80
81config ONBOARD_DDR2_SIZE_1024MBIT
82	bool "1024MBit (128MByte) total size"
83	depends on BOOT_ROM
84	help
85	  Use 1024MBit (128MByte) of DDR total size
86
87config ONBOARD_DDR2_SIZE_2048MBIT
88	bool "2048MBit (256MByte) total size"
89	depends on BOOT_ROM
90	help
91	  Use 2048MBit (256MByte) of DDR total size
92
93endchoice
94
95choice
96	prompt "DDR2 chip width"
97
98config ONBOARD_DDR2_CHIP_WIDTH_8BIT
99	bool "8bit DDR chip width"
100	depends on BOOT_ROM
101	help
102	  Use DDR chips with 8bit width
103
104config ONBOARD_DDR2_CHIP_WIDTH_16BIT
105	bool "16bit DDR chip width"
106	depends on BOOT_ROM
107	help
108	  Use DDR chips with 16bit width
109
110endchoice
111
112choice
113	prompt "DDR2 bus width"
114
115config ONBOARD_DDR2_BUS_WIDTH_16BIT
116	bool "16bit DDR bus width"
117	depends on BOOT_ROM
118	help
119	  Use 16bit DDR bus width
120
121config ONBOARD_DDR2_BUS_WIDTH_32BIT
122	bool "32bit DDR bus width"
123	depends on BOOT_ROM
124	help
125	  Use 32bit DDR bus width
126
127endchoice
128
129config SUPPORTS_BOOT_RAM
130	bool
131
132source "board/gardena/smart-gateway-mt7688/Kconfig"
133source "board/seeed/linkit-smart-7688/Kconfig"
134
135endmenu
136