blob: f4c7e117d2c4267e6d066c990a7edf8134935f7c [file] [log] [blame]
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -05001config SOC_INTEL_BAYTRAIL
2 bool
3 help
4 Bay Trail M/D part support.
5
6if SOC_INTEL_BAYTRAIL
7
8config CPU_SPECIFIC_OPTIONS
9 def_bool y
Aaron Durbinf5cfaa32016-07-13 23:20:07 -050010 select ACPI_INTEL_HARDWARE_SLEEP_VALUES
Furquan Shaikh99ac98f2014-04-23 10:18:48 -070011 select ARCH_BOOTBLOCK_X86_32
Stefan Reinauer77b16552015-01-14 19:51:47 +010012 select ARCH_VERSTAGE_X86_32
Furquan Shaikh99ac98f2014-04-23 10:18:48 -070013 select ARCH_ROMSTAGE_X86_32
14 select ARCH_RAMSTAGE_X86_32
Aaron Durbine8e118d2016-08-12 15:00:10 -050015 select BOOT_DEVICE_SUPPORTS_WRITES
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -050016 select CACHE_MRC_SETTINGS
Aaron Durbin59d1d872014-01-14 17:34:10 -060017 select CPU_INTEL_TURBO_NOT_PACKAGE_SCOPED
Kyösti Mälkki4851bf22014-12-27 12:57:06 +020018 select SUPPORT_CPU_UCODE_IN_CBFS
Vadim Bendeburyc04e1712013-09-27 16:21:04 -070019 select HAVE_SMI_HANDLER
Aaron Durbin6ecdb682013-10-10 20:54:57 -050020 select HAVE_HARD_RESET
Vadim Bendeburyc04e1712013-09-27 16:21:04 -070021 select MMCONF_SUPPORT
22 select MMCONF_SUPPORT_DEFAULT
Aaron Durbinf5ff8542016-05-05 10:38:03 -050023 select NO_FIXED_XIP_ROM_SIZE
Vadim Bendeburyc04e1712013-09-27 16:21:04 -070024 select RELOCATABLE_MODULES
Kyösti Mälkkid05d0db2014-10-16 14:54:03 +030025 select RELOCATABLE_RAMSTAGE
Aaron Durbin302cbd62013-10-21 12:36:17 -050026 select PARALLEL_MP
Duncan Lauriec6313db2014-01-16 11:18:36 -080027 select PCIEXP_ASPM
28 select PCIEXP_COMMON_CLOCK
Isaac Christensend2044cc2014-10-01 13:37:36 -060029 select REG_SCRIPT
Aaron Durbin16246ea2016-08-05 21:23:37 -050030 select RTC
Vadim Bendeburyc04e1712013-09-27 16:21:04 -070031 select SMM_TSEG
32 select SMP
33 select SPI_FLASH
34 select SSE2
35 select SUPPORT_CPU_UCODE_IN_CBFS
36 select TSC_CONSTANT_RATE
Aaron Durbince7ecf92013-10-24 08:42:10 -050037 select TSC_MONOTONIC_TIMER
Vadim Bendeburyc04e1712013-09-27 16:21:04 -070038 select TSC_SYNC_MFENCE
39 select UDELAY_TSC
Stefan Reinauer9616f3c2015-04-29 10:45:22 -070040 select SOC_INTEL_COMMON
Martin Rothc407cb92015-06-23 19:59:30 -060041 select HAVE_INTEL_FIRMWARE
Martin Roth3a543182015-09-28 15:27:24 -060042 select HAVE_SPI_CONSOLE_SUPPORT
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -050043
44config BOOTBLOCK_CPU_INIT
45 string
46 default "soc/intel/baytrail/bootblock/bootblock.c"
47
48config MMCONF_BASE_ADDRESS
49 hex
50 default 0xe0000000
51
52config MAX_CPUS
53 int
54 default 4
55
56config CPU_ADDR_BITS
57 int
58 default 36
59
60config SMM_TSEG_SIZE
61 hex
62 default 0x800000
63
64config SMM_RESERVED_SIZE
65 hex
66 default 0x100000
67
68config HAVE_MRC
69 bool "Add a Memory Reference Code binary"
70 default y
71 help
72 Select this option to add a blob containing
73 memory reference code.
74 Note: Without this binary coreboot will not work
75
76if HAVE_MRC
77
78config MRC_FILE
79 string "Intel memory refeference code path and filename"
Patrick Georgi26e24cc2015-05-05 22:27:25 +020080 default "3rdparty/blobs/northbridge/intel/sandybridge/systemagent-r6.bin"
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -050081 help
82 The path and filename of the file to use as System Agent
83 binary. Note that this points to the sandybridge binary file
84 which is will not work, but it serves its purpose to do builds.
85
86config MRC_BIN_ADDRESS
87 hex
88 default 0xfffa0000
89
Shawn Nematbakhsh13d93412013-11-26 15:37:43 -080090config MRC_RMT
91 bool "Enable MRC RMT training + debug prints"
92 default n
93
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -050094endif # HAVE_MRC
95
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -050096# Cache As RAM region layout:
97#
98# +-------------+ DCACHE_RAM_BASE + DCACHE_RAM_SIZE + DCACHE_RAM_MRC_VAR_SIZE
99# | MRC usage |
100# | |
101# +-------------+ DCACHE_RAM_BASE + DCACHE_RAM_SIZE
Kyösti Mälkki2bad1e72016-07-26 14:03:31 +0300102# | Stack |
103# | | |
104# | v |
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -0500105# +-------------+
106# | ^ |
107# | | |
108# | CAR Globals |
109# +-------------+ DCACHE_RAM_BASE
110#
111# Note that the MRC binary is linked to assume the region marked as "MRC usage"
112# starts at DCACHE_RAM_BASE + DCACHE_RAM_SIZE. If those values change then
113# a new MRC binary needs to be produced with the updated start and size
114# information.
115
116config DCACHE_RAM_BASE
117 hex
Aaron Durbin89f52922014-03-19 11:48:33 -0500118 default 0xfe000000
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -0500119
120config DCACHE_RAM_SIZE
121 hex
Aaron Durbin08a46132013-10-07 16:24:44 -0500122 default 0x8000
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -0500123 help
124 The size of the cache-as-ram region required during bootblock
125 and/or romstage. Note DCACHE_RAM_SIZE and DCACHE_RAM_MRC_VAR_SIZE
126 must add up to a power of 2.
127
128config DCACHE_RAM_MRC_VAR_SIZE
129 hex
Aaron Durbin08a46132013-10-07 16:24:44 -0500130 default 0x8000
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -0500131 help
132 The amount of cache-as-ram region required by the reference code.
133
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -0500134config RESET_ON_INVALID_RAMSTAGE_CACHE
135 bool "Reset the system on S3 wake when ramstage cache invalid."
136 default n
137 depends on RELOCATABLE_RAMSTAGE
138 help
139 The baytrail romstage code caches the loaded ramstage program
140 in SMM space. On S3 wake the romstage will copy over a fresh
141 ramstage that was cached in the SMM space. This option determines
142 the action to take when the ramstage cache is invalid. If selected
143 the system will reset otherwise the ramstage will be reloaded from
144 cbfs.
145
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -0500146config ENABLE_BUILTIN_COM1
147 bool "Enable builtin COM1 Serial Port"
148 default n
149 help
150 The PMC has a legacy COM1 serial port. Choose this option to
151 configure the pads and enable it. This serial port can be used for
152 the debug console.
153
Vladimir Serbinenkof1d6e7e2014-08-09 07:16:10 +0200154config HAVE_REFCODE_BLOB
155 depends on ARCH_X86
156 bool "An external reference code blob should be put into cbfs."
157 default n
158 help
159 The reference code blob will be placed into cbfs.
160
161if HAVE_REFCODE_BLOB
162
163config REFCODE_BLOB_FILE
164 string "Path and filename to reference code blob."
165 default "refcode.elf"
166 help
167 The path and filename to the file to be added to cbfs.
168
169endif # HAVE_REFCODE_BLOB
170
Aaron Durbin3953e392015-09-03 00:41:29 -0500171config CHIPSET_BOOTBLOCK_INCLUDE
172 string
173 default "soc/intel/baytrail/bootblock/timestamp.inc"
174
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -0500175endif