Debian Codegraph @

src/mainboard/amd/crater/Kconfig

raw
1 # SPDX-License-Identifier: GPL-2.0-only
2
3 config BOARD_AMD_CRATER_COMMON
4 def_bool n
5 select BOARD_ROMSIZE_KB_32768
6 select EC_ACPI
7 select SOC_AMD_COMMON_BLOCK_USE_ESPI if !SOC_AMD_COMMON_BLOCK_SIMNOW_BUILD
8 select DRIVERS_PCIE_RTD3_DEVICE
9 select DRIVERS_I2C_HID
10 select MAINBOARD_HAS_CHROMEOS
11 select HAVE_ACPI_RESUME
12 select PCIEXP_ASPM
13 select PCIEXP_CLK_PM
14 select PCIEXP_COMMON_CLOCK
15 select PCIEXP_L1_SUB_STATE
16 select SOC_AMD_COMMON_BLOCK_ESPI_RETAIN_PORT80_EN if !SOC_AMD_COMMON_BLOCK_SIMNOW_BUILD
17 select SOC_AMD_COMMON_BLOCK_SIMNOW_SUPPORTED
18 select SPI_FLASH_EXIT_4_BYTE_ADDR_MODE
19 select SOC_AMD_COMMON_BLOCK_PSP_RPMC
20 select SOC_AMD_COMMON_BLOCK_PSP_SMI
21
22 config BOARD_AMD_CRATER_RENOIR
23 select BOARD_AMD_CRATER_COMMON
24 select SOC_AMD_CEZANNE
25
26 if BOARD_AMD_CRATER_RENOIR
27
28 config FMDFILE
29 default "src/mainboard/amd/crater/chromeos_renoir.fmd" if CHROMEOS
30 default "src/mainboard/amd/crater/board_renoir.fmd"
31
32 config MAINBOARD_DIR
33 default "amd/crater"
34
35 config MAINBOARD_PART_NUMBER
36 default "Crater_RENOIR"
37
38 config DEVICETREE
39 default "devicetree_renoir.cb"
40
41 config CRATER_HAVE_MCHP_FW
42 bool "Have Microchip EC firmware?"
43 default n
44
45 config AMD_SOC_CONSOLE_UART
46 default y if !SOC_AMD_COMMON_BLOCK_SIMNOW_BUILD
47
48 config CRATER_MCHP_FW_FILE
49 string "Microchip EC firmware file"
50 depends on CRATER_HAVE_MCHP_FW
51 default "3rdparty/blobs/mainboard/amd/crater/EcSig_Crater.bin"
52 help
53 The EC firmware blob is at the EC_BODY FMAP region of the firmware image.
54
55 config VBOOT
56 select VBOOT_NO_BOARD_SUPPORT
57 select VBOOT_SEPARATE_VERSTAGE
58 select VBOOT_STARTS_IN_BOOTBLOCK
59
60 config VBOOT_VBNV_OFFSET
61 hex
62 default 0x2A
63
64 config RO_REGION_ONLY
65 string
66 depends on VBOOT_SLOTS_RW_AB || VBOOT_SLOTS_RW_A
67 # Add the EFS and EC to the RO region only
68 # This is a crater specific override of soc/amd/cezanne/Kconfig
69 default "apu/amdfw apu/ecfw"
70
71 config CHROMEOS
72 # Use default libpayload config
73 select LP_DEFCONFIG_OVERRIDE if PAYLOAD_DEPTHCHARGE
74 # We don't have recovery buttons, so we can't manually enable devmode.
75 select GBB_FLAG_FORCE_DEV_SWITCH_ON
76
77 config ENABLE_EDP
78 bool "Enable EDP display"
79 default n
80 help
81 Select this option to enable EDP display on DDI1 interface
82
83 config ENABLE_EVAL_CARD
84 bool "Enable Eval Card"
85 help
86 Enable the Eval Card PCIe slot
87
88 config ENABLE_EVAL_19V
89 bool "Enable 19V rail for Eval Card"
90 depends on ENABLE_EVAL_CARD
91 help
92 Enable the 19V rail for Eval Card PCIe slot
93
94 choice
95 prompt "XGBE/WWAN/WLAN/DT Selection"
96 default XGBE_WWAN_WLAN
97 help
98 Select the configuration for GPP[0:3] lanes
99
100 config XGBE_WWAN_WLAN
101 bool "XGBE_WWAN_WLAN"
102 help
103 Use GPP[0:1] for XGBE (ETH_AIC_SLOT), GPP[2] for WWAN slot and GPP[3] for WLAN slot.
104
105 config ETH_AIC_SLOT_ONLY
106 bool "DT Enablement"
107 help
108 Use GPP[0:3] for as PCIE (ETH_AIC_SLOT) only
109 endchoice
110
111 if !EM100 # EM100 defaults in soc/amd/common/blocks/spi/Kconfig
112 config EFS_SPI_READ_MODE
113 default 3 # Quad IO (1-1-4)
114
115 config EFS_SPI_SPEED
116 default 0 # 66MHz
117
118 config EFS_SPI_MICRON_FLAG
119 default 0
120
121 config NORMAL_READ_SPI_SPEED
122 default 1 # 33MHz
123
124 config ALT_SPI_SPEED
125 default 1 # 33MHz
126
127 config TPM_SPI_SPEED
128 default 1 # 33MHz
129
130 endif # !EM100
131
132 endif # BOARD_AMD_CRATER_COMMON