blob: fac14cbd3b76648fdcb69690e8a55625f117f8b6 [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
Patrick Rudolph45022ae2018-10-01 19:17:11 +020020 select SOUTHBRIDGE_INTEL_COMMON_RESET
Aaron Durbinf5ff8542016-05-05 10:38:03 -050021 select NO_FIXED_XIP_ROM_SIZE
Aaron Durbin302cbd62013-10-21 12:36:17 -050022 select PARALLEL_MP
Duncan Lauriec6313db2014-01-16 11:18:36 -080023 select PCIEXP_ASPM
24 select PCIEXP_COMMON_CLOCK
Isaac Christensend2044cc2014-10-01 13:37:36 -060025 select REG_SCRIPT
Aaron Durbin16246ea2016-08-05 21:23:37 -050026 select RTC
Vadim Bendeburyc04e1712013-09-27 16:21:04 -070027 select SMP
28 select SPI_FLASH
29 select SSE2
Aaron Durbince7ecf92013-10-24 08:42:10 -050030 select TSC_MONOTONIC_TIMER
Vadim Bendeburyc04e1712013-09-27 16:21:04 -070031 select TSC_SYNC_MFENCE
32 select UDELAY_TSC
Stefan Reinauer9616f3c2015-04-29 10:45:22 -070033 select SOC_INTEL_COMMON
Stefan Tauneref8b9572018-09-06 00:34:28 +020034 select INTEL_DESCRIPTOR_MODE_CAPABLE
Martin Roth3a543182015-09-28 15:27:24 -060035 select HAVE_SPI_CONSOLE_SUPPORT
Matt DeVillierbe33a672018-03-11 22:44:41 -050036 select INTEL_GMA_ACPI
37 select INTEL_GMA_SWSMISCI
Matt DeVilliere5a1a4c2017-01-19 21:13:02 -060038 select CPU_INTEL_COMMON
Arthur Heymansb1c57d12019-01-10 20:28:48 +010039 select CPU_HAS_L2_ENABLE_MSR
Arthur Heymansc05b1a62019-11-22 21:01:30 +010040 select ROMCC_BOOTBLOCK
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -050041
Julius Werner1210b412017-03-27 19:26:32 -070042config VBOOT
Joel Kitching6672bd82019-04-10 16:06:21 +080043 select VBOOT_MUST_REQUEST_DISPLAY
Julius Werner1210b412017-03-27 19:26:32 -070044 select VBOOT_STARTS_IN_ROMSTAGE
45
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -050046config BOOTBLOCK_CPU_INIT
47 string
48 default "soc/intel/baytrail/bootblock/bootblock.c"
49
50config MMCONF_BASE_ADDRESS
51 hex
52 default 0xe0000000
53
54config MAX_CPUS
55 int
56 default 4
57
58config CPU_ADDR_BITS
59 int
60 default 36
61
62config SMM_TSEG_SIZE
63 hex
64 default 0x800000
65
66config SMM_RESERVED_SIZE
67 hex
68 default 0x100000
69
70config HAVE_MRC
Arthur Heymansabe62be2018-06-17 21:36:22 +020071 bool "Add a System Agent binary"
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -050072 help
Arthur Heymansabe62be2018-06-17 21:36:22 +020073 Select this option to add a System Agent binary to
74 the resulting coreboot image.
75
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -050076 Note: Without this binary coreboot will not work
77
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -050078config MRC_FILE
Arthur Heymansabe62be2018-06-17 21:36:22 +020079 string "Intel System Agent path and filename"
80 depends on HAVE_MRC
81 default "mrc.bin"
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -050082 help
83 The path and filename of the file to use as System Agent
Arthur Heymansabe62be2018-06-17 21:36:22 +020084 binary.
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -050085
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 -050094# Cache As RAM region layout:
95#
96# +-------------+ DCACHE_RAM_BASE + DCACHE_RAM_SIZE + DCACHE_RAM_MRC_VAR_SIZE
97# | MRC usage |
98# | |
99# +-------------+ DCACHE_RAM_BASE + DCACHE_RAM_SIZE
Kyösti Mälkki2bad1e72016-07-26 14:03:31 +0300100# | Stack |
101# | | |
102# | v |
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -0500103# +-------------+
104# | ^ |
105# | | |
106# | CAR Globals |
107# +-------------+ DCACHE_RAM_BASE
108#
109# Note that the MRC binary is linked to assume the region marked as "MRC usage"
110# starts at DCACHE_RAM_BASE + DCACHE_RAM_SIZE. If those values change then
111# a new MRC binary needs to be produced with the updated start and size
112# information.
113
114config DCACHE_RAM_BASE
115 hex
Aaron Durbin89f52922014-03-19 11:48:33 -0500116 default 0xfe000000
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -0500117
118config DCACHE_RAM_SIZE
119 hex
Aaron Durbin08a46132013-10-07 16:24:44 -0500120 default 0x8000
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -0500121 help
122 The size of the cache-as-ram region required during bootblock
123 and/or romstage. Note DCACHE_RAM_SIZE and DCACHE_RAM_MRC_VAR_SIZE
124 must add up to a power of 2.
125
126config DCACHE_RAM_MRC_VAR_SIZE
127 hex
Aaron Durbin08a46132013-10-07 16:24:44 -0500128 default 0x8000
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -0500129 help
130 The amount of cache-as-ram region required by the reference code.
131
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -0500132config RESET_ON_INVALID_RAMSTAGE_CACHE
133 bool "Reset the system on S3 wake when ramstage cache invalid."
134 default n
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -0500135 help
136 The baytrail romstage code caches the loaded ramstage program
137 in SMM space. On S3 wake the romstage will copy over a fresh
138 ramstage that was cached in the SMM space. This option determines
139 the action to take when the ramstage cache is invalid. If selected
140 the system will reset otherwise the ramstage will be reloaded from
141 cbfs.
142
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -0500143config ENABLE_BUILTIN_COM1
144 bool "Enable builtin COM1 Serial Port"
145 default n
146 help
147 The PMC has a legacy COM1 serial port. Choose this option to
148 configure the pads and enable it. This serial port can be used for
149 the debug console.
150
Vladimir Serbinenkof1d6e7e2014-08-09 07:16:10 +0200151config HAVE_REFCODE_BLOB
152 depends on ARCH_X86
153 bool "An external reference code blob should be put into cbfs."
154 default n
155 help
156 The reference code blob will be placed into cbfs.
157
158if HAVE_REFCODE_BLOB
159
160config REFCODE_BLOB_FILE
161 string "Path and filename to reference code blob."
162 default "refcode.elf"
163 help
164 The path and filename to the file to be added to cbfs.
165
166endif # HAVE_REFCODE_BLOB
167
Matt DeVillier0da3a8a2019-05-27 02:09:24 -0500168config VGA_BIOS_ID
169 string
170 depends on VGA_BIOS
171 default "8086,0f31"
172
173config VGA_BIOS_FILE
174 string
175 depends on VGA_BIOS
176 default "pci8086,0f31.rom"
177
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -0500178endif