Stefan Reinauer | 9fe20cb | 2012-12-07 17:18:43 -0800 | [diff] [blame] | 1 | # Warning: This file is included whether or not the if is here. |
| 2 | # The if controls how the evaluation occurs. |
| 3 | # (See also src/Kconfig) |
| 4 | if ARCH_ARMV7 |
| 5 | |
Alexandru Gagniuc | f64111b | 2013-12-13 20:44:48 -0600 | [diff] [blame] | 6 | source src/cpu/allwinner/Kconfig |
Hung-Te Lin | 7635a60 | 2013-02-12 00:07:38 +0800 | [diff] [blame] | 7 | source src/cpu/armltd/Kconfig |
Stefan Reinauer | 9fe20cb | 2012-12-07 17:18:43 -0800 | [diff] [blame] | 8 | source src/cpu/samsung/Kconfig |
Gabe Black | 3c7e939 | 2013-05-26 07:15:57 -0700 | [diff] [blame] | 9 | source src/cpu/ti/Kconfig |
Stefan Reinauer | 9fe20cb | 2012-12-07 17:18:43 -0800 | [diff] [blame] | 10 | |
| 11 | endif # ARCH_ARM |
| 12 | |
Stefan Reinauer | 8aedcbc | 2010-12-16 23:37:17 +0000 | [diff] [blame] | 13 | if ARCH_X86 |
| 14 | |
Ronald G. Minnich | 5f6572e | 2009-08-12 15:39:38 +0000 | [diff] [blame] | 15 | source src/cpu/amd/Kconfig |
Andrew Wu | 52e665b | 2013-06-19 18:55:08 +0800 | [diff] [blame] | 16 | source src/cpu/dmp/Kconfig |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 17 | source src/cpu/intel/Kconfig |
| 18 | source src/cpu/via/Kconfig |
Gerd Hoffmann | cbf3073 | 2013-05-31 09:23:26 +0200 | [diff] [blame] | 19 | source src/cpu/qemu-x86/Kconfig |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 20 | source src/cpu/x86/Kconfig |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 21 | |
Stefan Reinauer | 704b596 | 2010-08-30 17:53:13 +0000 | [diff] [blame] | 22 | config CACHE_AS_RAM |
Patrick Georgi | 39ec29c | 2009-08-27 12:10:50 +0000 | [diff] [blame] | 23 | bool |
Stefan Reinauer | 314e551 | 2010-04-09 20:36:29 +0000 | [diff] [blame] | 24 | default !ROMCC |
Patrick Georgi | 39ec29c | 2009-08-27 12:10:50 +0000 | [diff] [blame] | 25 | |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 26 | config DCACHE_RAM_BASE |
| 27 | hex |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 28 | |
| 29 | config DCACHE_RAM_SIZE |
| 30 | hex |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 31 | |
Stefan Reinauer | 2c41c40 | 2012-05-01 11:13:52 -0700 | [diff] [blame] | 32 | # FIXME MAX_PHYSICAL_CPUS should move to AMD specific code, or better |
| 33 | # yet be dropped completely. |
Patrick Georgi | 0e9a925 | 2009-10-06 20:48:07 +0000 | [diff] [blame] | 34 | config MAX_PHYSICAL_CPUS |
| 35 | int |
Stefan Reinauer | d81744e | 2012-06-25 14:12:58 -0700 | [diff] [blame] | 36 | depends on CPU_AMD_MODEL_10XXX || CPU_AMD_MODEL_FXX || CPU_AMD_AGESA |
Patrick Georgi | 0e9a925 | 2009-10-06 20:48:07 +0000 | [diff] [blame] | 37 | default 1 |
| 38 | |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 39 | config SMP |
| 40 | bool |
Myles Watson | 45bb25f | 2009-09-22 18:49:08 +0000 | [diff] [blame] | 41 | default y if MAX_CPUS != 1 |
Patrick Georgi | 892b091 | 2009-09-24 09:03:06 +0000 | [diff] [blame] | 42 | default n |
Uwe Hermann | a29ad5c | 2009-10-18 18:35:50 +0000 | [diff] [blame] | 43 | help |
| 44 | This option is used to enable certain functions to make coreboot |
| 45 | work correctly on symmetric multi processor (SMP) systems. |
Ronald G. Minnich | 149d675 | 2009-10-01 23:22:50 +0000 | [diff] [blame] | 46 | |
Kyösti Mälkki | 7dfe32c | 2012-02-14 10:39:17 +0200 | [diff] [blame] | 47 | config AP_SIPI_VECTOR |
| 48 | hex |
| 49 | default 0xfffff000 |
| 50 | help |
| 51 | This must equal address of ap_sipi_vector from bootblock build. |
Patrick Georgi | 819c7d4 | 2012-03-31 13:08:12 +0200 | [diff] [blame] | 52 | |
Ronald G. Minnich | 149d675 | 2009-10-01 23:22:50 +0000 | [diff] [blame] | 53 | config MMX |
| 54 | bool |
Stefan Reinauer | a7acc51 | 2010-02-25 13:40:49 +0000 | [diff] [blame] | 55 | help |
| 56 | Select MMX in your socket or model Kconfig if your CPU has MMX |
| 57 | streaming SIMD instructions. ROMCC can build more efficient |
| 58 | code if it can spill to MMX registers. |
Ronald G. Minnich | 149d675 | 2009-10-01 23:22:50 +0000 | [diff] [blame] | 59 | |
| 60 | config SSE |
| 61 | bool |
Stefan Reinauer | a7acc51 | 2010-02-25 13:40:49 +0000 | [diff] [blame] | 62 | help |
| 63 | Select SSE in your socket or model Kconfig if your CPU has SSE |
| 64 | streaming SIMD instructions. ROMCC can build more efficient |
| 65 | code if it can spill to SSE (aka XMM) registers. |
| 66 | |
| 67 | config SSE2 |
| 68 | bool |
Myles Watson | 3426195 | 2010-03-19 02:33:40 +0000 | [diff] [blame] | 69 | default n |
Stefan Reinauer | a7acc51 | 2010-02-25 13:40:49 +0000 | [diff] [blame] | 70 | help |
| 71 | Select SSE2 in your socket or model Kconfig if your CPU has SSE2 |
| 72 | streaming SIMD instructions. Some parts of coreboot can be built |
| 73 | with more efficient code if SSE2 instructions are available. |
Patrick Georgi | 0e9a925 | 2009-10-06 20:48:07 +0000 | [diff] [blame] | 74 | |
Stefan Reinauer | 8aedcbc | 2010-12-16 23:37:17 +0000 | [diff] [blame] | 75 | endif # ARCH_X86 |
Alexandru Gagniuc | 00b579a | 2012-07-20 00:11:21 -0500 | [diff] [blame] | 76 | |
Alexandru Gagniuc | 66e0c4c | 2013-12-04 22:21:15 -0600 | [diff] [blame] | 77 | config SUPPORT_CPU_UCODE_IN_CBFS |
Alexandru Gagniuc | 00b579a | 2012-07-20 00:11:21 -0500 | [diff] [blame] | 78 | bool |
| 79 | default n |
| 80 | |
Alexandru Gagniuc | a406119e | 2013-12-04 21:57:15 -0600 | [diff] [blame] | 81 | # This variable is used to determine if we add CPU microcode to CBFS during the |
| 82 | # build. Microcode can be added manually afterwards, or removed. As a result, |
| 83 | # code should not rely on this to tell if a microcode update is present or not, |
| 84 | # and should instead search CBFS. |
| 85 | # This variable is useful in determining if certain automated post-processing |
| 86 | # steps can be performed right after the build, such as automatically adding |
| 87 | # a firmware interface table. |
| 88 | config CPU_MICROCODE_ADDED_DURING_BUILD |
| 89 | bool |
| 90 | default y if CPU_MICROCODE_CBFS_GENERATE || CPU_MICROCODE_CBFS_EXTERNAL |
| 91 | |
Alexandru Gagniuc | 00b579a | 2012-07-20 00:11:21 -0500 | [diff] [blame] | 92 | choice |
Stefan Reinauer | 9c29cfa | 2013-02-27 20:24:11 +0100 | [diff] [blame] | 93 | prompt "Include CPU microcode in CBFS" if ARCH_X86 |
Alexandru Gagniuc | 66e0c4c | 2013-12-04 22:21:15 -0600 | [diff] [blame] | 94 | default CPU_MICROCODE_CBFS_GENERATE if SUPPORT_CPU_UCODE_IN_CBFS |
| 95 | default CPU_MICROCODE_CBFS_NONE if !SUPPORT_CPU_UCODE_IN_CBFS |
Alexandru Gagniuc | 00b579a | 2012-07-20 00:11:21 -0500 | [diff] [blame] | 96 | |
| 97 | config CPU_MICROCODE_CBFS_GENERATE |
| 98 | bool "Generate from tree" |
| 99 | help |
| 100 | Select this option if you want microcode updates to be assembled when |
| 101 | building coreboot and included in the final image as a separate CBFS |
| 102 | file. Microcode will not be hard-coded into ramstage. |
| 103 | |
Stefan Tauner | 0ce2b43 | 2013-04-01 13:45:44 +0200 | [diff] [blame] | 104 | The microcode file may be removed from the ROM image at a later |
Alexandru Gagniuc | 00b579a | 2012-07-20 00:11:21 -0500 | [diff] [blame] | 105 | time with cbfstool, if desired. |
| 106 | |
| 107 | If unsure, select this option. |
| 108 | |
| 109 | config CPU_MICROCODE_CBFS_EXTERNAL |
| 110 | bool "Include external microcode file" |
| 111 | help |
| 112 | Select this option if you want to include an external file containing |
| 113 | the CPU microcode. This will be included as a separate file in CBFS. |
| 114 | A word of caution: only select this option if you are sure the |
| 115 | microcode that you have is newer than the microcode shipping with |
| 116 | coreboot. |
| 117 | |
Stefan Tauner | 0ce2b43 | 2013-04-01 13:45:44 +0200 | [diff] [blame] | 118 | The microcode file may be removed from the ROM image at a later |
Alexandru Gagniuc | 00b579a | 2012-07-20 00:11:21 -0500 | [diff] [blame] | 119 | time with cbfstool, if desired. |
| 120 | |
| 121 | If unsure, select "Generate from tree" |
| 122 | |
Alexandru Gagniuc | 00b579a | 2012-07-20 00:11:21 -0500 | [diff] [blame] | 123 | config CPU_MICROCODE_CBFS_NONE |
| 124 | bool "Do not include microcode updates" |
| 125 | help |
| 126 | Select this option if you do not want CPU microcode included in CBFS. |
| 127 | Note that for some CPUs, the microcode is hard-coded into the source |
| 128 | tree and is not loaded from CBFS. In this case, microcode will still |
| 129 | be updated. There is a push to move all microcode to CBFS, but this |
| 130 | change is not implemented for all CPUs. |
| 131 | |
| 132 | This option currently applies to: |
| 133 | - Intel SandyBridge/IvyBridge |
| 134 | - VIA Nano |
| 135 | |
| 136 | Microcode may be added to the ROM image at a later time with cbfstool, |
| 137 | if desired. |
| 138 | |
| 139 | If unsure, select "Generate from tree" |
| 140 | |
| 141 | The GOOD: |
| 142 | Microcode updates intend to solve issues that have been discovered |
| 143 | after CPU production. The expected effect is that systems work as |
| 144 | intended with the updated microcode, but we have also seen cases where |
| 145 | issues were solved by not applying microcode updates. |
| 146 | |
| 147 | The BAD: |
| 148 | Note that some operating system include these same microcode patches, |
| 149 | so you may need to also disable microcode updates in your operating |
| 150 | system for this option to have an effect. |
| 151 | |
| 152 | The UGLY: |
| 153 | A word of CAUTION: some CPUs depend on microcode updates to function |
| 154 | correctly. Not updating the microcode may leave the CPU operating at |
| 155 | less than optimal performance, or may cause outright hangups. |
| 156 | There are CPUs where coreboot cannot properly initialize the CPU |
| 157 | without microcode updates |
| 158 | For example, if running with the factory microcode, some Intel |
| 159 | SandyBridge CPUs may hang when enabling CAR, or some VIA Nano CPUs |
| 160 | will hang when changing the frequency. |
| 161 | |
| 162 | Make sure you have a way of flashing the ROM externally before |
| 163 | selecting this option. |
| 164 | |
| 165 | endchoice |
Jens Rottmann | 686dc0d | 2013-02-18 17:26:01 +0100 | [diff] [blame] | 166 | |
| 167 | config CPU_MICROCODE_FILE |
| 168 | string "Path and filename of CPU microcode" |
| 169 | depends on CPU_MICROCODE_CBFS_EXTERNAL |
| 170 | default "cpu_microcode.bin" |
| 171 | help |
| 172 | The path and filename of the file containing the CPU microcode. |
Marc Jones | bdafcfa | 2013-10-29 17:46:54 -0600 | [diff] [blame] | 173 | |
| 174 | config CPU_MICROCODE_CBFS_LOC |
| 175 | hex "Microcode address in CBFS" |
| 176 | depends on CPU_MICROCODE_IN_CBFS |
| 177 | default 0 |
| 178 | |
| 179 | config CPU_MICROCODE_CBFS_LEN |
| 180 | hex "Microcode length in CBFS" |
| 181 | depends on CPU_MICROCODE_IN_CBFS |
| 182 | default 0xC000 |
| 183 | help |
| 184 | The microcode needs a specific length to get correctly |
| 185 | detected and loaded by all CPUs. |