summaryrefslogtreecommitdiff
path: root/arch/mips/mach-mt7620/Kconfig
blob: 4ebcb4b053cb16a08c549309d46ea9440268d7ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
menu "MediaTek MIPS platforms"
	depends on ARCH_MT7620

config SYS_MALLOC_F_LEN
	default 0x1000

config SYS_SOC
	default "mt7620" if SOC_MT7620

choice
	prompt "MediaTek MIPS SoC select"

config SOC_MT7620
	bool "MT7620/8"
	select MIPS_L1_CACHE_SHIFT_5
	help
	  This supports MediaTek MIPS MT7620 family.

endchoice

choice
	prompt "Board select"

config BOARD_GARDENA_SMART_GATEWAY_MT7688
	bool "Gardena Smart Gateway"
	depends on SOC_MT7620
	select BOARD_LATE_INIT
	select SUPPORTS_BOOT_RAM
	help
	  Gardena Smart Gateway boards have a MT7688 SoC with 128 MiB of RAM
	  and 8 MiB of flash (SPI NOR) and additional SPI NAND storage.

config BOARD_LINKIT_SMART_7688
	bool "LinkIt Smart 7688"
	depends on SOC_MT7620
	select SUPPORTS_BOOT_RAM
	help
	  Seeed LinkIt Smart 7688 boards have a MT7688 SoC with 128 MiB of RAM
	  and 32 MiB of flash (SPI).
	  Between its different peripherals there's an integrated switch with 4
	  ethernet ports, 1 USB port, 1 UART, GPIO buttons and LEDs, and
	  a MT7688 (PCIe).

endchoice

choice
	prompt "Boot mode"

config BOOT_RAM
	bool "RAM boot"
	depends on SUPPORTS_BOOT_RAM
	help
	  This builds an image that is linked to a RAM address. It can be used
	  for booting from CFE via TFTP using an ELF image, but it can also be
	  booted from RAM by other bootloaders using a BIN image.

config BOOT_ROM
	bool "ROM boot"
	depends on SUPPORTS_BOOT_RAM
	help
	  This builds an image that is linked to a ROM address. It can be
	  used as main bootloader image which is programmed onto the onboard
	  flash storage (SPI NOR).

endchoice

choice
	prompt "DDR2 size"

config ONBOARD_DDR2_SIZE_256MBIT
	bool "256MBit (32MByte) total size"
	depends on BOOT_ROM
	help
	  Use 256MBit (32MByte) of DDR total size

config ONBOARD_DDR2_SIZE_512MBIT
	bool "512MBit (64MByte) total size"
	depends on BOOT_ROM
	help
	  Use 512MBit (64MByte) of DDR total size

config ONBOARD_DDR2_SIZE_1024MBIT
	bool "1024MBit (128MByte) total size"
	depends on BOOT_ROM
	help
	  Use 1024MBit (128MByte) of DDR total size

config ONBOARD_DDR2_SIZE_2048MBIT
	bool "2048MBit (256MByte) total size"
	depends on BOOT_ROM
	help
	  Use 2048MBit (256MByte) of DDR total size

endchoice

choice
	prompt "DDR2 chip width"

config ONBOARD_DDR2_CHIP_WIDTH_8BIT
	bool "8bit DDR chip width"
	depends on BOOT_ROM
	help
	  Use DDR chips with 8bit width

config ONBOARD_DDR2_CHIP_WIDTH_16BIT
	bool "16bit DDR chip width"
	depends on BOOT_ROM
	help
	  Use DDR chips with 16bit width

endchoice

choice
	prompt "DDR2 bus width"

config ONBOARD_DDR2_BUS_WIDTH_16BIT
	bool "16bit DDR bus width"
	depends on BOOT_ROM
	help
	  Use 16bit DDR bus width

config ONBOARD_DDR2_BUS_WIDTH_32BIT
	bool "32bit DDR bus width"
	depends on BOOT_ROM
	help
	  Use 32bit DDR bus width

endchoice

config SUPPORTS_BOOT_RAM
	bool

source "board/gardena/smart-gateway-mt7688/Kconfig"
source "board/seeed/linkit-smart-7688/Kconfig"

endmenu