Lee Leahy | 2ed7eb7 | 2016-01-01 18:08:48 -0800 | [diff] [blame] | 1 | ## |
| 2 | ## This file is part of the coreboot project. |
| 3 | ## |
| 4 | ## Copyright (C) 2015-2016 Intel Corp. |
| 5 | ## |
| 6 | ## This program is free software; you can redistribute it and/or modify |
| 7 | ## it under the terms of the GNU General Public License as published by |
| 8 | ## the Free Software Foundation; version 2 of the License. |
| 9 | ## |
| 10 | ## This program is distributed in the hope that it will be useful, |
| 11 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | ## GNU General Public License for more details. |
| 14 | ## |
| 15 | |
| 16 | config SOC_INTEL_QUARK |
| 17 | bool |
| 18 | help |
| 19 | Intel Quark support |
| 20 | |
| 21 | if SOC_INTEL_QUARK |
| 22 | |
| 23 | config CPU_SPECIFIC_OPTIONS |
| 24 | def_bool y |
| 25 | select ARCH_BOOTBLOCK_X86_32 |
| 26 | select ARCH_RAMSTAGE_X86_32 |
| 27 | select ARCH_ROMSTAGE_X86_32 |
| 28 | select ARCH_VERSTAGE_X86_32 |
Lee Leahy | ce9e21a | 2016-06-05 18:48:31 -0700 | [diff] [blame] | 29 | select BOOTBLOCK_SAVE_BIST_AND_TIMESTAMP |
| 30 | select C_ENVIRONMENT_BOOTBLOCK |
Lee Leahy | 6e8233a | 2016-07-30 10:34:22 -0700 | [diff] [blame] | 31 | select HAVE_HARD_RESET |
Lee Leahy | 4dd34ee | 2016-05-02 14:31:02 -0700 | [diff] [blame] | 32 | select REG_SCRIPT |
Lee Leahy | d87d8ea | 2016-07-21 14:14:02 -0700 | [diff] [blame] | 33 | select RELOCATABLE_RAMSTAGE |
Lee Leahy | 87df8d0 | 2016-02-07 14:37:13 -0800 | [diff] [blame] | 34 | select SOC_INTEL_COMMON |
Lee Leahy | 6e8233a | 2016-07-30 10:34:22 -0700 | [diff] [blame] | 35 | select SOC_INTEL_COMMON_RESET |
Lee Leahy | ae738ac | 2016-07-24 08:03:37 -0700 | [diff] [blame] | 36 | select SOC_SETS_MSRS |
Lee Leahy | 87df8d0 | 2016-02-07 14:37:13 -0800 | [diff] [blame] | 37 | select TSC_CONSTANT_RATE |
Lee Leahy | 6ec72c9 | 2016-05-07 09:04:46 -0700 | [diff] [blame] | 38 | select UART_OVERRIDE_REFCLK |
Lee Leahy | 87df8d0 | 2016-02-07 14:37:13 -0800 | [diff] [blame] | 39 | select UDELAY_TSC |
Lee Leahy | 43cdff6 | 2016-02-07 14:52:22 -0800 | [diff] [blame] | 40 | select UNCOMPRESSED_RAMSTAGE |
Lee Leahy | 2ed7eb7 | 2016-01-01 18:08:48 -0800 | [diff] [blame] | 41 | select USE_MARCH_586 |
| 42 | |
Lee Leahy | 9fd0895 | 2016-02-02 07:17:06 -0800 | [diff] [blame] | 43 | ##### |
Lee Leahy | 87df8d0 | 2016-02-07 14:37:13 -0800 | [diff] [blame] | 44 | # Debug serial output |
| 45 | # The following options configure the debug serial port |
| 46 | ##### |
| 47 | |
Lee Leahy | bc518d5 | 2016-05-30 15:01:06 -0700 | [diff] [blame] | 48 | config ENABLE_BUILTIN_HSUART0 |
| 49 | bool "Enable built-in HSUART0" |
| 50 | default n |
| 51 | select NO_UART_ON_SUPERIO |
| 52 | select DRIVERS_UART_8250MEM_32 |
| 53 | help |
| 54 | The Quark SoC has two HSUART. Choose this option to configure the pads |
| 55 | and enable HSUART0, which can be used for the debug console. |
| 56 | |
Lee Leahy | 87df8d0 | 2016-02-07 14:37:13 -0800 | [diff] [blame] | 57 | config ENABLE_BUILTIN_HSUART1 |
| 58 | bool "Enable built-in HSUART1" |
Lee Leahy | bc518d5 | 2016-05-30 15:01:06 -0700 | [diff] [blame] | 59 | default n |
| 60 | depends on ! ENABLE_BUILTIN_HSUART0 |
Lee Leahy | 87df8d0 | 2016-02-07 14:37:13 -0800 | [diff] [blame] | 61 | select NO_UART_ON_SUPERIO |
| 62 | select DRIVERS_UART_8250MEM_32 |
| 63 | help |
| 64 | The Quark SoC has two HSUART. Choose this option to configure the pads |
| 65 | and enable HSUART1, which can be used for the debug console. |
| 66 | |
| 67 | config TTYS0_BASE |
Lee Leahy | bc518d5 | 2016-05-30 15:01:06 -0700 | [diff] [blame] | 68 | hex "HSUART Base Address" |
Lee Leahy | 87df8d0 | 2016-02-07 14:37:13 -0800 | [diff] [blame] | 69 | default 0xA0019000 |
Lee Leahy | bc518d5 | 2016-05-30 15:01:06 -0700 | [diff] [blame] | 70 | depends on ENABLE_BUILTIN_HSUART0 || ENABLE_BUILTIN_HSUART1 |
Lee Leahy | 87df8d0 | 2016-02-07 14:37:13 -0800 | [diff] [blame] | 71 | help |
Lee Leahy | bc518d5 | 2016-05-30 15:01:06 -0700 | [diff] [blame] | 72 | Memory mapped MMIO of HSUART. |
Lee Leahy | 87df8d0 | 2016-02-07 14:37:13 -0800 | [diff] [blame] | 73 | |
| 74 | config TTYS0_LCS |
| 75 | int |
Lee Leahy | 87df8d0 | 2016-02-07 14:37:13 -0800 | [diff] [blame] | 76 | default 3 |
Lee Leahy | bc518d5 | 2016-05-30 15:01:06 -0700 | [diff] [blame] | 77 | depends on ENABLE_BUILTIN_HSUART0 || ENABLE_BUILTIN_HSUART1 |
Lee Leahy | 87df8d0 | 2016-02-07 14:37:13 -0800 | [diff] [blame] | 78 | |
Lee Leahy | bc518d5 | 2016-05-30 15:01:06 -0700 | [diff] [blame] | 79 | # Console: PCI UART bus 0 << 20, device 20 << 15, function x << 12 |
Lee Leahy | 614ef40 | 2016-05-04 12:50:51 -0700 | [diff] [blame] | 80 | # Valid bit, PCI UART in use: 1 << 31 |
| 81 | config UART_PCI_ADDR |
| 82 | hex |
Lee Leahy | bc518d5 | 2016-05-30 15:01:06 -0700 | [diff] [blame] | 83 | default 0x800a1000 if ENABLE_BUILTIN_HSUART0 |
| 84 | default 0x800a5000 if ENABLE_BUILTIN_HSUART1 |
| 85 | depends on ENABLE_BUILTIN_HSUART0 || ENABLE_BUILTIN_HSUART1 |
Lee Leahy | 614ef40 | 2016-05-04 12:50:51 -0700 | [diff] [blame] | 86 | |
Lee Leahy | 87df8d0 | 2016-02-07 14:37:13 -0800 | [diff] [blame] | 87 | ##### |
Lee Leahy | a7ba56e | 2016-02-07 10:42:14 -0800 | [diff] [blame] | 88 | # Debug support |
| 89 | # The following options provide debug support for the Quark coreboot |
| 90 | # code. The SD LED is used as a binary marker to determine if a |
| 91 | # specific point in the execution flow has been reached. |
| 92 | ##### |
| 93 | |
| 94 | config ENABLE_DEBUG_LED |
| 95 | bool |
| 96 | default n |
| 97 | help |
| 98 | Enable the use of the SD LED for early debugging before serial output |
| 99 | is available. Setting this LED indicates that control has reached the |
| 100 | desired check point. |
| 101 | |
| 102 | config ENABLE_DEBUG_LED_ESRAM |
| 103 | bool "SD LED indicates ESRAM initialized" |
| 104 | default n |
| 105 | select ENABLE_DEBUG_LED |
| 106 | help |
| 107 | Indicate that ESRAM has been successfully initialized. |
| 108 | |
| 109 | config ENABLE_DEBUG_LED_FINDFSP |
| 110 | bool "SD LED indicates fsp.bin file was found" |
| 111 | default n |
| 112 | select ENABLE_DEBUG_LED |
| 113 | help |
| 114 | Indicate that fsp.bin was found. |
| 115 | |
| 116 | config ENABLE_DEBUG_LED_TEMPRAMINIT |
| 117 | bool "SD LED indicates TempRamInit was successful" |
| 118 | default n |
| 119 | select ENABLE_DEBUG_LED |
| 120 | help |
| 121 | Indicate that TempRamInit was successful. |
| 122 | |
| 123 | ##### |
Lee Leahy | 87df8d0 | 2016-02-07 14:37:13 -0800 | [diff] [blame] | 124 | # ESRAM layout |
| 125 | # Specify the portion of the ESRAM for coreboot to use as its data area. |
| 126 | ##### |
| 127 | |
| 128 | config DCACHE_RAM_BASE |
| 129 | hex |
| 130 | default 0x80070000 |
| 131 | |
| 132 | config DCACHE_RAM_SIZE |
| 133 | hex |
| 134 | default 0x00008000 |
| 135 | |
| 136 | ##### |
Lee Leahy | 9fd0895 | 2016-02-02 07:17:06 -0800 | [diff] [blame] | 137 | # Flash layout |
| 138 | # Specify the size of the coreboot file system in the read-only |
| 139 | # (recovery) portion of the flash part. |
| 140 | ##### |
| 141 | |
| 142 | config CBFS_SIZE |
| 143 | hex |
| 144 | default 0x200000 |
| 145 | help |
| 146 | Specify the size of the coreboot file system in the read-only (recovery) |
| 147 | portion of the flash part. On Quark systems the firmware image stores |
| 148 | more than just coreboot, including: |
| 149 | - The chipset microcode (RMU) binary file located at 0xFFF00000 |
| 150 | - Intel Trusted Execution Engine firmware |
| 151 | |
| 152 | ##### |
Lee Leahy | a7ba56e | 2016-02-07 10:42:14 -0800 | [diff] [blame] | 153 | # FSP binary |
| 154 | # The following options control the FSP binary file placement in |
| 155 | # the flash image and ESRAM. This file is required by the Quark |
| 156 | # SoC code to boot coreboot and its payload. |
| 157 | ##### |
| 158 | |
| 159 | config ADD_FSP_RAW_BIN |
| 160 | bool "Add the Intel FSP binary to the flash image without relocation" |
| 161 | default n |
| 162 | depends on PLATFORM_USES_FSP1_1 |
| 163 | help |
| 164 | Select this option to add an Intel FSP binary to |
| 165 | the resulting coreboot image. |
| 166 | |
| 167 | Note: Without this binary, coreboot builds relying on the FSP |
| 168 | will not boot |
| 169 | |
| 170 | config FSP_FILE |
| 171 | string "Intel FSP binary path and filename" |
| 172 | default "3rdparty/blobs/soc/intel/quark/fsp.bin" |
| 173 | depends on PLATFORM_USES_FSP1_1 |
| 174 | depends on ADD_FSP_RAW_BIN |
| 175 | help |
| 176 | The path and filename of the Intel FSP binary for this platform. |
| 177 | |
| 178 | config FSP_IMAGE_ID_STRING |
| 179 | string "8 byte platform string identifying the FSP platform" |
| 180 | default "QUK-FSP0" |
| 181 | depends on PLATFORM_USES_FSP1_1 |
| 182 | help |
| 183 | 8 ASCII character byte signature string that will help match the FSP |
| 184 | binary to a supported hardware configuration. |
| 185 | |
| 186 | config FSP_LOC |
| 187 | hex |
| 188 | default 0xfff80000 |
| 189 | depends on PLATFORM_USES_FSP1_1 |
| 190 | help |
| 191 | The location in CBFS that the FSP is located. This must match the |
| 192 | value that is set in the FSP binary. If the FSP needs to be moved, |
| 193 | rebase the FSP with Intel's BCT (tool). |
| 194 | |
| 195 | config FSP_ESRAM_LOC |
| 196 | hex |
| 197 | default 0x80000000 |
| 198 | depends on PLATFORM_USES_FSP1_1 |
| 199 | help |
| 200 | The location in ESRAM where a copy of the FSP binary is placed. |
| 201 | |
Lee Leahy | d4edacb | 2016-02-08 07:12:30 -0800 | [diff] [blame] | 202 | config RELOCATE_FSP_INTO_DRAM |
| 203 | bool "Relocate FSP into DRAM" |
| 204 | default n |
| 205 | depends on PLATFORM_USES_FSP1_1 |
| 206 | help |
| 207 | Relocate the FSP binary into DRAM before the call to SiliconInit. |
| 208 | |
Lee Leahy | a7ba56e | 2016-02-07 10:42:14 -0800 | [diff] [blame] | 209 | ##### |
Lee Leahy | 9fd0895 | 2016-02-02 07:17:06 -0800 | [diff] [blame] | 210 | # RMU binary |
| 211 | # The following options control the Quark chipset microcode file |
| 212 | # placement in the flash image. This file is required to bring |
| 213 | # the Quark processor out of reset. |
| 214 | ##### |
| 215 | |
| 216 | config ADD_RMU_FILE |
| 217 | bool "Should the RMU binary be added to the flash image?" |
| 218 | default n |
| 219 | help |
| 220 | The RMU file is required to get the chip out of reset. |
| 221 | |
| 222 | config RMU_FILE |
| 223 | string |
| 224 | default "3rdparty/blobs/soc/intel/quark/rmu.bin" |
| 225 | depends on ADD_RMU_FILE |
| 226 | help |
| 227 | The path and filename of the Intel Quark RMU binary. |
| 228 | |
| 229 | config RMU_LOC |
| 230 | hex |
| 231 | default 0xfff00000 |
| 232 | depends on ADD_RMU_FILE |
| 233 | help |
| 234 | The location in CBFS that the RMU is located. It must match the |
| 235 | strap-determined base address. |
| 236 | |
Lee Leahy | ce9e21a | 2016-06-05 18:48:31 -0700 | [diff] [blame] | 237 | ##### |
| 238 | # Bootblock |
| 239 | # The following options support the C_ENVIRONMENT_BOOTBLOCK. |
| 240 | ##### |
| 241 | |
| 242 | config DCACHE_BSP_STACK_SIZE |
| 243 | hex |
| 244 | default 0x4000 |
| 245 | |
| 246 | config C_ENV_BOOTBLOCK_SIZE |
| 247 | hex |
| 248 | default 0x8000 |
| 249 | |
Lee Leahy | 2ed7eb7 | 2016-01-01 18:08:48 -0800 | [diff] [blame] | 250 | endif # SOC_INTEL_QUARK |