Masahiro Yamada | dd84058 | 2014-07-30 14:08:14 +0900 | [diff] [blame] | 1 | menu "MIPS architecture" |
| 2 | depends on MIPS |
| 3 | |
| 4 | config SYS_ARCH |
Masahiro Yamada | dd84058 | 2014-07-30 14:08:14 +0900 | [diff] [blame] | 5 | default "mips" |
| 6 | |
Daniel Schwierzeck | b9863b6 | 2014-10-26 14:14:07 +0100 | [diff] [blame] | 7 | config SYS_CPU |
Paul Burton | 20286cd | 2016-05-16 10:52:11 +0100 | [diff] [blame] | 8 | default "mips32" if CPU_MIPS32 |
| 9 | default "mips64" if CPU_MIPS64 |
Daniel Schwierzeck | b9863b6 | 2014-10-26 14:14:07 +0100 | [diff] [blame] | 10 | |
Masahiro Yamada | dd84058 | 2014-07-30 14:08:14 +0900 | [diff] [blame] | 11 | choice |
| 12 | prompt "Target select" |
Joe Hershberger | a26cd04 | 2015-05-12 14:46:23 -0500 | [diff] [blame] | 13 | optional |
Masahiro Yamada | dd84058 | 2014-07-30 14:08:14 +0900 | [diff] [blame] | 14 | |
| 15 | config TARGET_QEMU_MIPS |
| 16 | bool "Support qemu-mips" |
Daniel Schwierzeck | 0e1dc34 | 2014-10-26 14:14:07 +0100 | [diff] [blame] | 17 | select SUPPORTS_BIG_ENDIAN |
| 18 | select SUPPORTS_LITTLE_ENDIAN |
Daniel Schwierzeck | 02611cb | 2014-10-26 14:14:07 +0100 | [diff] [blame] | 19 | select SUPPORTS_CPU_MIPS32_R1 |
| 20 | select SUPPORTS_CPU_MIPS32_R2 |
Daniel Schwierzeck | aa45f75 | 2014-10-26 14:14:07 +0100 | [diff] [blame] | 21 | select SUPPORTS_CPU_MIPS64_R1 |
| 22 | select SUPPORTS_CPU_MIPS64_R2 |
Masahiro Yamada | dd84058 | 2014-07-30 14:08:14 +0900 | [diff] [blame] | 23 | |
| 24 | config TARGET_MALTA |
| 25 | bool "Support malta" |
Paul Burton | 05e3425 | 2016-01-29 13:54:52 +0000 | [diff] [blame] | 26 | select DYNAMIC_IO_PORT_BASE |
Daniel Schwierzeck | 0e1dc34 | 2014-10-26 14:14:07 +0100 | [diff] [blame] | 27 | select SUPPORTS_BIG_ENDIAN |
| 28 | select SUPPORTS_LITTLE_ENDIAN |
Daniel Schwierzeck | 02611cb | 2014-10-26 14:14:07 +0100 | [diff] [blame] | 29 | select SUPPORTS_CPU_MIPS32_R1 |
| 30 | select SUPPORTS_CPU_MIPS32_R2 |
Paul Burton | 40ba13c | 2016-05-16 10:52:14 +0100 | [diff] [blame^] | 31 | select SUPPORTS_CPU_MIPS32_R6 |
Daniel Schwierzeck | 9d638ee | 2015-01-18 22:00:18 +0100 | [diff] [blame] | 32 | select SWAP_IO_SPACE |
Daniel Schwierzeck | f53830e | 2016-01-09 17:32:50 +0100 | [diff] [blame] | 33 | select MIPS_L1_CACHE_SHIFT_6 |
Masahiro Yamada | dd84058 | 2014-07-30 14:08:14 +0900 | [diff] [blame] | 34 | |
| 35 | config TARGET_VCT |
| 36 | bool "Support vct" |
Daniel Schwierzeck | 0e1dc34 | 2014-10-26 14:14:07 +0100 | [diff] [blame] | 37 | select SUPPORTS_BIG_ENDIAN |
Daniel Schwierzeck | 02611cb | 2014-10-26 14:14:07 +0100 | [diff] [blame] | 38 | select SUPPORTS_CPU_MIPS32_R1 |
| 39 | select SUPPORTS_CPU_MIPS32_R2 |
Paul Burton | dd7c720 | 2015-01-29 01:28:02 +0000 | [diff] [blame] | 40 | select SYS_MIPS_CACHE_INIT_RAM_LOAD |
Masahiro Yamada | dd84058 | 2014-07-30 14:08:14 +0900 | [diff] [blame] | 41 | |
| 42 | config TARGET_DBAU1X00 |
| 43 | bool "Support dbau1x00" |
Daniel Schwierzeck | 0e1dc34 | 2014-10-26 14:14:07 +0100 | [diff] [blame] | 44 | select SUPPORTS_BIG_ENDIAN |
| 45 | select SUPPORTS_LITTLE_ENDIAN |
Daniel Schwierzeck | 02611cb | 2014-10-26 14:14:07 +0100 | [diff] [blame] | 46 | select SUPPORTS_CPU_MIPS32_R1 |
| 47 | select SUPPORTS_CPU_MIPS32_R2 |
Paul Burton | dd7c720 | 2015-01-29 01:28:02 +0000 | [diff] [blame] | 48 | select SYS_MIPS_CACHE_INIT_RAM_LOAD |
Daniel Schwierzeck | 0315a28 | 2015-12-26 19:55:37 +0100 | [diff] [blame] | 49 | select MIPS_TUNE_4KC |
Masahiro Yamada | dd84058 | 2014-07-30 14:08:14 +0900 | [diff] [blame] | 50 | |
| 51 | config TARGET_PB1X00 |
| 52 | bool "Support pb1x00" |
Daniel Schwierzeck | 0e1dc34 | 2014-10-26 14:14:07 +0100 | [diff] [blame] | 53 | select SUPPORTS_LITTLE_ENDIAN |
Daniel Schwierzeck | 02611cb | 2014-10-26 14:14:07 +0100 | [diff] [blame] | 54 | select SUPPORTS_CPU_MIPS32_R1 |
| 55 | select SUPPORTS_CPU_MIPS32_R2 |
Paul Burton | dd7c720 | 2015-01-29 01:28:02 +0000 | [diff] [blame] | 56 | select SYS_MIPS_CACHE_INIT_RAM_LOAD |
Daniel Schwierzeck | 0315a28 | 2015-12-26 19:55:37 +0100 | [diff] [blame] | 57 | select MIPS_TUNE_4KC |
Masahiro Yamada | dd84058 | 2014-07-30 14:08:14 +0900 | [diff] [blame] | 58 | |
Wills Wang | 1d3d0f1 | 2016-03-16 16:59:52 +0800 | [diff] [blame] | 59 | config ARCH_ATH79 |
| 60 | bool "Support QCA/Atheros ath79" |
| 61 | select OF_CONTROL |
| 62 | select DM |
| 63 | |
Purna Chandra Mandal | 32c1a6e | 2016-01-28 15:30:10 +0530 | [diff] [blame] | 64 | config MACH_PIC32 |
| 65 | bool "Support Microchip PIC32" |
| 66 | select OF_CONTROL |
| 67 | select DM |
| 68 | |
Masahiro Yamada | dd84058 | 2014-07-30 14:08:14 +0900 | [diff] [blame] | 69 | endchoice |
| 70 | |
| 71 | source "board/dbau1x00/Kconfig" |
| 72 | source "board/imgtec/malta/Kconfig" |
| 73 | source "board/micronas/vct/Kconfig" |
| 74 | source "board/pb1x00/Kconfig" |
| 75 | source "board/qemu-mips/Kconfig" |
Wills Wang | 1d3d0f1 | 2016-03-16 16:59:52 +0800 | [diff] [blame] | 76 | source "arch/mips/mach-ath79/Kconfig" |
Purna Chandra Mandal | 32c1a6e | 2016-01-28 15:30:10 +0530 | [diff] [blame] | 77 | source "arch/mips/mach-pic32/Kconfig" |
Masahiro Yamada | dd84058 | 2014-07-30 14:08:14 +0900 | [diff] [blame] | 78 | |
Daniel Schwierzeck | 0e1dc34 | 2014-10-26 14:14:07 +0100 | [diff] [blame] | 79 | if MIPS |
| 80 | |
| 81 | choice |
| 82 | prompt "Endianness selection" |
| 83 | help |
| 84 | Some MIPS boards can be configured for either little or big endian |
| 85 | byte order. These modes require different U-Boot images. In general there |
| 86 | is one preferred byteorder for a particular system but some systems are |
| 87 | just as commonly used in the one or the other endianness. |
| 88 | |
| 89 | config SYS_BIG_ENDIAN |
| 90 | bool "Big endian" |
| 91 | depends on SUPPORTS_BIG_ENDIAN |
| 92 | |
| 93 | config SYS_LITTLE_ENDIAN |
| 94 | bool "Little endian" |
| 95 | depends on SUPPORTS_LITTLE_ENDIAN |
| 96 | |
| 97 | endchoice |
| 98 | |
Daniel Schwierzeck | 02611cb | 2014-10-26 14:14:07 +0100 | [diff] [blame] | 99 | choice |
| 100 | prompt "CPU selection" |
| 101 | default CPU_MIPS32_R2 |
| 102 | |
| 103 | config CPU_MIPS32_R1 |
| 104 | bool "MIPS32 Release 1" |
| 105 | depends on SUPPORTS_CPU_MIPS32_R1 |
| 106 | select 32BIT |
| 107 | help |
Paul Burton | c52ebea | 2016-05-16 10:52:12 +0100 | [diff] [blame] | 108 | Choose this option to build an U-Boot for release 1 through 5 of the |
Daniel Schwierzeck | 02611cb | 2014-10-26 14:14:07 +0100 | [diff] [blame] | 109 | MIPS32 architecture. |
| 110 | |
| 111 | config CPU_MIPS32_R2 |
| 112 | bool "MIPS32 Release 2" |
| 113 | depends on SUPPORTS_CPU_MIPS32_R2 |
| 114 | select 32BIT |
| 115 | help |
Paul Burton | c52ebea | 2016-05-16 10:52:12 +0100 | [diff] [blame] | 116 | Choose this option to build an U-Boot for release 2 through 5 of the |
| 117 | MIPS32 architecture. |
| 118 | |
| 119 | config CPU_MIPS32_R6 |
| 120 | bool "MIPS32 Release 6" |
| 121 | depends on SUPPORTS_CPU_MIPS32_R6 |
| 122 | select 32BIT |
| 123 | help |
| 124 | Choose this option to build an U-Boot for release 6 or later of the |
Daniel Schwierzeck | 02611cb | 2014-10-26 14:14:07 +0100 | [diff] [blame] | 125 | MIPS32 architecture. |
| 126 | |
| 127 | config CPU_MIPS64_R1 |
| 128 | bool "MIPS64 Release 1" |
| 129 | depends on SUPPORTS_CPU_MIPS64_R1 |
| 130 | select 64BIT |
| 131 | help |
Paul Burton | c52ebea | 2016-05-16 10:52:12 +0100 | [diff] [blame] | 132 | Choose this option to build a kernel for release 1 through 5 of the |
Daniel Schwierzeck | 02611cb | 2014-10-26 14:14:07 +0100 | [diff] [blame] | 133 | MIPS64 architecture. |
| 134 | |
| 135 | config CPU_MIPS64_R2 |
| 136 | bool "MIPS64 Release 2" |
| 137 | depends on SUPPORTS_CPU_MIPS64_R2 |
| 138 | select 64BIT |
| 139 | help |
Paul Burton | c52ebea | 2016-05-16 10:52:12 +0100 | [diff] [blame] | 140 | Choose this option to build a kernel for release 2 through 5 of the |
| 141 | MIPS64 architecture. |
| 142 | |
| 143 | config CPU_MIPS64_R6 |
| 144 | bool "MIPS64 Release 6" |
| 145 | depends on SUPPORTS_CPU_MIPS64_R6 |
| 146 | select 64BIT |
| 147 | help |
| 148 | Choose this option to build a kernel for release 6 or later of the |
Daniel Schwierzeck | 02611cb | 2014-10-26 14:14:07 +0100 | [diff] [blame] | 149 | MIPS64 architecture. |
| 150 | |
| 151 | endchoice |
| 152 | |
Daniel Schwierzeck | 25fc664 | 2015-01-14 21:44:13 +0100 | [diff] [blame] | 153 | menu "OS boot interface" |
| 154 | |
| 155 | config MIPS_BOOT_CMDLINE_LEGACY |
| 156 | bool "Hand over legacy command line to Linux kernel" |
| 157 | default y |
| 158 | help |
| 159 | Enable this option if you want U-Boot to hand over the Yamon-style |
| 160 | command line to the kernel. All bootargs will be prepared as argc/argv |
| 161 | compatible list. The argument count (argc) is stored in register $a0. |
| 162 | The address of the argument list (argv) is stored in register $a1. |
| 163 | |
Daniel Schwierzeck | ca65e58 | 2015-01-14 21:44:13 +0100 | [diff] [blame] | 164 | config MIPS_BOOT_ENV_LEGACY |
| 165 | bool "Hand over legacy environment to Linux kernel" |
| 166 | default y |
| 167 | help |
| 168 | Enable this option if you want U-Boot to hand over the Yamon-style |
| 169 | environment to the kernel. Information like memory size, initrd |
| 170 | address and size will be prepared as zero-terminated key/value list. |
Robert P. J. Day | 1cc0a9f | 2016-05-04 04:47:31 -0400 | [diff] [blame] | 171 | The address of the environment is stored in register $a2. |
Daniel Schwierzeck | ca65e58 | 2015-01-14 21:44:13 +0100 | [diff] [blame] | 172 | |
Daniel Schwierzeck | 5002d8c | 2015-01-14 21:44:13 +0100 | [diff] [blame] | 173 | config MIPS_BOOT_FDT |
Daniel Schwierzeck | 90b1c9f | 2015-02-22 16:58:30 +0100 | [diff] [blame] | 174 | bool "Hand over a flattened device tree to Linux kernel" |
Daniel Schwierzeck | 5002d8c | 2015-01-14 21:44:13 +0100 | [diff] [blame] | 175 | default n |
| 176 | help |
| 177 | Enable this option if you want U-Boot to hand over a flattened |
Daniel Schwierzeck | 90b1c9f | 2015-02-22 16:58:30 +0100 | [diff] [blame] | 178 | device tree to the kernel. According to UHI register $a0 will be set |
| 179 | to -2 and the FDT address is stored in $a1. |
Daniel Schwierzeck | 5002d8c | 2015-01-14 21:44:13 +0100 | [diff] [blame] | 180 | |
Daniel Schwierzeck | 25fc664 | 2015-01-14 21:44:13 +0100 | [diff] [blame] | 181 | endmenu |
| 182 | |
Daniel Schwierzeck | 0e1dc34 | 2014-10-26 14:14:07 +0100 | [diff] [blame] | 183 | config SUPPORTS_BIG_ENDIAN |
| 184 | bool |
| 185 | |
| 186 | config SUPPORTS_LITTLE_ENDIAN |
| 187 | bool |
| 188 | |
Daniel Schwierzeck | 02611cb | 2014-10-26 14:14:07 +0100 | [diff] [blame] | 189 | config SUPPORTS_CPU_MIPS32_R1 |
| 190 | bool |
| 191 | |
| 192 | config SUPPORTS_CPU_MIPS32_R2 |
| 193 | bool |
| 194 | |
Paul Burton | c52ebea | 2016-05-16 10:52:12 +0100 | [diff] [blame] | 195 | config SUPPORTS_CPU_MIPS32_R6 |
| 196 | bool |
| 197 | |
Daniel Schwierzeck | 02611cb | 2014-10-26 14:14:07 +0100 | [diff] [blame] | 198 | config SUPPORTS_CPU_MIPS64_R1 |
| 199 | bool |
| 200 | |
| 201 | config SUPPORTS_CPU_MIPS64_R2 |
| 202 | bool |
| 203 | |
Paul Burton | c52ebea | 2016-05-16 10:52:12 +0100 | [diff] [blame] | 204 | config SUPPORTS_CPU_MIPS64_R6 |
| 205 | bool |
| 206 | |
Daniel Schwierzeck | c57dafb | 2015-01-18 21:59:35 +0100 | [diff] [blame] | 207 | config CPU_MIPS32 |
| 208 | bool |
Paul Burton | c52ebea | 2016-05-16 10:52:12 +0100 | [diff] [blame] | 209 | default y if CPU_MIPS32_R1 || CPU_MIPS32_R2 || CPU_MIPS32_R6 |
Daniel Schwierzeck | c57dafb | 2015-01-18 21:59:35 +0100 | [diff] [blame] | 210 | |
| 211 | config CPU_MIPS64 |
| 212 | bool |
Paul Burton | c52ebea | 2016-05-16 10:52:12 +0100 | [diff] [blame] | 213 | default y if CPU_MIPS64_R1 || CPU_MIPS64_R2 || CPU_MIPS64_R6 |
Daniel Schwierzeck | c57dafb | 2015-01-18 21:59:35 +0100 | [diff] [blame] | 214 | |
Daniel Schwierzeck | 0315a28 | 2015-12-26 19:55:37 +0100 | [diff] [blame] | 215 | config MIPS_TUNE_4KC |
| 216 | bool |
| 217 | |
| 218 | config MIPS_TUNE_14KC |
| 219 | bool |
| 220 | |
| 221 | config MIPS_TUNE_24KC |
| 222 | bool |
| 223 | |
Marek Vasut | 0a0a958 | 2016-05-06 20:10:33 +0200 | [diff] [blame] | 224 | config MIPS_TUNE_74KC |
| 225 | bool |
| 226 | |
Daniel Schwierzeck | 02611cb | 2014-10-26 14:14:07 +0100 | [diff] [blame] | 227 | config 32BIT |
| 228 | bool |
| 229 | |
| 230 | config 64BIT |
| 231 | bool |
| 232 | |
Daniel Schwierzeck | 9d638ee | 2015-01-18 22:00:18 +0100 | [diff] [blame] | 233 | config SWAP_IO_SPACE |
| 234 | bool |
| 235 | |
Paul Burton | dd7c720 | 2015-01-29 01:28:02 +0000 | [diff] [blame] | 236 | config SYS_MIPS_CACHE_INIT_RAM_LOAD |
| 237 | bool |
| 238 | |
Daniel Schwierzeck | f53830e | 2016-01-09 17:32:50 +0100 | [diff] [blame] | 239 | config MIPS_L1_CACHE_SHIFT_4 |
| 240 | bool |
| 241 | |
| 242 | config MIPS_L1_CACHE_SHIFT_5 |
| 243 | bool |
| 244 | |
| 245 | config MIPS_L1_CACHE_SHIFT_6 |
| 246 | bool |
| 247 | |
| 248 | config MIPS_L1_CACHE_SHIFT_7 |
| 249 | bool |
| 250 | |
| 251 | config MIPS_L1_CACHE_SHIFT |
| 252 | int |
| 253 | default "7" if MIPS_L1_CACHE_SHIFT_7 |
| 254 | default "6" if MIPS_L1_CACHE_SHIFT_6 |
| 255 | default "5" if MIPS_L1_CACHE_SHIFT_5 |
| 256 | default "4" if MIPS_L1_CACHE_SHIFT_4 |
| 257 | default "5" |
| 258 | |
Paul Burton | 05e3425 | 2016-01-29 13:54:52 +0000 | [diff] [blame] | 259 | config DYNAMIC_IO_PORT_BASE |
| 260 | bool |
| 261 | |
Daniel Schwierzeck | 0e1dc34 | 2014-10-26 14:14:07 +0100 | [diff] [blame] | 262 | endif |
| 263 | |
Masahiro Yamada | dd84058 | 2014-07-30 14:08:14 +0900 | [diff] [blame] | 264 | endmenu |