blob: 3466aade679ae5259326174f99c6a3f619264087 [file] [log] [blame]
Lee Leahy77ff0b12015-05-05 15:07:29 -07001config SOC_INTEL_BRASWELL
2 bool
3 help
Lee Leahy32471722015-04-20 15:20:28 -07004 Braswell M/D part support.
Lee Leahy77ff0b12015-05-05 15:07:29 -07005
6if SOC_INTEL_BRASWELL
7
8config CPU_SPECIFIC_OPTIONS
9 def_bool y
10 select ARCH_BOOTBLOCK_X86_32
Lee Leahy77ff0b12015-05-05 15:07:29 -070011 select ARCH_RAMSTAGE_X86_32
Lee Leahy32471722015-04-20 15:20:28 -070012 select ARCH_ROMSTAGE_X86_32
13 select ARCH_VERSTAGE_X86_32
Lee Leahy77ff0b12015-05-05 15:07:29 -070014 select CACHE_MRC_SETTINGS
Alexandru Gagniuc27fea062015-08-29 20:00:24 -070015 select CACHE_RELOCATED_RAMSTAGE_OUTSIDE_CBMEM if RELOCATABLE_RAMSTAGE
Lee Leahy77ff0b12015-05-05 15:07:29 -070016 select COLLECT_TIMESTAMPS
Martin Rothdf02c332015-07-01 23:09:42 -060017 select SUPPORT_CPU_UCODE_IN_CBFS
Lee Leahy77ff0b12015-05-05 15:07:29 -070018 select CPU_INTEL_TURBO_NOT_PACKAGE_SCOPED
Lee Leahy32471722015-04-20 15:20:28 -070019 select HAVE_MONOTONIC_TIMER
Lee Leahy77ff0b12015-05-05 15:07:29 -070020 select HAVE_SMI_HANDLER
21 select HAVE_HARD_RESET
22 select MMCONF_SUPPORT
23 select MMCONF_SUPPORT_DEFAULT
Aaron Durbinf5ff8542016-05-05 10:38:03 -050024 select NO_FIXED_XIP_ROM_SIZE
Lee Leahy77ff0b12015-05-05 15:07:29 -070025 select RELOCATABLE_MODULES
Lee Leahy77ff0b12015-05-05 15:07:29 -070026 select PARALLEL_MP
27 select PCIEXP_ASPM
Lee Leahyacb9c0b2015-07-02 11:55:18 -070028 select PCIEXP_CLK_PM
Lee Leahy77ff0b12015-05-05 15:07:29 -070029 select PCIEXP_COMMON_CLOCK
Lee Leahy32471722015-04-20 15:20:28 -070030 select PLATFORM_USES_FSP1_1
Lee Leahy77ff0b12015-05-05 15:07:29 -070031 select REG_SCRIPT
Lee Leahy32471722015-04-20 15:20:28 -070032 select SOC_INTEL_COMMON
Duncan Lauriee73da802015-09-08 16:16:34 -070033 select SOC_INTEL_COMMON_ACPI_WAKE_SOURCE
Lee Leahy32471722015-04-20 15:20:28 -070034 select SOC_INTEL_COMMON_RESET
Lee Leahy77ff0b12015-05-05 15:07:29 -070035 select SMM_TSEG
36 select SMP
37 select SPI_FLASH
38 select SSE2
39 select SUPPORT_CPU_UCODE_IN_CBFS
40 select TSC_CONSTANT_RATE
41 select TSC_MONOTONIC_TIMER
42 select TSC_SYNC_MFENCE
43 select UDELAY_TSC
Lee Leahy32471722015-04-20 15:20:28 -070044 select USE_GENERIC_FSP_CAR_INC
Martin Roth3fda3c22015-07-09 21:02:26 -060045 select HAVE_INTEL_FIRMWARE
Martin Roth3a543182015-09-28 15:27:24 -060046 select HAVE_SPI_CONSOLE_SUPPORT
Lee Leahy77ff0b12015-05-05 15:07:29 -070047
48config BOOTBLOCK_CPU_INIT
49 string
Lee Leahy32471722015-04-20 15:20:28 -070050 default "soc/intel/braswell/bootblock/bootblock.c"
Lee Leahy77ff0b12015-05-05 15:07:29 -070051
52config MMCONF_BASE_ADDRESS
Lee Leahy32471722015-04-20 15:20:28 -070053 hex "PCIe CFG Base Address"
Lee Leahy77ff0b12015-05-05 15:07:29 -070054 default 0xe0000000
55
56config MAX_CPUS
57 int
58 default 4
59
60config CPU_ADDR_BITS
61 int
62 default 36
63
64config SMM_TSEG_SIZE
65 hex
66 default 0x800000
67
68config SMM_RESERVED_SIZE
69 hex
70 default 0x100000
71
Lee Leahy77ff0b12015-05-05 15:07:29 -070072# Cache As RAM region layout:
73#
Lee Leahy77ff0b12015-05-05 15:07:29 -070074# +-------------+ DCACHE_RAM_BASE + DCACHE_RAM_SIZE
75# | Stack |\
76# | | | * DCACHE_RAM_ROMSTAGE_STACK_SIZE
77# | v |/
78# +-------------+
79# | ^ |
80# | | |
81# | CAR Globals |
82# +-------------+ DCACHE_RAM_BASE
83#
Lee Leahy77ff0b12015-05-05 15:07:29 -070084
85config DCACHE_RAM_BASE
Lee Leahy32471722015-04-20 15:20:28 -070086 hex "Temporary RAM Base Address"
87 default 0xfef00000
Lee Leahy77ff0b12015-05-05 15:07:29 -070088
89config DCACHE_RAM_SIZE
Lee Leahy32471722015-04-20 15:20:28 -070090 hex "Temporary RAM Size"
91 default 0x4000
Lee Leahy77ff0b12015-05-05 15:07:29 -070092 help
93 The size of the cache-as-ram region required during bootblock
94 and/or romstage. Note DCACHE_RAM_SIZE and DCACHE_RAM_MRC_VAR_SIZE
95 must add up to a power of 2.
96
Lee Leahy77ff0b12015-05-05 15:07:29 -070097config DCACHE_RAM_ROMSTAGE_STACK_SIZE
98 hex
99 default 0x800
100 help
101 The amount of anticipated stack usage from the data cache
Lee Leahy32471722015-04-20 15:20:28 -0700102 during pre-ram rom stage execution.
Lee Leahy77ff0b12015-05-05 15:07:29 -0700103
104config RESET_ON_INVALID_RAMSTAGE_CACHE
105 bool "Reset the system on S3 wake when ramstage cache invalid."
106 default n
107 depends on RELOCATABLE_RAMSTAGE
108 help
Lee Leahy32471722015-04-20 15:20:28 -0700109 The haswell romstage code caches the loaded ramstage program
Lee Leahy77ff0b12015-05-05 15:07:29 -0700110 in SMM space. On S3 wake the romstage will copy over a fresh
111 ramstage that was cached in the SMM space. This option determines
112 the action to take when the ramstage cache is invalid. If selected
113 the system will reset otherwise the ramstage will be reloaded from
114 cbfs.
115
Lee Leahy77ff0b12015-05-05 15:07:29 -0700116config ENABLE_BUILTIN_COM1
117 bool "Enable builtin COM1 Serial Port"
118 default n
119 help
120 The PMC has a legacy COM1 serial port. Choose this option to
121 configure the pads and enable it. This serial port can be used for
122 the debug console.
123
Lee Leahy77ff0b12015-05-05 15:07:29 -0700124config HAVE_IFD_BIN
Martin Roth481a19c2016-01-04 14:23:53 -0700125 def_bool n
Lee Leahy77ff0b12015-05-05 15:07:29 -0700126
127config BUILD_WITH_FAKE_IFD
Martin Roth3fda3c22015-07-09 21:02:26 -0600128 def_bool !HAVE_IFD_BIN
Lee Leahy77ff0b12015-05-05 15:07:29 -0700129
Lee Leahy32471722015-04-20 15:20:28 -0700130config HAVE_ME_BIN
Martin Roth481a19c2016-01-04 14:23:53 -0700131 def_bool n
Lee Leahy32471722015-04-20 15:20:28 -0700132
133config IED_REGION_SIZE
134 hex
135 default 0x400000
136
Aaron Durbin3953e392015-09-03 00:41:29 -0500137config CHIPSET_BOOTBLOCK_INCLUDE
138 string
139 default "soc/intel/braswell/bootblock/timestamp.inc"
140
Lee Leahy77ff0b12015-05-05 15:07:29 -0700141endif