Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 1 | config SOC_INTEL_BRASWELL |
| 2 | bool |
| 3 | help |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 4 | Braswell M/D part support. |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 5 | |
| 6 | if SOC_INTEL_BRASWELL |
| 7 | |
| 8 | config CPU_SPECIFIC_OPTIONS |
| 9 | def_bool y |
| 10 | select ARCH_BOOTBLOCK_X86_32 |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 11 | select ARCH_RAMSTAGE_X86_32 |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 12 | select ARCH_ROMSTAGE_X86_32 |
| 13 | select ARCH_VERSTAGE_X86_32 |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 14 | select BACKUP_DEFAULT_SMM_REGION |
| 15 | select CACHE_MRC_SETTINGS |
Alexandru Gagniuc | 27fea06 | 2015-08-29 20:00:24 -0700 | [diff] [blame] | 16 | select CACHE_RELOCATED_RAMSTAGE_OUTSIDE_CBMEM if RELOCATABLE_RAMSTAGE |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 17 | select COLLECT_TIMESTAMPS |
Martin Roth | df02c33 | 2015-07-01 23:09:42 -0600 | [diff] [blame] | 18 | select SUPPORT_CPU_UCODE_IN_CBFS |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 19 | select CPU_INTEL_TURBO_NOT_PACKAGE_SCOPED |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 20 | select HAS_PRECBMEM_TIMESTAMP_REGION |
| 21 | select HAVE_MONOTONIC_TIMER |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 22 | select HAVE_SMI_HANDLER |
| 23 | select HAVE_HARD_RESET |
| 24 | select MMCONF_SUPPORT |
| 25 | select MMCONF_SUPPORT_DEFAULT |
| 26 | select RELOCATABLE_MODULES |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 27 | select PARALLEL_MP |
| 28 | select PCIEXP_ASPM |
Lee Leahy | acb9c0b | 2015-07-02 11:55:18 -0700 | [diff] [blame] | 29 | select PCIEXP_CLK_PM |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 30 | select PCIEXP_COMMON_CLOCK |
Lee Leahy | acb9c0b | 2015-07-02 11:55:18 -0700 | [diff] [blame] | 31 | select PCIEXP_L1_SUB_STATE |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 32 | select PLATFORM_USES_FSP1_1 |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 33 | select REG_SCRIPT |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 34 | select SOC_INTEL_COMMON |
| 35 | select SOC_INTEL_COMMON_FSP_RAM_INIT |
| 36 | select SOC_INTEL_COMMON_FSP_ROMSTAGE |
| 37 | select SOC_INTEL_COMMON_RESET |
| 38 | select SOC_INTEL_COMMON_STACK |
| 39 | select SOC_INTEL_COMMON_STAGE_CACHE |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 40 | select SMM_TSEG |
| 41 | select SMP |
| 42 | select SPI_FLASH |
| 43 | select SSE2 |
| 44 | select SUPPORT_CPU_UCODE_IN_CBFS |
| 45 | select TSC_CONSTANT_RATE |
| 46 | select TSC_MONOTONIC_TIMER |
| 47 | select TSC_SYNC_MFENCE |
| 48 | select UDELAY_TSC |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 49 | select USE_GENERIC_FSP_CAR_INC |
Martin Roth | 3fda3c2 | 2015-07-09 21:02:26 -0600 | [diff] [blame] | 50 | select HAVE_INTEL_FIRMWARE |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 51 | |
| 52 | config BOOTBLOCK_CPU_INIT |
| 53 | string |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 54 | default "soc/intel/braswell/bootblock/bootblock.c" |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 55 | |
| 56 | config MMCONF_BASE_ADDRESS |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 57 | hex "PCIe CFG Base Address" |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 58 | default 0xe0000000 |
| 59 | |
| 60 | config MAX_CPUS |
| 61 | int |
| 62 | default 4 |
| 63 | |
| 64 | config CPU_ADDR_BITS |
| 65 | int |
| 66 | default 36 |
| 67 | |
| 68 | config SMM_TSEG_SIZE |
| 69 | hex |
| 70 | default 0x800000 |
| 71 | |
| 72 | config SMM_RESERVED_SIZE |
| 73 | hex |
| 74 | default 0x100000 |
| 75 | |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 76 | # Cache As RAM region layout: |
| 77 | # |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 78 | # +-------------+ DCACHE_RAM_BASE + DCACHE_RAM_SIZE |
| 79 | # | Stack |\ |
| 80 | # | | | * DCACHE_RAM_ROMSTAGE_STACK_SIZE |
| 81 | # | v |/ |
| 82 | # +-------------+ |
| 83 | # | ^ | |
| 84 | # | | | |
| 85 | # | CAR Globals | |
| 86 | # +-------------+ DCACHE_RAM_BASE |
| 87 | # |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 88 | |
| 89 | config DCACHE_RAM_BASE |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 90 | hex "Temporary RAM Base Address" |
| 91 | default 0xfef00000 |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 92 | |
| 93 | config DCACHE_RAM_SIZE |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 94 | hex "Temporary RAM Size" |
| 95 | default 0x4000 |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 96 | help |
| 97 | The size of the cache-as-ram region required during bootblock |
| 98 | and/or romstage. Note DCACHE_RAM_SIZE and DCACHE_RAM_MRC_VAR_SIZE |
| 99 | must add up to a power of 2. |
| 100 | |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 101 | config DCACHE_RAM_ROMSTAGE_STACK_SIZE |
| 102 | hex |
| 103 | default 0x800 |
| 104 | help |
| 105 | The amount of anticipated stack usage from the data cache |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 106 | during pre-ram rom stage execution. |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 107 | |
| 108 | config RESET_ON_INVALID_RAMSTAGE_CACHE |
| 109 | bool "Reset the system on S3 wake when ramstage cache invalid." |
| 110 | default n |
| 111 | depends on RELOCATABLE_RAMSTAGE |
| 112 | help |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 113 | The haswell romstage code caches the loaded ramstage program |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 114 | in SMM space. On S3 wake the romstage will copy over a fresh |
| 115 | ramstage that was cached in the SMM space. This option determines |
| 116 | the action to take when the ramstage cache is invalid. If selected |
| 117 | the system will reset otherwise the ramstage will be reloaded from |
| 118 | cbfs. |
| 119 | |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 120 | config ENABLE_BUILTIN_COM1 |
| 121 | bool "Enable builtin COM1 Serial Port" |
| 122 | default n |
| 123 | help |
| 124 | The PMC has a legacy COM1 serial port. Choose this option to |
| 125 | configure the pads and enable it. This serial port can be used for |
| 126 | the debug console. |
| 127 | |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 128 | config HAVE_IFD_BIN |
Martin Roth | 3fda3c2 | 2015-07-09 21:02:26 -0600 | [diff] [blame] | 129 | def_bool y |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 130 | |
| 131 | config BUILD_WITH_FAKE_IFD |
Martin Roth | 3fda3c2 | 2015-07-09 21:02:26 -0600 | [diff] [blame] | 132 | def_bool !HAVE_IFD_BIN |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 133 | |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 134 | config HAVE_ME_BIN |
Martin Roth | 3fda3c2 | 2015-07-09 21:02:26 -0600 | [diff] [blame] | 135 | def_bool y |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 136 | |
| 137 | config IED_REGION_SIZE |
| 138 | hex |
| 139 | default 0x400000 |
| 140 | |
Aaron Durbin | 3953e39 | 2015-09-03 00:41:29 -0500 | [diff] [blame] | 141 | config CHIPSET_BOOTBLOCK_INCLUDE |
| 142 | string |
| 143 | default "soc/intel/braswell/bootblock/timestamp.inc" |
| 144 | |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 145 | endif |