Aaron Durbin | 9a7d7bc | 2013-09-07 00:41:48 -0500 | [diff] [blame] | 1 | config SOC_INTEL_BAYTRAIL |
| 2 | bool |
| 3 | help |
| 4 | Bay Trail M/D part support. |
| 5 | |
| 6 | if SOC_INTEL_BAYTRAIL |
| 7 | |
| 8 | config CPU_SPECIFIC_OPTIONS |
| 9 | def_bool y |
Furquan Shaikh | 99ac98f | 2014-04-23 10:18:48 -0700 | [diff] [blame] | 10 | select ARCH_BOOTBLOCK_X86_32 |
Stefan Reinauer | 77b1655 | 2015-01-14 19:51:47 +0100 | [diff] [blame] | 11 | select ARCH_VERSTAGE_X86_32 |
Furquan Shaikh | 99ac98f | 2014-04-23 10:18:48 -0700 | [diff] [blame] | 12 | select ARCH_ROMSTAGE_X86_32 |
| 13 | select ARCH_RAMSTAGE_X86_32 |
Kein Yuan | 3511023 | 2014-02-22 12:26:55 -0800 | [diff] [blame] | 14 | select BACKUP_DEFAULT_SMM_REGION |
Aaron Durbin | 9a7d7bc | 2013-09-07 00:41:48 -0500 | [diff] [blame] | 15 | select CACHE_MRC_SETTINGS |
Aaron Durbin | 59d1d87 | 2014-01-14 17:34:10 -0600 | [diff] [blame] | 16 | select CPU_INTEL_TURBO_NOT_PACKAGE_SCOPED |
Kyösti Mälkki | 4851bf2 | 2014-12-27 12:57:06 +0200 | [diff] [blame] | 17 | select SUPPORT_CPU_UCODE_IN_CBFS |
Vadim Bendebury | c04e171 | 2013-09-27 16:21:04 -0700 | [diff] [blame] | 18 | select HAVE_SMI_HANDLER |
Aaron Durbin | 6ecdb68 | 2013-10-10 20:54:57 -0500 | [diff] [blame] | 19 | select HAVE_HARD_RESET |
Vadim Bendebury | c04e171 | 2013-09-27 16:21:04 -0700 | [diff] [blame] | 20 | select MMCONF_SUPPORT |
| 21 | select MMCONF_SUPPORT_DEFAULT |
| 22 | select RELOCATABLE_MODULES |
Kyösti Mälkki | d05d0db | 2014-10-16 14:54:03 +0300 | [diff] [blame] | 23 | select RELOCATABLE_RAMSTAGE |
Aaron Durbin | 302cbd6 | 2013-10-21 12:36:17 -0500 | [diff] [blame] | 24 | select PARALLEL_MP |
Duncan Laurie | c6313db | 2014-01-16 11:18:36 -0800 | [diff] [blame] | 25 | select PCIEXP_ASPM |
| 26 | select PCIEXP_COMMON_CLOCK |
Isaac Christensen | d2044cc | 2014-10-01 13:37:36 -0600 | [diff] [blame] | 27 | select REG_SCRIPT |
Vadim Bendebury | c04e171 | 2013-09-27 16:21:04 -0700 | [diff] [blame] | 28 | select SMM_TSEG |
| 29 | select SMP |
| 30 | select SPI_FLASH |
| 31 | select SSE2 |
| 32 | select SUPPORT_CPU_UCODE_IN_CBFS |
| 33 | select TSC_CONSTANT_RATE |
Aaron Durbin | ce7ecf9 | 2013-10-24 08:42:10 -0500 | [diff] [blame] | 34 | select TSC_MONOTONIC_TIMER |
Vadim Bendebury | c04e171 | 2013-09-27 16:21:04 -0700 | [diff] [blame] | 35 | select TSC_SYNC_MFENCE |
| 36 | select UDELAY_TSC |
Stefan Reinauer | 9616f3c | 2015-04-29 10:45:22 -0700 | [diff] [blame] | 37 | select SOC_INTEL_COMMON |
Martin Roth | c407cb9 | 2015-06-23 19:59:30 -0600 | [diff] [blame] | 38 | select HAVE_INTEL_FIRMWARE |
Aaron Durbin | 9a7d7bc | 2013-09-07 00:41:48 -0500 | [diff] [blame] | 39 | |
| 40 | config BOOTBLOCK_CPU_INIT |
| 41 | string |
| 42 | default "soc/intel/baytrail/bootblock/bootblock.c" |
| 43 | |
| 44 | config MMCONF_BASE_ADDRESS |
| 45 | hex |
| 46 | default 0xe0000000 |
| 47 | |
| 48 | config MAX_CPUS |
| 49 | int |
| 50 | default 4 |
| 51 | |
| 52 | config CPU_ADDR_BITS |
| 53 | int |
| 54 | default 36 |
| 55 | |
| 56 | config SMM_TSEG_SIZE |
| 57 | hex |
| 58 | default 0x800000 |
| 59 | |
| 60 | config SMM_RESERVED_SIZE |
| 61 | hex |
| 62 | default 0x100000 |
| 63 | |
| 64 | config HAVE_MRC |
| 65 | bool "Add a Memory Reference Code binary" |
| 66 | default y |
| 67 | help |
| 68 | Select this option to add a blob containing |
| 69 | memory reference code. |
| 70 | Note: Without this binary coreboot will not work |
| 71 | |
| 72 | if HAVE_MRC |
| 73 | |
| 74 | config MRC_FILE |
| 75 | string "Intel memory refeference code path and filename" |
Patrick Georgi | 26e24cc | 2015-05-05 22:27:25 +0200 | [diff] [blame] | 76 | default "3rdparty/blobs/northbridge/intel/sandybridge/systemagent-r6.bin" |
Aaron Durbin | 9a7d7bc | 2013-09-07 00:41:48 -0500 | [diff] [blame] | 77 | help |
| 78 | The path and filename of the file to use as System Agent |
| 79 | binary. Note that this points to the sandybridge binary file |
| 80 | which is will not work, but it serves its purpose to do builds. |
| 81 | |
| 82 | config MRC_BIN_ADDRESS |
| 83 | hex |
| 84 | default 0xfffa0000 |
| 85 | |
Shawn Nematbakhsh | 13d9341 | 2013-11-26 15:37:43 -0800 | [diff] [blame] | 86 | config MRC_RMT |
| 87 | bool "Enable MRC RMT training + debug prints" |
| 88 | default n |
| 89 | |
Aaron Durbin | 9a7d7bc | 2013-09-07 00:41:48 -0500 | [diff] [blame] | 90 | endif # HAVE_MRC |
| 91 | |
Aaron Durbin | 9a7d7bc | 2013-09-07 00:41:48 -0500 | [diff] [blame] | 92 | # Cache As RAM region layout: |
| 93 | # |
| 94 | # +-------------+ DCACHE_RAM_BASE + DCACHE_RAM_SIZE + DCACHE_RAM_MRC_VAR_SIZE |
| 95 | # | MRC usage | |
| 96 | # | | |
| 97 | # +-------------+ DCACHE_RAM_BASE + DCACHE_RAM_SIZE |
| 98 | # | Stack |\ |
| 99 | # | | | * DCACHE_RAM_ROMSTAGE_STACK_SIZE |
| 100 | # | v |/ |
| 101 | # +-------------+ |
| 102 | # | ^ | |
| 103 | # | | | |
| 104 | # | CAR Globals | |
| 105 | # +-------------+ DCACHE_RAM_BASE |
| 106 | # |
| 107 | # Note that the MRC binary is linked to assume the region marked as "MRC usage" |
| 108 | # starts at DCACHE_RAM_BASE + DCACHE_RAM_SIZE. If those values change then |
| 109 | # a new MRC binary needs to be produced with the updated start and size |
| 110 | # information. |
| 111 | |
| 112 | config DCACHE_RAM_BASE |
| 113 | hex |
Aaron Durbin | 89f5292 | 2014-03-19 11:48:33 -0500 | [diff] [blame] | 114 | default 0xfe000000 |
Aaron Durbin | 9a7d7bc | 2013-09-07 00:41:48 -0500 | [diff] [blame] | 115 | |
| 116 | config DCACHE_RAM_SIZE |
| 117 | hex |
Aaron Durbin | 08a4613 | 2013-10-07 16:24:44 -0500 | [diff] [blame] | 118 | default 0x8000 |
Aaron Durbin | 9a7d7bc | 2013-09-07 00:41:48 -0500 | [diff] [blame] | 119 | help |
| 120 | The size of the cache-as-ram region required during bootblock |
| 121 | and/or romstage. Note DCACHE_RAM_SIZE and DCACHE_RAM_MRC_VAR_SIZE |
| 122 | must add up to a power of 2. |
| 123 | |
| 124 | config DCACHE_RAM_MRC_VAR_SIZE |
| 125 | hex |
Aaron Durbin | 08a4613 | 2013-10-07 16:24:44 -0500 | [diff] [blame] | 126 | default 0x8000 |
Aaron Durbin | 9a7d7bc | 2013-09-07 00:41:48 -0500 | [diff] [blame] | 127 | help |
| 128 | The amount of cache-as-ram region required by the reference code. |
| 129 | |
| 130 | config DCACHE_RAM_ROMSTAGE_STACK_SIZE |
| 131 | hex |
| 132 | default 0x800 |
| 133 | help |
| 134 | The amount of anticipated stack usage from the data cache |
Daniele Forsi | 53847a2 | 2014-07-22 18:00:56 +0200 | [diff] [blame] | 135 | during pre-RAM ROM stage execution. |
Aaron Durbin | 9a7d7bc | 2013-09-07 00:41:48 -0500 | [diff] [blame] | 136 | |
| 137 | config RESET_ON_INVALID_RAMSTAGE_CACHE |
| 138 | bool "Reset the system on S3 wake when ramstage cache invalid." |
| 139 | default n |
| 140 | depends on RELOCATABLE_RAMSTAGE |
| 141 | help |
| 142 | The baytrail romstage code caches the loaded ramstage program |
| 143 | in SMM space. On S3 wake the romstage will copy over a fresh |
| 144 | ramstage that was cached in the SMM space. This option determines |
| 145 | the action to take when the ramstage cache is invalid. If selected |
| 146 | the system will reset otherwise the ramstage will be reloaded from |
| 147 | cbfs. |
| 148 | |
Aaron Durbin | 9a7d7bc | 2013-09-07 00:41:48 -0500 | [diff] [blame] | 149 | config ENABLE_BUILTIN_COM1 |
| 150 | bool "Enable builtin COM1 Serial Port" |
| 151 | default n |
| 152 | help |
| 153 | The PMC has a legacy COM1 serial port. Choose this option to |
| 154 | configure the pads and enable it. This serial port can be used for |
| 155 | the debug console. |
| 156 | |
Vladimir Serbinenko | f1d6e7e | 2014-08-09 07:16:10 +0200 | [diff] [blame] | 157 | config HAVE_REFCODE_BLOB |
| 158 | depends on ARCH_X86 |
| 159 | bool "An external reference code blob should be put into cbfs." |
| 160 | default n |
| 161 | help |
| 162 | The reference code blob will be placed into cbfs. |
| 163 | |
| 164 | if HAVE_REFCODE_BLOB |
| 165 | |
| 166 | config REFCODE_BLOB_FILE |
| 167 | string "Path and filename to reference code blob." |
| 168 | default "refcode.elf" |
| 169 | help |
| 170 | The path and filename to the file to be added to cbfs. |
| 171 | |
| 172 | endif # HAVE_REFCODE_BLOB |
| 173 | |
Aaron Durbin | 3953e39 | 2015-09-03 00:41:29 -0500 | [diff] [blame^] | 174 | config CHIPSET_BOOTBLOCK_INCLUDE |
| 175 | string |
| 176 | default "soc/intel/baytrail/bootblock/timestamp.inc" |
| 177 | |
Aaron Durbin | 9a7d7bc | 2013-09-07 00:41:48 -0500 | [diff] [blame] | 178 | endif |