mips: mtmips: select essential drivers in Kconfig
[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 choice
11         prompt "MediaTek MIPS SoC select"
12
13 config 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
21 endchoice
22
23 choice
24         prompt "Board select"
25
26 config 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
35 config 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
46 endchoice
47
48 choice
49         prompt "Boot mode"
50
51 config 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
59 config 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
67 endchoice
68
69 choice
70         prompt "DDR2 size"
71
72 config 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
78 config 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
84 config 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
90 config 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
96 endchoice
97
98 choice
99         prompt "DDR2 chip width"
100
101 config 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
107 config 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
113 endchoice
114
115 choice
116         prompt "DDR2 bus width"
117
118 config 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
124 config 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
130 endchoice
131
132 config SUPPORTS_BOOT_RAM
133         bool
134
135 source "board/gardena/smart-gateway-mt7688/Kconfig"
136 source "board/seeed/linkit-smart-7688/Kconfig"
137
138 endmenu