blob: ac4a2ae213a3349f93c779f83326b494192effb7 [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
Aaron Durbin1b6196d2016-07-13 23:20:26 -050010 select ACPI_INTEL_HARDWARE_SLEEP_VALUES
Lee Leahy77ff0b12015-05-05 15:07:29 -070011 select ARCH_BOOTBLOCK_X86_32
Lee Leahy77ff0b12015-05-05 15:07:29 -070012 select ARCH_RAMSTAGE_X86_32
Lee Leahy32471722015-04-20 15:20:28 -070013 select ARCH_ROMSTAGE_X86_32
14 select ARCH_VERSTAGE_X86_32
Aaron Durbine8e118d2016-08-12 15:00:10 -050015 select BOOT_DEVICE_SUPPORTS_WRITES
Lee Leahy77ff0b12015-05-05 15:07:29 -070016 select CACHE_MRC_SETTINGS
Alexandru Gagniuc27fea062015-08-29 20:00:24 -070017 select CACHE_RELOCATED_RAMSTAGE_OUTSIDE_CBMEM if RELOCATABLE_RAMSTAGE
Lee Leahy77ff0b12015-05-05 15:07:29 -070018 select COLLECT_TIMESTAMPS
Martin Rothdf02c332015-07-01 23:09:42 -060019 select SUPPORT_CPU_UCODE_IN_CBFS
Lee Leahy77ff0b12015-05-05 15:07:29 -070020 select CPU_INTEL_TURBO_NOT_PACKAGE_SCOPED
Lee Leahy32471722015-04-20 15:20:28 -070021 select HAVE_MONOTONIC_TIMER
Lee Leahy77ff0b12015-05-05 15:07:29 -070022 select HAVE_SMI_HANDLER
23 select HAVE_HARD_RESET
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
Aaron Durbin16246ea2016-08-05 21:23:37 -050032 select RTC
Lee Leahy32471722015-04-20 15:20:28 -070033 select SOC_INTEL_COMMON
Duncan Lauriee73da802015-09-08 16:16:34 -070034 select SOC_INTEL_COMMON_ACPI_WAKE_SOURCE
Lee Leahy32471722015-04-20 15:20:28 -070035 select SOC_INTEL_COMMON_RESET
Lee Leahy77ff0b12015-05-05 15:07:29 -070036 select SMM_TSEG
37 select SMP
38 select SPI_FLASH
39 select SSE2
40 select SUPPORT_CPU_UCODE_IN_CBFS
41 select TSC_CONSTANT_RATE
42 select TSC_MONOTONIC_TIMER
43 select TSC_SYNC_MFENCE
44 select UDELAY_TSC
Lee Leahy32471722015-04-20 15:20:28 -070045 select USE_GENERIC_FSP_CAR_INC
Martin Roth3fda3c22015-07-09 21:02:26 -060046 select HAVE_INTEL_FIRMWARE
Martin Roth3a543182015-09-28 15:27:24 -060047 select HAVE_SPI_CONSOLE_SUPPORT
Lee Leahy77ff0b12015-05-05 15:07:29 -070048
49config BOOTBLOCK_CPU_INIT
50 string
Lee Leahy32471722015-04-20 15:20:28 -070051 default "soc/intel/braswell/bootblock/bootblock.c"
Lee Leahy77ff0b12015-05-05 15:07:29 -070052
53config MMCONF_BASE_ADDRESS
Lee Leahy32471722015-04-20 15:20:28 -070054 hex "PCIe CFG Base Address"
Lee Leahy77ff0b12015-05-05 15:07:29 -070055 default 0xe0000000
56
57config MAX_CPUS
58 int
59 default 4
60
61config CPU_ADDR_BITS
62 int
63 default 36
64
65config SMM_TSEG_SIZE
66 hex
67 default 0x800000
68
69config SMM_RESERVED_SIZE
70 hex
71 default 0x100000
72
Lee Leahy77ff0b12015-05-05 15:07:29 -070073# Cache As RAM region layout:
74#
Lee Leahy77ff0b12015-05-05 15:07:29 -070075# +-------------+ DCACHE_RAM_BASE + DCACHE_RAM_SIZE
Kyösti Mälkki2bad1e72016-07-26 14:03:31 +030076# | Stack |
77# | | |
78# | v |
Lee Leahy77ff0b12015-05-05 15:07:29 -070079# +-------------+
80# | ^ |
81# | | |
82# | CAR Globals |
83# +-------------+ DCACHE_RAM_BASE
84#
Lee Leahy77ff0b12015-05-05 15:07:29 -070085
86config DCACHE_RAM_BASE
Lee Leahy32471722015-04-20 15:20:28 -070087 hex "Temporary RAM Base Address"
88 default 0xfef00000
Lee Leahy77ff0b12015-05-05 15:07:29 -070089
90config DCACHE_RAM_SIZE
Lee Leahy32471722015-04-20 15:20:28 -070091 hex "Temporary RAM Size"
92 default 0x4000
Lee Leahy77ff0b12015-05-05 15:07:29 -070093 help
94 The size of the cache-as-ram region required during bootblock
95 and/or romstage. Note DCACHE_RAM_SIZE and DCACHE_RAM_MRC_VAR_SIZE
96 must add up to a power of 2.
97
Lee Leahy77ff0b12015-05-05 15:07:29 -070098config RESET_ON_INVALID_RAMSTAGE_CACHE
99 bool "Reset the system on S3 wake when ramstage cache invalid."
100 default n
101 depends on RELOCATABLE_RAMSTAGE
102 help
Lee Leahy32471722015-04-20 15:20:28 -0700103 The haswell romstage code caches the loaded ramstage program
Lee Leahy77ff0b12015-05-05 15:07:29 -0700104 in SMM space. On S3 wake the romstage will copy over a fresh
105 ramstage that was cached in the SMM space. This option determines
106 the action to take when the ramstage cache is invalid. If selected
107 the system will reset otherwise the ramstage will be reloaded from
108 cbfs.
109
Lee Leahy77ff0b12015-05-05 15:07:29 -0700110config ENABLE_BUILTIN_COM1
111 bool "Enable builtin COM1 Serial Port"
112 default n
113 help
114 The PMC has a legacy COM1 serial port. Choose this option to
115 configure the pads and enable it. This serial port can be used for
116 the debug console.
117
Lee Leahy77ff0b12015-05-05 15:07:29 -0700118config HAVE_IFD_BIN
Martin Roth481a19c2016-01-04 14:23:53 -0700119 def_bool n
Lee Leahy77ff0b12015-05-05 15:07:29 -0700120
121config BUILD_WITH_FAKE_IFD
Martin Roth3fda3c22015-07-09 21:02:26 -0600122 def_bool !HAVE_IFD_BIN
Lee Leahy77ff0b12015-05-05 15:07:29 -0700123
Lee Leahy32471722015-04-20 15:20:28 -0700124config HAVE_ME_BIN
Martin Roth481a19c2016-01-04 14:23:53 -0700125 def_bool n
Lee Leahy32471722015-04-20 15:20:28 -0700126
127config IED_REGION_SIZE
128 hex
129 default 0x400000
130
Aaron Durbin3953e392015-09-03 00:41:29 -0500131config CHIPSET_BOOTBLOCK_INCLUDE
132 string
133 default "soc/intel/braswell/bootblock/timestamp.inc"
134
Lee Leahy77ff0b12015-05-05 15:07:29 -0700135endif