blob: 5a4105610371687a224a7fe58bab3e86a9509e41 [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 BACKUP_DEFAULT_SMM_REGION
15 select CACHE_MRC_SETTINGS
Alexandru Gagniuc27fea062015-08-29 20:00:24 -070016 select CACHE_RELOCATED_RAMSTAGE_OUTSIDE_CBMEM if RELOCATABLE_RAMSTAGE
Lee Leahy77ff0b12015-05-05 15:07:29 -070017 select COLLECT_TIMESTAMPS
Martin Rothdf02c332015-07-01 23:09:42 -060018 select SUPPORT_CPU_UCODE_IN_CBFS
Lee Leahy77ff0b12015-05-05 15:07:29 -070019 select CPU_INTEL_TURBO_NOT_PACKAGE_SCOPED
Lee Leahy32471722015-04-20 15:20:28 -070020 select HAS_PRECBMEM_TIMESTAMP_REGION
21 select HAVE_MONOTONIC_TIMER
Lee Leahy77ff0b12015-05-05 15:07:29 -070022 select HAVE_SMI_HANDLER
23 select HAVE_HARD_RESET
24 select MMCONF_SUPPORT
25 select MMCONF_SUPPORT_DEFAULT
26 select RELOCATABLE_MODULES
Lee Leahy77ff0b12015-05-05 15:07:29 -070027 select PARALLEL_MP
28 select PCIEXP_ASPM
Lee Leahyacb9c0b2015-07-02 11:55:18 -070029 select PCIEXP_CLK_PM
Lee Leahy77ff0b12015-05-05 15:07:29 -070030 select PCIEXP_COMMON_CLOCK
Lee Leahyacb9c0b2015-07-02 11:55:18 -070031 select PCIEXP_L1_SUB_STATE
Lee Leahy32471722015-04-20 15:20:28 -070032 select PLATFORM_USES_FSP1_1
Lee Leahy77ff0b12015-05-05 15:07:29 -070033 select REG_SCRIPT
Lee Leahy32471722015-04-20 15:20:28 -070034 select SOC_INTEL_COMMON
Duncan Lauriee73da802015-09-08 16:16:34 -070035 select SOC_INTEL_COMMON_ACPI_WAKE_SOURCE
Lee Leahy32471722015-04-20 15:20:28 -070036 select SOC_INTEL_COMMON_FSP_RAM_INIT
37 select SOC_INTEL_COMMON_FSP_ROMSTAGE
38 select SOC_INTEL_COMMON_RESET
39 select SOC_INTEL_COMMON_STACK
40 select SOC_INTEL_COMMON_STAGE_CACHE
Lee Leahy77ff0b12015-05-05 15:07:29 -070041 select SMM_TSEG
42 select SMP
43 select SPI_FLASH
44 select SSE2
45 select SUPPORT_CPU_UCODE_IN_CBFS
46 select TSC_CONSTANT_RATE
47 select TSC_MONOTONIC_TIMER
48 select TSC_SYNC_MFENCE
49 select UDELAY_TSC
Lee Leahy32471722015-04-20 15:20:28 -070050 select USE_GENERIC_FSP_CAR_INC
Martin Roth3fda3c22015-07-09 21:02:26 -060051 select HAVE_INTEL_FIRMWARE
Martin Roth3a543182015-09-28 15:27:24 -060052 select HAVE_SPI_CONSOLE_SUPPORT
Lee Leahy77ff0b12015-05-05 15:07:29 -070053
54config BOOTBLOCK_CPU_INIT
55 string
Lee Leahy32471722015-04-20 15:20:28 -070056 default "soc/intel/braswell/bootblock/bootblock.c"
Lee Leahy77ff0b12015-05-05 15:07:29 -070057
58config MMCONF_BASE_ADDRESS
Lee Leahy32471722015-04-20 15:20:28 -070059 hex "PCIe CFG Base Address"
Lee Leahy77ff0b12015-05-05 15:07:29 -070060 default 0xe0000000
61
62config MAX_CPUS
63 int
64 default 4
65
66config CPU_ADDR_BITS
67 int
68 default 36
69
70config SMM_TSEG_SIZE
71 hex
72 default 0x800000
73
74config SMM_RESERVED_SIZE
75 hex
76 default 0x100000
77
Lee Leahy77ff0b12015-05-05 15:07:29 -070078# Cache As RAM region layout:
79#
Lee Leahy77ff0b12015-05-05 15:07:29 -070080# +-------------+ DCACHE_RAM_BASE + DCACHE_RAM_SIZE
81# | Stack |\
82# | | | * DCACHE_RAM_ROMSTAGE_STACK_SIZE
83# | v |/
84# +-------------+
85# | ^ |
86# | | |
87# | CAR Globals |
88# +-------------+ DCACHE_RAM_BASE
89#
Lee Leahy77ff0b12015-05-05 15:07:29 -070090
91config DCACHE_RAM_BASE
Lee Leahy32471722015-04-20 15:20:28 -070092 hex "Temporary RAM Base Address"
93 default 0xfef00000
Lee Leahy77ff0b12015-05-05 15:07:29 -070094
95config DCACHE_RAM_SIZE
Lee Leahy32471722015-04-20 15:20:28 -070096 hex "Temporary RAM Size"
97 default 0x4000
Lee Leahy77ff0b12015-05-05 15:07:29 -070098 help
99 The size of the cache-as-ram region required during bootblock
100 and/or romstage. Note DCACHE_RAM_SIZE and DCACHE_RAM_MRC_VAR_SIZE
101 must add up to a power of 2.
102
Lee Leahy77ff0b12015-05-05 15:07:29 -0700103config DCACHE_RAM_ROMSTAGE_STACK_SIZE
104 hex
105 default 0x800
106 help
107 The amount of anticipated stack usage from the data cache
Lee Leahy32471722015-04-20 15:20:28 -0700108 during pre-ram rom stage execution.
Lee Leahy77ff0b12015-05-05 15:07:29 -0700109
110config RESET_ON_INVALID_RAMSTAGE_CACHE
111 bool "Reset the system on S3 wake when ramstage cache invalid."
112 default n
113 depends on RELOCATABLE_RAMSTAGE
114 help
Lee Leahy32471722015-04-20 15:20:28 -0700115 The haswell romstage code caches the loaded ramstage program
Lee Leahy77ff0b12015-05-05 15:07:29 -0700116 in SMM space. On S3 wake the romstage will copy over a fresh
117 ramstage that was cached in the SMM space. This option determines
118 the action to take when the ramstage cache is invalid. If selected
119 the system will reset otherwise the ramstage will be reloaded from
120 cbfs.
121
Lee Leahy77ff0b12015-05-05 15:07:29 -0700122config ENABLE_BUILTIN_COM1
123 bool "Enable builtin COM1 Serial Port"
124 default n
125 help
126 The PMC has a legacy COM1 serial port. Choose this option to
127 configure the pads and enable it. This serial port can be used for
128 the debug console.
129
Lee Leahy77ff0b12015-05-05 15:07:29 -0700130config HAVE_IFD_BIN
Martin Roth3fda3c22015-07-09 21:02:26 -0600131 def_bool y
Lee Leahy77ff0b12015-05-05 15:07:29 -0700132
133config BUILD_WITH_FAKE_IFD
Martin Roth3fda3c22015-07-09 21:02:26 -0600134 def_bool !HAVE_IFD_BIN
Lee Leahy77ff0b12015-05-05 15:07:29 -0700135
Lee Leahy32471722015-04-20 15:20:28 -0700136config HAVE_ME_BIN
Martin Roth3fda3c22015-07-09 21:02:26 -0600137 def_bool y
Lee Leahy32471722015-04-20 15:20:28 -0700138
139config IED_REGION_SIZE
140 hex
141 default 0x400000
142
Aaron Durbin3953e392015-09-03 00:41:29 -0500143config CHIPSET_BOOTBLOCK_INCLUDE
144 string
145 default "soc/intel/braswell/bootblock/timestamp.inc"
146
Lee Leahy77ff0b12015-05-05 15:07:29 -0700147endif