blob: 6c5610da63a0677589a26fdc7bd87720fd2e841f [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
Angel Ponsa32df262020-09-25 10:20:11 +020011 select ARCH_ALL_STAGES_X86_32
Angel Pons8e035e32021-06-22 12:58:20 +020012 select ARCH_X86
Shelley Chen6c2568f2020-09-25 09:30:44 -070013 select BOOT_DEVICE_SPI_FLASH_NO_EARLY_WRITES
Aaron Durbine8e118d2016-08-12 15:00:10 -050014 select BOOT_DEVICE_SUPPORTS_WRITES
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -050015 select CACHE_MRC_SETTINGS
Aaron Durbin59d1d872014-01-14 17:34:10 -060016 select CPU_INTEL_TURBO_NOT_PACKAGE_SCOPED
Kyösti Mälkki4851bf22014-12-27 12:57:06 +020017 select SUPPORT_CPU_UCODE_IN_CBFS
Vadim Bendeburyc04e1712013-09-27 16:21:04 -070018 select HAVE_SMI_HANDLER
Patrick Rudolph45022ae2018-10-01 19:17:11 +020019 select SOUTHBRIDGE_INTEL_COMMON_RESET
Kyösti Mälkki542fa6d2020-01-07 02:18:02 +020020 select SOUTHBRIDGE_INTEL_COMMON_SMBUS
Arthur Heymansb48d6332019-06-04 14:51:19 +020021 select SOUTHBRIDGE_INTEL_COMMON_SPI_SILVERMONT
Duncan Lauriec6313db2014-01-16 11:18:36 -080022 select PCIEXP_ASPM
23 select PCIEXP_COMMON_CLOCK
Isaac Christensend2044cc2014-10-01 13:37:36 -060024 select REG_SCRIPT
Aaron Durbin16246ea2016-08-05 21:23:37 -050025 select RTC
Vadim Bendeburyc04e1712013-09-27 16:21:04 -070026 select SPI_FLASH
27 select SSE2
Aaron Durbince7ecf92013-10-24 08:42:10 -050028 select TSC_MONOTONIC_TIMER
Vadim Bendeburyc04e1712013-09-27 16:21:04 -070029 select TSC_SYNC_MFENCE
30 select UDELAY_TSC
Stefan Reinauer9616f3c2015-04-29 10:45:22 -070031 select SOC_INTEL_COMMON
Stefan Tauneref8b9572018-09-06 00:34:28 +020032 select INTEL_DESCRIPTOR_MODE_CAPABLE
Angel Pons12d48cd2020-10-03 12:22:04 +020033 select HAVE_EM100PRO_SPI_CONSOLE_SUPPORT
Matt DeVillierbe33a672018-03-11 22:44:41 -050034 select INTEL_GMA_ACPI
35 select INTEL_GMA_SWSMISCI
Matt DeVilliere5a1a4c2017-01-19 21:13:02 -060036 select CPU_INTEL_COMMON
Arthur Heymansb1c57d12019-01-10 20:28:48 +010037 select CPU_HAS_L2_ENABLE_MSR
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -050038
Julius Werner1210b412017-03-27 19:26:32 -070039config VBOOT
Joel Kitching6672bd82019-04-10 16:06:21 +080040 select VBOOT_MUST_REQUEST_DISPLAY
Julius Werner1210b412017-03-27 19:26:32 -070041 select VBOOT_STARTS_IN_ROMSTAGE
42
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -050043config MMCONF_BASE_ADDRESS
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -050044 default 0xe0000000
45
Kyösti Mälkki6d085442021-02-14 01:55:18 +020046config MMCONF_BUS_NUMBER
47 int
48 default 256
49
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -050050config MAX_CPUS
51 int
52 default 4
53
54config CPU_ADDR_BITS
55 int
56 default 36
57
58config SMM_TSEG_SIZE
59 hex
60 default 0x800000
61
62config SMM_RESERVED_SIZE
63 hex
64 default 0x100000
65
66config HAVE_MRC
Arthur Heymansabe62be2018-06-17 21:36:22 +020067 bool "Add a System Agent binary"
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -050068 help
Arthur Heymansabe62be2018-06-17 21:36:22 +020069 Select this option to add a System Agent binary to
70 the resulting coreboot image.
71
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -050072 Note: Without this binary coreboot will not work
73
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -050074config MRC_FILE
Arthur Heymansabe62be2018-06-17 21:36:22 +020075 string "Intel System Agent path and filename"
76 depends on HAVE_MRC
77 default "mrc.bin"
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -050078 help
79 The path and filename of the file to use as System Agent
Arthur Heymansabe62be2018-06-17 21:36:22 +020080 binary.
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -050081
82config MRC_BIN_ADDRESS
83 hex
84 default 0xfffa0000
85
Shawn Nematbakhsh13d93412013-11-26 15:37:43 -080086config MRC_RMT
87 bool "Enable MRC RMT training + debug prints"
88 default n
89
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -050090# Cache As RAM region layout:
91#
92# +-------------+ DCACHE_RAM_BASE + DCACHE_RAM_SIZE + DCACHE_RAM_MRC_VAR_SIZE
93# | MRC usage |
94# | |
Arthur Heymans179da7f2019-11-15 12:51:51 +010095# -------------+ DCACHE_RAM_BASE + DCACHE_RAM_SIZE
96# | coreboot |
97# | usage |
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -050098# +-------------+ DCACHE_RAM_BASE
99#
100# Note that the MRC binary is linked to assume the region marked as "MRC usage"
101# starts at DCACHE_RAM_BASE + DCACHE_RAM_SIZE. If those values change then
102# a new MRC binary needs to be produced with the updated start and size
103# information.
104
105config DCACHE_RAM_BASE
106 hex
Aaron Durbin89f52922014-03-19 11:48:33 -0500107 default 0xfe000000
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -0500108
109config DCACHE_RAM_SIZE
110 hex
Aaron Durbin08a46132013-10-07 16:24:44 -0500111 default 0x8000
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -0500112 help
113 The size of the cache-as-ram region required during bootblock
114 and/or romstage. Note DCACHE_RAM_SIZE and DCACHE_RAM_MRC_VAR_SIZE
115 must add up to a power of 2.
116
117config DCACHE_RAM_MRC_VAR_SIZE
118 hex
Aaron Durbin08a46132013-10-07 16:24:44 -0500119 default 0x8000
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -0500120 help
121 The amount of cache-as-ram region required by the reference code.
122
Arthur Heymans179da7f2019-11-15 12:51:51 +0100123config DCACHE_BSP_STACK_SIZE
124 hex
125 default 0x2000
126
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -0500127config ENABLE_BUILTIN_COM1
128 bool "Enable builtin COM1 Serial Port"
129 default n
130 help
131 The PMC has a legacy COM1 serial port. Choose this option to
132 configure the pads and enable it. This serial port can be used for
133 the debug console.
134
Vladimir Serbinenkof1d6e7e2014-08-09 07:16:10 +0200135config HAVE_REFCODE_BLOB
136 depends on ARCH_X86
Mate Kukrie2319492020-07-04 11:20:07 +0200137 bool "Use a binary refcode blob instead of native ModPHY init"
Vladimir Serbinenkof1d6e7e2014-08-09 07:16:10 +0200138 default n
139 help
Mate Kukrie2319492020-07-04 11:20:07 +0200140 Use the ChromeBook refcode to intitialize high-speed PHYs instead of
141 native code.
Vladimir Serbinenkof1d6e7e2014-08-09 07:16:10 +0200142
143if HAVE_REFCODE_BLOB
144
Mate Kukrie2319492020-07-04 11:20:07 +0200145# Ask for the blob if the user wants it
Vladimir Serbinenkof1d6e7e2014-08-09 07:16:10 +0200146config REFCODE_BLOB_FILE
147 string "Path and filename to reference code blob."
148 default "refcode.elf"
149 help
150 The path and filename to the file to be added to cbfs.
151
152endif # HAVE_REFCODE_BLOB
153
Matt DeVillier0da3a8a2019-05-27 02:09:24 -0500154config VGA_BIOS_ID
155 string
156 depends on VGA_BIOS
157 default "8086,0f31"
158
159config VGA_BIOS_FILE
160 string
161 depends on VGA_BIOS
162 default "pci8086,0f31.rom"
163
Aaron Durbin9a7d7bc2013-09-07 00:41:48 -0500164endif