blob: 9f41f22635e117e3e8dc5cd612ce2f034244d229 [file] [log] [blame]
Martin Roth7d86f342024-02-16 11:04:02 -07001## SPDX-License-Identifier: GPL-2.0-only
2
Marshall Dawson6ab5ed32019-05-29 09:24:18 -06003config SOC_AMD_COMMON_BLOCK_LPC
4 bool
Marshall Dawson6ab5ed32019-05-29 09:24:18 -06005 help
6 Select this option to use the traditional LPC-ISA bridge at D14F3.
Raul E Rangel314c7162020-05-01 14:04:08 -06007
8config PROVIDES_ROM_SHARING
9 bool
Raul E Rangel314c7162020-05-01 14:04:08 -060010 help
11 Select this option if the LPC bridge supports ROM sharing.
Furquan Shaikhefe27cf2020-05-04 20:59:23 -070012
Raul E Rangel3ba21802021-06-24 17:03:35 -060013config SOC_AMD_COMMON_BLOCK_LPC_SPI_DMA
14 bool
15 select X86_CUSTOM_BOOTMEDIA
Karthikeyan Ramasubramanian953f2ad2021-07-28 23:41:42 -060016 select SOC_AMD_COMMON_BLOCK_SPI_4DW_BURST
Raul E Rangeld373d5d2021-06-25 11:07:23 -060017 depends on !SOC_AMD_PICASSO && !SOC_AMD_STONEYRIDGE
Raul E Rangel3ba21802021-06-24 17:03:35 -060018 help
19 Select this option to enable SPI DMA support.
20
Raul E Rangelc0025c22021-11-10 13:09:20 -070021# The LPC SPI DMA controller requires the source and destination to be 64 byte
Raul E Rangelcf17cd82021-07-23 16:43:18 -060022# aligned.
23config CBFS_CACHE_ALIGN
24 int
25 default 64 if SOC_AMD_COMMON_BLOCK_LPC_SPI_DMA
26
Raul E Rangelc0025c22021-11-10 13:09:20 -070027config FSP_ALIGNMENT_FSP_S
28 int
29 default 64 if SOC_AMD_COMMON_BLOCK_LPC_SPI_DMA
30
31config FSP_ALIGNMENT_FSP_M
32 int
33 default 64 if SOC_AMD_COMMON_BLOCK_LPC_SPI_DMA
34
Furquan Shaikhefe27cf2020-05-04 20:59:23 -070035config SOC_AMD_COMMON_BLOCK_HAS_ESPI
36 bool
Furquan Shaikhefe27cf2020-05-04 20:59:23 -070037 help
38 Select this option if platform supports eSPI using D14F3 configuration
39 registers.
40
Felix Held62d42c32022-05-04 19:04:33 +020041config SOC_AMD_COMMON_BLOCK_ESPI_EXTENDED_DECODE_RANGES
42 bool
43 depends on SOC_AMD_COMMON_BLOCK_HAS_ESPI
44 help
45 Select this if the platform supports 16 instead of 4 eSPI IO decode
46 ranges and 5 instead of 4 eSPI MMIO decode ranges.
47
Raul E Rangeldbeae6a2022-04-25 13:32:35 -060048config SOC_AMD_COMMON_BLOCK_HAS_ESPI_ALERT_ENABLE
49 bool
50 depends on SOC_AMD_COMMON_BLOCK_HAS_ESPI
51 help
52 Selected by the SoC if it supports the ALERT_ENABLE bit.
53
Furquan Shaikhefe27cf2020-05-04 20:59:23 -070054config SOC_AMD_COMMON_BLOCK_USE_ESPI
55 bool
56 depends on SOC_AMD_COMMON_BLOCK_HAS_ESPI
Furquan Shaikhefe27cf2020-05-04 20:59:23 -070057 help
58 Select this option if mainboard uses eSPI instead of LPC (if supported
59 by platform).
Karthikeyan Ramasubramanian284831e2022-03-25 10:21:03 -060060
61config SOC_AMD_COMMON_BLOCK_ESPI_RETAIN_PORT80_EN
62 bool
63 depends on SOC_AMD_COMMON_BLOCK_USE_ESPI
64 help
65 SMU will lock up at times if the port80h enable bit is cleared. Select
66 this option to retain the port80 enable bit while clearing other enable
67 bits in the ESPI Decode register.