Masahiro Yamada | d3ae678 | 2014-07-30 14:08:14 +0900 | [diff] [blame] | 1 | menu "MIPS architecture" |
| 2 | depends on MIPS |
| 3 | |
| 4 | config SYS_ARCH |
Masahiro Yamada | d3ae678 | 2014-07-30 14:08:14 +0900 | [diff] [blame] | 5 | default "mips" |
| 6 | |
Daniel Schwierzeck | 99e7af2 | 2014-10-26 14:14:07 +0100 | [diff] [blame] | 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 | |
Masahiro Yamada | d3ae678 | 2014-07-30 14:08:14 +0900 | [diff] [blame] | 11 | choice |
| 12 | prompt "Target select" |
Joe Hershberger | f069960 | 2015-05-12 14:46:23 -0500 | [diff] [blame] | 13 | optional |
Masahiro Yamada | d3ae678 | 2014-07-30 14:08:14 +0900 | [diff] [blame] | 14 | |
| 15 | config TARGET_QEMU_MIPS |
| 16 | bool "Support qemu-mips" |
Daniel Schwierzeck | a4c242b | 2014-10-26 14:14:07 +0100 | [diff] [blame] | 17 | select SUPPORTS_BIG_ENDIAN |
| 18 | select SUPPORTS_LITTLE_ENDIAN |
Daniel Schwierzeck | 256034d | 2014-10-26 14:14:07 +0100 | [diff] [blame] | 19 | select SUPPORTS_CPU_MIPS32_R1 |
| 20 | select SUPPORTS_CPU_MIPS32_R2 |
Daniel Schwierzeck | 94384d1 | 2014-10-26 14:14:07 +0100 | [diff] [blame] | 21 | select SUPPORTS_CPU_MIPS64_R1 |
| 22 | select SUPPORTS_CPU_MIPS64_R2 |
Masahiro Yamada | d3ae678 | 2014-07-30 14:08:14 +0900 | [diff] [blame] | 23 | |
| 24 | config TARGET_MALTA |
| 25 | bool "Support malta" |
Daniel Schwierzeck | a4c242b | 2014-10-26 14:14:07 +0100 | [diff] [blame] | 26 | select SUPPORTS_BIG_ENDIAN |
| 27 | select SUPPORTS_LITTLE_ENDIAN |
Daniel Schwierzeck | 256034d | 2014-10-26 14:14:07 +0100 | [diff] [blame] | 28 | select SUPPORTS_CPU_MIPS32_R1 |
| 29 | select SUPPORTS_CPU_MIPS32_R2 |
Daniel Schwierzeck | 7dca686 | 2015-01-18 22:00:18 +0100 | [diff] [blame] | 30 | select SWAP_IO_SPACE |
Masahiro Yamada | d3ae678 | 2014-07-30 14:08:14 +0900 | [diff] [blame] | 31 | |
| 32 | config TARGET_VCT |
| 33 | bool "Support vct" |
Daniel Schwierzeck | a4c242b | 2014-10-26 14:14:07 +0100 | [diff] [blame] | 34 | select SUPPORTS_BIG_ENDIAN |
Daniel Schwierzeck | 256034d | 2014-10-26 14:14:07 +0100 | [diff] [blame] | 35 | select SUPPORTS_CPU_MIPS32_R1 |
| 36 | select SUPPORTS_CPU_MIPS32_R2 |
Paul Burton | 6832bdc | 2015-01-29 01:28:02 +0000 | [diff] [blame] | 37 | select SYS_MIPS_CACHE_INIT_RAM_LOAD |
Masahiro Yamada | d3ae678 | 2014-07-30 14:08:14 +0900 | [diff] [blame] | 38 | |
| 39 | config TARGET_DBAU1X00 |
| 40 | bool "Support dbau1x00" |
Daniel Schwierzeck | a4c242b | 2014-10-26 14:14:07 +0100 | [diff] [blame] | 41 | select SUPPORTS_BIG_ENDIAN |
| 42 | select SUPPORTS_LITTLE_ENDIAN |
Daniel Schwierzeck | 256034d | 2014-10-26 14:14:07 +0100 | [diff] [blame] | 43 | select SUPPORTS_CPU_MIPS32_R1 |
| 44 | select SUPPORTS_CPU_MIPS32_R2 |
Paul Burton | 6832bdc | 2015-01-29 01:28:02 +0000 | [diff] [blame] | 45 | select SYS_MIPS_CACHE_INIT_RAM_LOAD |
Masahiro Yamada | d3ae678 | 2014-07-30 14:08:14 +0900 | [diff] [blame] | 46 | |
| 47 | config TARGET_PB1X00 |
| 48 | bool "Support pb1x00" |
Daniel Schwierzeck | a4c242b | 2014-10-26 14:14:07 +0100 | [diff] [blame] | 49 | select SUPPORTS_LITTLE_ENDIAN |
Daniel Schwierzeck | 256034d | 2014-10-26 14:14:07 +0100 | [diff] [blame] | 50 | select SUPPORTS_CPU_MIPS32_R1 |
| 51 | select SUPPORTS_CPU_MIPS32_R2 |
Paul Burton | 6832bdc | 2015-01-29 01:28:02 +0000 | [diff] [blame] | 52 | select SYS_MIPS_CACHE_INIT_RAM_LOAD |
Masahiro Yamada | d3ae678 | 2014-07-30 14:08:14 +0900 | [diff] [blame] | 53 | |
Masahiro Yamada | d3ae678 | 2014-07-30 14:08:14 +0900 | [diff] [blame] | 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 | |
Daniel Schwierzeck | a4c242b | 2014-10-26 14:14:07 +0100 | [diff] [blame] | 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 | |
Daniel Schwierzeck | 256034d | 2014-10-26 14:14:07 +0100 | [diff] [blame] | 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 | |
Daniel Schwierzeck | f9749fa | 2015-01-14 21:44:13 +0100 | [diff] [blame] | 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 | |
Daniel Schwierzeck | c07dc60 | 2015-01-14 21:44:13 +0100 | [diff] [blame] | 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 | |
Daniel Schwierzeck | 8d7ff4d | 2015-01-14 21:44:13 +0100 | [diff] [blame] | 141 | config MIPS_BOOT_FDT |
Daniel Schwierzeck | d1b29d2 | 2015-02-22 16:58:30 +0100 | [diff] [blame] | 142 | bool "Hand over a flattened device tree to Linux kernel" |
Daniel Schwierzeck | 8d7ff4d | 2015-01-14 21:44:13 +0100 | [diff] [blame] | 143 | default n |
| 144 | help |
| 145 | Enable this option if you want U-Boot to hand over a flattened |
Daniel Schwierzeck | d1b29d2 | 2015-02-22 16:58:30 +0100 | [diff] [blame] | 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. |
Daniel Schwierzeck | 8d7ff4d | 2015-01-14 21:44:13 +0100 | [diff] [blame] | 148 | |
Daniel Schwierzeck | f9749fa | 2015-01-14 21:44:13 +0100 | [diff] [blame] | 149 | endmenu |
| 150 | |
Daniel Schwierzeck | a4c242b | 2014-10-26 14:14:07 +0100 | [diff] [blame] | 151 | config SUPPORTS_BIG_ENDIAN |
| 152 | bool |
| 153 | |
| 154 | config SUPPORTS_LITTLE_ENDIAN |
| 155 | bool |
| 156 | |
Daniel Schwierzeck | 256034d | 2014-10-26 14:14:07 +0100 | [diff] [blame] | 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 | |
Daniel Schwierzeck | dfbad0f | 2015-01-18 21:59:35 +0100 | [diff] [blame] | 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 | |
Daniel Schwierzeck | 256034d | 2014-10-26 14:14:07 +0100 | [diff] [blame] | 177 | config 32BIT |
| 178 | bool |
| 179 | |
| 180 | config 64BIT |
| 181 | bool |
| 182 | |
Daniel Schwierzeck | 7dca686 | 2015-01-18 22:00:18 +0100 | [diff] [blame] | 183 | config SWAP_IO_SPACE |
| 184 | bool |
| 185 | |
Paul Burton | 6832bdc | 2015-01-29 01:28:02 +0000 | [diff] [blame] | 186 | config SYS_MIPS_CACHE_INIT_RAM_LOAD |
| 187 | bool |
| 188 | |
Daniel Schwierzeck | a4c242b | 2014-10-26 14:14:07 +0100 | [diff] [blame] | 189 | endif |
| 190 | |
Masahiro Yamada | d3ae678 | 2014-07-30 14:08:14 +0900 | [diff] [blame] | 191 | endmenu |