8cb76c45608bb87058e14f0601b955d2d000a221
[oweals/u-boot.git] / arch / mips / mach-mtmips / Kconfig
1 menu "MediaTek MIPS platforms"
2         depends on ARCH_MTMIPS
3
4 config SYS_MALLOC_F_LEN
5         default 0x1000
6
7 config SYS_SOC
8         default "mt7628" if SOC_MT7628
9
10 config SYS_DCACHE_SIZE
11         default 32768
12
13 config SYS_DCACHE_LINE_SIZE
14         default 32
15
16 config SYS_ICACHE_SIZE
17         default 65536
18
19 config SYS_ICACHE_LINE_SIZE
20         default 32
21
22 choice
23         prompt "MediaTek MIPS SoC select"
24
25 config SOC_MT7628
26         bool "MT7628"
27         select MIPS_L1_CACHE_SHIFT_5
28         select PINCTRL_MT7628
29         select MTK_SERIAL
30         select SYSRESET_RESETCTL
31         help
32           This supports MediaTek MT7628/MT7688.
33
34 endchoice
35
36 choice
37         prompt "Board select"
38
39 config BOARD_GARDENA_SMART_GATEWAY_MT7688
40         bool "GARDENA smart Gateway"
41         depends on SOC_MT7628
42         select BOARD_LATE_INIT
43         select SUPPORTS_BOOT_RAM
44         help
45           GARDENA smart Gateway boards have a MT7688 SoC with 128 MiB of RAM
46           and 8 MiB of flash (SPI NOR) and additional SPI NAND storage.
47
48 config BOARD_LINKIT_SMART_7688
49         bool "LinkIt Smart 7688"
50         depends on SOC_MT7628
51         select SUPPORTS_BOOT_RAM
52         help
53           Seeed LinkIt Smart 7688 boards have a MT7688 SoC with 128 MiB of RAM
54           and 32 MiB of flash (SPI).
55           Between its different peripherals there's an integrated switch with 4
56           ethernet ports, 1 USB port, 1 UART, GPIO buttons and LEDs, and
57           a MT7688 (PCIe).
58
59 endchoice
60
61 choice
62         prompt "Boot mode"
63
64 config BOOT_RAM
65         bool "RAM boot"
66         depends on SUPPORTS_BOOT_RAM
67         help
68           This builds an image that is linked to a RAM address. It can be used
69           for booting from CFE via TFTP using an ELF image, but it can also be
70           booted from RAM by other bootloaders using a BIN image.
71
72 config BOOT_ROM
73         bool "ROM boot"
74         depends on SUPPORTS_BOOT_RAM
75         help
76           This builds an image that is linked to a ROM address. It can be
77           used as main bootloader image which is programmed onto the onboard
78           flash storage (SPI NOR).
79
80 endchoice
81
82 choice
83         prompt "DDR2 size"
84
85 config ONBOARD_DDR2_SIZE_256MBIT
86         bool "256MBit (32MByte) total size"
87         depends on BOOT_ROM
88         help
89           Use 256MBit (32MByte) of DDR total size
90
91 config ONBOARD_DDR2_SIZE_512MBIT
92         bool "512MBit (64MByte) total size"
93         depends on BOOT_ROM
94         help
95           Use 512MBit (64MByte) of DDR total size
96
97 config ONBOARD_DDR2_SIZE_1024MBIT
98         bool "1024MBit (128MByte) total size"
99         depends on BOOT_ROM
100         help
101           Use 1024MBit (128MByte) of DDR total size
102
103 config ONBOARD_DDR2_SIZE_2048MBIT
104         bool "2048MBit (256MByte) total size"
105         depends on BOOT_ROM
106         help
107           Use 2048MBit (256MByte) of DDR total size
108
109 endchoice
110
111 choice
112         prompt "DDR2 chip width"
113
114 config ONBOARD_DDR2_CHIP_WIDTH_8BIT
115         bool "8bit DDR chip width"
116         depends on BOOT_ROM
117         help
118           Use DDR chips with 8bit width
119
120 config ONBOARD_DDR2_CHIP_WIDTH_16BIT
121         bool "16bit DDR chip width"
122         depends on BOOT_ROM
123         help
124           Use DDR chips with 16bit width
125
126 endchoice
127
128 choice
129         prompt "DDR2 bus width"
130
131 config ONBOARD_DDR2_BUS_WIDTH_16BIT
132         bool "16bit DDR bus width"
133         depends on BOOT_ROM
134         help
135           Use 16bit DDR bus width
136
137 config ONBOARD_DDR2_BUS_WIDTH_32BIT
138         bool "32bit DDR bus width"
139         depends on BOOT_ROM
140         help
141           Use 32bit DDR bus width
142
143 endchoice
144
145 config SUPPORTS_BOOT_RAM
146         bool
147
148 source "board/gardena/smart-gateway-mt7688/Kconfig"
149 source "board/seeed/linkit-smart-7688/Kconfig"
150
151 endmenu