blob: bc4283d2f13b551cb747d796794286eabbd83027 [file] [log] [blame]
Masahiro Yamadad3ae6782014-07-30 14:08:14 +09001menu "MIPS architecture"
2 depends on MIPS
3
4config SYS_ARCH
Masahiro Yamadad3ae6782014-07-30 14:08:14 +09005 default "mips"
6
Daniel Schwierzeck99e7af22014-10-26 14:14:07 +01007config SYS_CPU
8 default "mips32" if CPU_MIPS32_R1 || CPU_MIPS32_R2
9 default "mips64" if CPU_MIPS64_R1 || CPU_MIPS64_R2
10
Masahiro Yamadaee2e54f2014-10-24 01:30:46 +090011config USE_PRIVATE_LIBGCC
12 default y
13
Masahiro Yamadad3ae6782014-07-30 14:08:14 +090014choice
15 prompt "Target select"
16
17config TARGET_QEMU_MIPS
18 bool "Support qemu-mips"
Daniel Schwierzecka4c242b2014-10-26 14:14:07 +010019 select SUPPORTS_BIG_ENDIAN
20 select SUPPORTS_LITTLE_ENDIAN
Daniel Schwierzeck256034d2014-10-26 14:14:07 +010021 select SUPPORTS_CPU_MIPS32_R1
22 select SUPPORTS_CPU_MIPS32_R2
Daniel Schwierzeck94384d12014-10-26 14:14:07 +010023 select SUPPORTS_CPU_MIPS64_R1
24 select SUPPORTS_CPU_MIPS64_R2
Masahiro Yamadad3ae6782014-07-30 14:08:14 +090025
26config TARGET_MALTA
27 bool "Support malta"
Daniel Schwierzecka4c242b2014-10-26 14:14:07 +010028 select SUPPORTS_BIG_ENDIAN
29 select SUPPORTS_LITTLE_ENDIAN
Daniel Schwierzeck256034d2014-10-26 14:14:07 +010030 select SUPPORTS_CPU_MIPS32_R1
31 select SUPPORTS_CPU_MIPS32_R2
Daniel Schwierzeck7dca6862015-01-18 22:00:18 +010032 select SWAP_IO_SPACE
Masahiro Yamadad3ae6782014-07-30 14:08:14 +090033
34config TARGET_VCT
35 bool "Support vct"
Daniel Schwierzecka4c242b2014-10-26 14:14:07 +010036 select SUPPORTS_BIG_ENDIAN
Daniel Schwierzeck256034d2014-10-26 14:14:07 +010037 select SUPPORTS_CPU_MIPS32_R1
38 select SUPPORTS_CPU_MIPS32_R2
Paul Burton6832bdc2015-01-29 01:28:02 +000039 select SYS_MIPS_CACHE_INIT_RAM_LOAD
Masahiro Yamadad3ae6782014-07-30 14:08:14 +090040
41config TARGET_DBAU1X00
42 bool "Support dbau1x00"
Daniel Schwierzecka4c242b2014-10-26 14:14:07 +010043 select SUPPORTS_BIG_ENDIAN
44 select SUPPORTS_LITTLE_ENDIAN
Daniel Schwierzeck256034d2014-10-26 14:14:07 +010045 select SUPPORTS_CPU_MIPS32_R1
46 select SUPPORTS_CPU_MIPS32_R2
Paul Burton6832bdc2015-01-29 01:28:02 +000047 select SYS_MIPS_CACHE_INIT_RAM_LOAD
Masahiro Yamadad3ae6782014-07-30 14:08:14 +090048
49config TARGET_PB1X00
50 bool "Support pb1x00"
Daniel Schwierzecka4c242b2014-10-26 14:14:07 +010051 select SUPPORTS_LITTLE_ENDIAN
Daniel Schwierzeck256034d2014-10-26 14:14:07 +010052 select SUPPORTS_CPU_MIPS32_R1
53 select SUPPORTS_CPU_MIPS32_R2
Paul Burton6832bdc2015-01-29 01:28:02 +000054 select SYS_MIPS_CACHE_INIT_RAM_LOAD
Masahiro Yamadad3ae6782014-07-30 14:08:14 +090055
Masahiro Yamadad3ae6782014-07-30 14:08:14 +090056
57endchoice
58
59source "board/dbau1x00/Kconfig"
60source "board/imgtec/malta/Kconfig"
61source "board/micronas/vct/Kconfig"
62source "board/pb1x00/Kconfig"
63source "board/qemu-mips/Kconfig"
64
Daniel Schwierzecka4c242b2014-10-26 14:14:07 +010065if MIPS
66
67choice
68 prompt "Endianness selection"
69 help
70 Some MIPS boards can be configured for either little or big endian
71 byte order. These modes require different U-Boot images. In general there
72 is one preferred byteorder for a particular system but some systems are
73 just as commonly used in the one or the other endianness.
74
75config SYS_BIG_ENDIAN
76 bool "Big endian"
77 depends on SUPPORTS_BIG_ENDIAN
78
79config SYS_LITTLE_ENDIAN
80 bool "Little endian"
81 depends on SUPPORTS_LITTLE_ENDIAN
82
83endchoice
84
Daniel Schwierzeck256034d2014-10-26 14:14:07 +010085choice
86 prompt "CPU selection"
87 default CPU_MIPS32_R2
88
89config CPU_MIPS32_R1
90 bool "MIPS32 Release 1"
91 depends on SUPPORTS_CPU_MIPS32_R1
92 select 32BIT
93 help
94 Choose this option to build an U-Boot for release 1 or later of the
95 MIPS32 architecture.
96
97config CPU_MIPS32_R2
98 bool "MIPS32 Release 2"
99 depends on SUPPORTS_CPU_MIPS32_R2
100 select 32BIT
101 help
102 Choose this option to build an U-Boot for release 2 or later of the
103 MIPS32 architecture.
104
105config CPU_MIPS64_R1
106 bool "MIPS64 Release 1"
107 depends on SUPPORTS_CPU_MIPS64_R1
108 select 64BIT
109 help
110 Choose this option to build a kernel for release 1 or later of the
111 MIPS64 architecture.
112
113config CPU_MIPS64_R2
114 bool "MIPS64 Release 2"
115 depends on SUPPORTS_CPU_MIPS64_R2
116 select 64BIT
117 help
118 Choose this option to build a kernel for release 2 or later of the
119 MIPS64 architecture.
120
121endchoice
122
Daniel Schwierzeckf9749fa2015-01-14 21:44:13 +0100123menu "OS boot interface"
124
125config MIPS_BOOT_CMDLINE_LEGACY
126 bool "Hand over legacy command line to Linux kernel"
127 default y
128 help
129 Enable this option if you want U-Boot to hand over the Yamon-style
130 command line to the kernel. All bootargs will be prepared as argc/argv
131 compatible list. The argument count (argc) is stored in register $a0.
132 The address of the argument list (argv) is stored in register $a1.
133
Daniel Schwierzeckc07dc602015-01-14 21:44:13 +0100134config MIPS_BOOT_ENV_LEGACY
135 bool "Hand over legacy environment to Linux kernel"
136 default y
137 help
138 Enable this option if you want U-Boot to hand over the Yamon-style
139 environment to the kernel. Information like memory size, initrd
140 address and size will be prepared as zero-terminated key/value list.
141 The address of the enviroment is stored in register $a2.
142
Daniel Schwierzeck8d7ff4d2015-01-14 21:44:13 +0100143config MIPS_BOOT_FDT
144 bool "Hand over a flattened device tree to Linux kernel (INCOMPLETE)"
145 default n
146 help
147 Enable this option if you want U-Boot to hand over a flattened
148 device tree to the kernel.
149
150 Note: the final hand over to the kernel is not yet implemented. After
151 the community agreed on the MIPS boot interface for device trees,
152 the corresponding code will be added.
153
Daniel Schwierzeckf9749fa2015-01-14 21:44:13 +0100154endmenu
155
Daniel Schwierzecka4c242b2014-10-26 14:14:07 +0100156config SUPPORTS_BIG_ENDIAN
157 bool
158
159config SUPPORTS_LITTLE_ENDIAN
160 bool
161
Daniel Schwierzeck256034d2014-10-26 14:14:07 +0100162config SUPPORTS_CPU_MIPS32_R1
163 bool
164
165config SUPPORTS_CPU_MIPS32_R2
166 bool
167
168config SUPPORTS_CPU_MIPS64_R1
169 bool
170
171config SUPPORTS_CPU_MIPS64_R2
172 bool
173
Daniel Schwierzeckdfbad0f2015-01-18 21:59:35 +0100174config CPU_MIPS32
175 bool
176 default y if CPU_MIPS32_R1 || CPU_MIPS32_R2
177
178config CPU_MIPS64
179 bool
180 default y if CPU_MIPS64_R1 || CPU_MIPS64_R2
181
Daniel Schwierzeck256034d2014-10-26 14:14:07 +0100182config 32BIT
183 bool
184
185config 64BIT
186 bool
187
Daniel Schwierzeck7dca6862015-01-18 22:00:18 +0100188config SWAP_IO_SPACE
189 bool
190
Paul Burton6832bdc2015-01-29 01:28:02 +0000191config SYS_MIPS_CACHE_INIT_RAM_LOAD
192 bool
193
Daniel Schwierzecka4c242b2014-10-26 14:14:07 +0100194endif
195
Masahiro Yamadad3ae6782014-07-30 14:08:14 +0900196endmenu