soc/mediatek/mt8196: Add GPUEB support
[coreboot2.git] / src / mainboard / google / kahlee / Kconfig
blob60630fe5c1f6347280490a398a679e7d3d954516
1 # SPDX-License-Identifier: GPL-2.0-only
3 config BOARD_GOOGLE_BASEBOARD_KAHLEE
4         bool
5         select ALWAYS_LOAD_OPROM
6         select ALWAYS_RUN_OPROM
7         select AMD_APU_STONEYRIDGE
8         select AMD_APU_PKG_FT4
9         select AMD_FWM_POSITION_F20000_DEFAULT
10         select AMD_SOC_CONSOLE_UART
11         select BOARD_ROMSIZE_KB_16384
12         select DRIVERS_GENERIC_ADAU7002
13         select DRIVERS_GENERIC_BH720
14         select DRIVERS_GENERIC_MAX98357A
15         select DRIVERS_I2C_DA7219
16         select DRIVERS_I2C_GENERIC
17         select DRIVERS_I2C_HID
18         select EC_GOOGLE_CHROMEEC
19         select EC_GOOGLE_CHROMEEC_BOARDID
20         select EC_GOOGLE_CHROMEEC_LPC
21         select GFXUMA
22         select GOOGLE_SMBIOS_MAINBOARD_VERSION
23         select HAVE_ACPI_RESUME
24         select HAVE_ACPI_TABLES
25         select HAVE_EM100_SUPPORT
26         select HAVE_SPD_IN_CBFS
27         select I2C_TPM
28         select MAINBOARD_HAS_CHROMEOS
29         select MAINBOARD_HAS_TPM2
30         select PCIEXP_ASPM
31         select PCIEXP_CLK_PM
32         select PCIEXP_COMMON_CLOCK
33         select PCIEXP_L1_SUB_STATE
34         select SERIRQ_CONTINUOUS_MODE
35         select SOC_AMD_COMMON_BLOCK_GRAPHICS_ACP
36         select SOC_AMD_COMMON_BLOCK_GRAPHICS_ATIF
37         select SOC_AMD_SMU_FANLESS
38         select SOC_AMD_STONEYRIDGE
39         select SYSTEM_TYPE_LAPTOP
40         select TPM_GOOGLE_CR50
42 config BOARD_GOOGLE_ALEENA
43         select BOARD_GOOGLE_BASEBOARD_KAHLEE
45 config BOARD_GOOGLE_CAREENA
46         select BOARD_GOOGLE_BASEBOARD_KAHLEE
48 config BOARD_GOOGLE_GRUNT
49         select BOARD_GOOGLE_BASEBOARD_KAHLEE
51 config BOARD_GOOGLE_LIARA
52         select BOARD_GOOGLE_BASEBOARD_KAHLEE
54 config BOARD_GOOGLE_NUWANI
55         select BOARD_GOOGLE_BASEBOARD_KAHLEE
57 config BOARD_GOOGLE_TREEYA
58         select BOARD_GOOGLE_BASEBOARD_KAHLEE
60 if BOARD_GOOGLE_BASEBOARD_KAHLEE
62 config MAINBOARD_DIR
63         default "google/kahlee"
65 config VGA_BIOS_FILE
66         string
67         default "3rdparty/blobs/mainboard/google/kahlee/aleena/VBIOS_015_049_000_018.bin" if BOARD_GOOGLE_ALEENA
68         default "3rdparty/blobs/mainboard/google/kahlee/liara/VBIOS_BRT39865.001.bin" if BOARD_GOOGLE_LIARA
69         default "3rdparty/blobs/mainboard/google/kahlee/VBIOS_015_049_000_017.bin"
71 config VARIANT_DIR
72         default "aleena" if BOARD_GOOGLE_ALEENA
73         default "careena" if BOARD_GOOGLE_CAREENA
74         default "grunt" if BOARD_GOOGLE_GRUNT
75         default "liara" if BOARD_GOOGLE_LIARA
76         default "nuwani" if BOARD_GOOGLE_NUWANI
77         default "treeya" if BOARD_GOOGLE_TREEYA
79 config MAINBOARD_PART_NUMBER
80         default "Aleena" if BOARD_GOOGLE_ALEENA
81         default "Careena" if BOARD_GOOGLE_CAREENA
82         default "Grunt" if BOARD_GOOGLE_GRUNT
83         default "Liara" if BOARD_GOOGLE_LIARA
84         default "Nuwani" if BOARD_GOOGLE_NUWANI
85         default "Treeya" if BOARD_GOOGLE_TREEYA
87 config DEVICETREE
88         default "variants/baseboard/devicetree.cb"
90 config OVERRIDE_DEVICETREE
91         default "variants/\$(CONFIG_VARIANT_DIR)/overridetree.cb"
93 config MAINBOARD_FAMILY
94         string
95         default "Google_Kahlee"
97 config FMDFILE
98         default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/variants/baseboard/chromeos.fmd" if CHROMEOS
99         default ""
100         help
101           The build system creates a default FMAP from ROM_SIZE and CBFS_SIZE,
102           but in some cases more complex setups are required.
103           When an fmd is specified, it overrides the default format.
105 config MAX_CPUS
106         int
107         default 4
109 config IRQ_SLOT_COUNT
110         int
111         default 11
113 config ONBOARD_VGA_IS_PRIMARY
114         bool
115         default y
117 config VBOOT
118         select EC_GOOGLE_CHROMEEC_SWITCHES
119         select VBOOT_LID_SWITCH
121 config VBOOT_VBNV_OFFSET
122         hex
123         default 0x2A
125 config CHROMEOS
126         select LP_DEFCONFIG_OVERRIDE if PAYLOAD_DEPTHCHARGE
128 config DRIVER_TPM_I2C_BUS
129         hex
130         default 0x01
132 config DRIVER_TPM_I2C_ADDR
133         hex
134         default 0x50
136 config GSC_IRQ_GPIO
137         int
138         default 9
140 config USE_OEM_BIN
141         bool "Add an oem.bin file"
142         help
143           Add an oem.bin file to identify the manufacturer in SMBIOS, overriding the
144           CONFIG_MAINBOARD_SMBIOS_MANUFACTURER value.
146 config OEM_BIN_FILE
147         string "OEM ID table"
148         depends on USE_OEM_BIN
149         default ""
151 if !EM100       # EM100 defaults in soc/amd/common/blocks/spi/Kconfig
152 config EFS_SPI_READ_MODE
153         default 4          # Dual IO (1-2-2)
155 config EFS_SPI_SPEED
156         default 0       # 66MHz
158 config NORMAL_READ_SPI_SPEED
159         default 1       # 33MHz
161 config ALT_SPI_SPEED
162         default 0       # 66MHz
164 config TPM_SPI_SPEED
165         default 0       # 66MHz
167 endif
169 # Don't use AMD's Secure OS if ChromeOS build.
170 config USE_PSPSECUREOS
171         bool
172         default n if CHROMEOS
173         default y
175 choice
176         prompt "UMA Memory Allocation"
177         default KAHLEE_UMA_SIZE_32MB
178         help
179           The amount of system memory allocated for the integrated GPU
181 config KAHLEE_UMA_SIZE_32MB
182         bool "32MB"
184 config KAHLEE_UMA_SIZE_64MB
185         bool "64MB"
187 config KAHLEE_UMA_SIZE_128MB
188         bool "128MB"
190 config KAHLEE_UMA_SIZE_256MB
191         bool "256MB"
193 endchoice
195 config UMA_SIZE_IN_MB
196         int
197         default 32  if KAHLEE_UMA_SIZE_32MB
198         default 64  if KAHLEE_UMA_SIZE_64MB
199         default 128 if KAHLEE_UMA_SIZE_128MB
200         default 256 if KAHLEE_UMA_SIZE_256MB
202 endif # BOARD_GOOGLE_BASEBOARD_KAHLEE