]> git.ipfire.org Git - thirdparty/u-boot.git/blob - arch/mips/Kconfig
Move default y configs out of arch/board Kconfig
[thirdparty/u-boot.git] / arch / mips / Kconfig
1 menu "MIPS architecture"
2 depends on MIPS
3
4 config SYS_ARCH
5 default "mips"
6
7 config SYS_CPU
8 default "mips32" if CPU_MIPS32_R1 || CPU_MIPS32_R2
9 default "mips64" if CPU_MIPS64_R1 || CPU_MIPS64_R2
10
11 choice
12 prompt "Target select"
13 optional
14
15 config TARGET_QEMU_MIPS
16 bool "Support qemu-mips"
17 select SUPPORTS_BIG_ENDIAN
18 select SUPPORTS_LITTLE_ENDIAN
19 select SUPPORTS_CPU_MIPS32_R1
20 select SUPPORTS_CPU_MIPS32_R2
21 select SUPPORTS_CPU_MIPS64_R1
22 select SUPPORTS_CPU_MIPS64_R2
23
24 config TARGET_MALTA
25 bool "Support malta"
26 select SUPPORTS_BIG_ENDIAN
27 select SUPPORTS_LITTLE_ENDIAN
28 select SUPPORTS_CPU_MIPS32_R1
29 select SUPPORTS_CPU_MIPS32_R2
30 select SWAP_IO_SPACE
31
32 config TARGET_VCT
33 bool "Support vct"
34 select SUPPORTS_BIG_ENDIAN
35 select SUPPORTS_CPU_MIPS32_R1
36 select SUPPORTS_CPU_MIPS32_R2
37 select SYS_MIPS_CACHE_INIT_RAM_LOAD
38
39 config TARGET_DBAU1X00
40 bool "Support dbau1x00"
41 select SUPPORTS_BIG_ENDIAN
42 select SUPPORTS_LITTLE_ENDIAN
43 select SUPPORTS_CPU_MIPS32_R1
44 select SUPPORTS_CPU_MIPS32_R2
45 select SYS_MIPS_CACHE_INIT_RAM_LOAD
46
47 config TARGET_PB1X00
48 bool "Support pb1x00"
49 select SUPPORTS_LITTLE_ENDIAN
50 select SUPPORTS_CPU_MIPS32_R1
51 select SUPPORTS_CPU_MIPS32_R2
52 select SYS_MIPS_CACHE_INIT_RAM_LOAD
53
54
55 endchoice
56
57 source "board/dbau1x00/Kconfig"
58 source "board/imgtec/malta/Kconfig"
59 source "board/micronas/vct/Kconfig"
60 source "board/pb1x00/Kconfig"
61 source "board/qemu-mips/Kconfig"
62
63 if MIPS
64
65 choice
66 prompt "Endianness selection"
67 help
68 Some MIPS boards can be configured for either little or big endian
69 byte order. These modes require different U-Boot images. In general there
70 is one preferred byteorder for a particular system but some systems are
71 just as commonly used in the one or the other endianness.
72
73 config SYS_BIG_ENDIAN
74 bool "Big endian"
75 depends on SUPPORTS_BIG_ENDIAN
76
77 config SYS_LITTLE_ENDIAN
78 bool "Little endian"
79 depends on SUPPORTS_LITTLE_ENDIAN
80
81 endchoice
82
83 choice
84 prompt "CPU selection"
85 default CPU_MIPS32_R2
86
87 config CPU_MIPS32_R1
88 bool "MIPS32 Release 1"
89 depends on SUPPORTS_CPU_MIPS32_R1
90 select 32BIT
91 help
92 Choose this option to build an U-Boot for release 1 or later of the
93 MIPS32 architecture.
94
95 config CPU_MIPS32_R2
96 bool "MIPS32 Release 2"
97 depends on SUPPORTS_CPU_MIPS32_R2
98 select 32BIT
99 help
100 Choose this option to build an U-Boot for release 2 or later of the
101 MIPS32 architecture.
102
103 config CPU_MIPS64_R1
104 bool "MIPS64 Release 1"
105 depends on SUPPORTS_CPU_MIPS64_R1
106 select 64BIT
107 help
108 Choose this option to build a kernel for release 1 or later of the
109 MIPS64 architecture.
110
111 config CPU_MIPS64_R2
112 bool "MIPS64 Release 2"
113 depends on SUPPORTS_CPU_MIPS64_R2
114 select 64BIT
115 help
116 Choose this option to build a kernel for release 2 or later of the
117 MIPS64 architecture.
118
119 endchoice
120
121 menu "OS boot interface"
122
123 config MIPS_BOOT_CMDLINE_LEGACY
124 bool "Hand over legacy command line to Linux kernel"
125 default y
126 help
127 Enable this option if you want U-Boot to hand over the Yamon-style
128 command line to the kernel. All bootargs will be prepared as argc/argv
129 compatible list. The argument count (argc) is stored in register $a0.
130 The address of the argument list (argv) is stored in register $a1.
131
132 config MIPS_BOOT_ENV_LEGACY
133 bool "Hand over legacy environment to Linux kernel"
134 default y
135 help
136 Enable this option if you want U-Boot to hand over the Yamon-style
137 environment to the kernel. Information like memory size, initrd
138 address and size will be prepared as zero-terminated key/value list.
139 The address of the enviroment is stored in register $a2.
140
141 config MIPS_BOOT_FDT
142 bool "Hand over a flattened device tree to Linux kernel"
143 default n
144 help
145 Enable this option if you want U-Boot to hand over a flattened
146 device tree to the kernel. According to UHI register $a0 will be set
147 to -2 and the FDT address is stored in $a1.
148
149 endmenu
150
151 config SUPPORTS_BIG_ENDIAN
152 bool
153
154 config SUPPORTS_LITTLE_ENDIAN
155 bool
156
157 config SUPPORTS_CPU_MIPS32_R1
158 bool
159
160 config SUPPORTS_CPU_MIPS32_R2
161 bool
162
163 config SUPPORTS_CPU_MIPS64_R1
164 bool
165
166 config SUPPORTS_CPU_MIPS64_R2
167 bool
168
169 config CPU_MIPS32
170 bool
171 default y if CPU_MIPS32_R1 || CPU_MIPS32_R2
172
173 config CPU_MIPS64
174 bool
175 default y if CPU_MIPS64_R1 || CPU_MIPS64_R2
176
177 config 32BIT
178 bool
179
180 config 64BIT
181 bool
182
183 config SWAP_IO_SPACE
184 bool
185
186 config SYS_MIPS_CACHE_INIT_RAM_LOAD
187 bool
188
189 endif
190
191 endmenu