blob: 7f7e258a801eaa9e4bff89a23df60e7ae3a26793 [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 Yamadad3ae6782014-07-30 14:08:14 +090011choice
12 prompt "Target select"
Joe Hershbergerf0699602015-05-12 14:46:23 -050013 optional
Masahiro Yamadad3ae6782014-07-30 14:08:14 +090014
15config TARGET_QEMU_MIPS
16 bool "Support qemu-mips"
Daniel Schwierzecka4c242b2014-10-26 14:14:07 +010017 select SUPPORTS_BIG_ENDIAN
18 select SUPPORTS_LITTLE_ENDIAN
Daniel Schwierzeck256034d2014-10-26 14:14:07 +010019 select SUPPORTS_CPU_MIPS32_R1
20 select SUPPORTS_CPU_MIPS32_R2
Daniel Schwierzeck94384d12014-10-26 14:14:07 +010021 select SUPPORTS_CPU_MIPS64_R1
22 select SUPPORTS_CPU_MIPS64_R2
Masahiro Yamadad3ae6782014-07-30 14:08:14 +090023
24config TARGET_MALTA
25 bool "Support malta"
Daniel Schwierzecka4c242b2014-10-26 14:14:07 +010026 select SUPPORTS_BIG_ENDIAN
27 select SUPPORTS_LITTLE_ENDIAN
Daniel Schwierzeck256034d2014-10-26 14:14:07 +010028 select SUPPORTS_CPU_MIPS32_R1
29 select SUPPORTS_CPU_MIPS32_R2
Daniel Schwierzeck7dca6862015-01-18 22:00:18 +010030 select SWAP_IO_SPACE
Masahiro Yamadad3ae6782014-07-30 14:08:14 +090031
32config TARGET_VCT
33 bool "Support vct"
Daniel Schwierzecka4c242b2014-10-26 14:14:07 +010034 select SUPPORTS_BIG_ENDIAN
Daniel Schwierzeck256034d2014-10-26 14:14:07 +010035 select SUPPORTS_CPU_MIPS32_R1
36 select SUPPORTS_CPU_MIPS32_R2
Paul Burton6832bdc2015-01-29 01:28:02 +000037 select SYS_MIPS_CACHE_INIT_RAM_LOAD
Masahiro Yamadad3ae6782014-07-30 14:08:14 +090038
39config TARGET_DBAU1X00
40 bool "Support dbau1x00"
Daniel Schwierzecka4c242b2014-10-26 14:14:07 +010041 select SUPPORTS_BIG_ENDIAN
42 select SUPPORTS_LITTLE_ENDIAN
Daniel Schwierzeck256034d2014-10-26 14:14:07 +010043 select SUPPORTS_CPU_MIPS32_R1
44 select SUPPORTS_CPU_MIPS32_R2
Paul Burton6832bdc2015-01-29 01:28:02 +000045 select SYS_MIPS_CACHE_INIT_RAM_LOAD
Masahiro Yamadad3ae6782014-07-30 14:08:14 +090046
47config TARGET_PB1X00
48 bool "Support pb1x00"
Daniel Schwierzecka4c242b2014-10-26 14:14:07 +010049 select SUPPORTS_LITTLE_ENDIAN
Daniel Schwierzeck256034d2014-10-26 14:14:07 +010050 select SUPPORTS_CPU_MIPS32_R1
51 select SUPPORTS_CPU_MIPS32_R2
Paul Burton6832bdc2015-01-29 01:28:02 +000052 select SYS_MIPS_CACHE_INIT_RAM_LOAD
Masahiro Yamadad3ae6782014-07-30 14:08:14 +090053
Masahiro Yamadad3ae6782014-07-30 14:08:14 +090054
55endchoice
56
57source "board/dbau1x00/Kconfig"
58source "board/imgtec/malta/Kconfig"
59source "board/micronas/vct/Kconfig"
60source "board/pb1x00/Kconfig"
61source "board/qemu-mips/Kconfig"
62
Daniel Schwierzecka4c242b2014-10-26 14:14:07 +010063if MIPS
64
65choice
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
73config SYS_BIG_ENDIAN
74 bool "Big endian"
75 depends on SUPPORTS_BIG_ENDIAN
76
77config SYS_LITTLE_ENDIAN
78 bool "Little endian"
79 depends on SUPPORTS_LITTLE_ENDIAN
80
81endchoice
82
Daniel Schwierzeck256034d2014-10-26 14:14:07 +010083choice
84 prompt "CPU selection"
85 default CPU_MIPS32_R2
86
87config 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
95config 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
103config 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
111config 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
119endchoice
120
Daniel Schwierzeckf9749fa2015-01-14 21:44:13 +0100121menu "OS boot interface"
122
123config 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
Daniel Schwierzeckc07dc602015-01-14 21:44:13 +0100132config 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
Daniel Schwierzeck8d7ff4d2015-01-14 21:44:13 +0100141config MIPS_BOOT_FDT
Daniel Schwierzeckd1b29d22015-02-22 16:58:30 +0100142 bool "Hand over a flattened device tree to Linux kernel"
Daniel Schwierzeck8d7ff4d2015-01-14 21:44:13 +0100143 default n
144 help
145 Enable this option if you want U-Boot to hand over a flattened
Daniel Schwierzeckd1b29d22015-02-22 16:58:30 +0100146 device tree to the kernel. According to UHI register $a0 will be set
147 to -2 and the FDT address is stored in $a1.
Daniel Schwierzeck8d7ff4d2015-01-14 21:44:13 +0100148
Daniel Schwierzeckf9749fa2015-01-14 21:44:13 +0100149endmenu
150
Daniel Schwierzecka4c242b2014-10-26 14:14:07 +0100151config SUPPORTS_BIG_ENDIAN
152 bool
153
154config SUPPORTS_LITTLE_ENDIAN
155 bool
156
Daniel Schwierzeck256034d2014-10-26 14:14:07 +0100157config SUPPORTS_CPU_MIPS32_R1
158 bool
159
160config SUPPORTS_CPU_MIPS32_R2
161 bool
162
163config SUPPORTS_CPU_MIPS64_R1
164 bool
165
166config SUPPORTS_CPU_MIPS64_R2
167 bool
168
Daniel Schwierzeckdfbad0f2015-01-18 21:59:35 +0100169config CPU_MIPS32
170 bool
171 default y if CPU_MIPS32_R1 || CPU_MIPS32_R2
172
173config CPU_MIPS64
174 bool
175 default y if CPU_MIPS64_R1 || CPU_MIPS64_R2
176
Daniel Schwierzeck256034d2014-10-26 14:14:07 +0100177config 32BIT
178 bool
179
180config 64BIT
181 bool
182
Daniel Schwierzeck7dca6862015-01-18 22:00:18 +0100183config SWAP_IO_SPACE
184 bool
185
Paul Burton6832bdc2015-01-29 01:28:02 +0000186config SYS_MIPS_CACHE_INIT_RAM_LOAD
187 bool
188
Daniel Schwierzecka4c242b2014-10-26 14:14:07 +0100189endif
190
Masahiro Yamadad3ae6782014-07-30 14:08:14 +0900191endmenu