soc/intel/ptl: Update ME specification version to 21
[coreboot.git] / src / mainboard / google / brya / variants / xivu / fw_config.c
blobf292404f4c2264dd6ea1d369af4f5dddcda87ee9
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #include <baseboard/gpio.h>
4 #include <baseboard/variants.h>
5 #include <bootstate.h>
6 #include <console/console.h>
7 #include <fw_config.h>
9 static const struct pad_config wfc_disable_pads[] = {
10 /* D3 : WCAM_RST_L */
11 PAD_NC_LOCK(GPP_D3, NONE, LOCK_CONFIG),
12 /* D15 : EN_PP2800_WCAM_X */
13 PAD_NC_LOCK(GPP_D15, NONE, LOCK_CONFIG),
14 /* D16 : EN_PP1800_PP1200_WCAM_X */
15 PAD_NC_LOCK(GPP_D16, NONE, LOCK_CONFIG),
16 /* H22 : WCAM_MCLK_R */
17 PAD_NC(GPP_H22, NONE),
20 void fw_config_gpio_padbased_override(struct pad_config *padbased_table)
22 if (fw_config_probe(FW_CONFIG(WFC, WFC_ABSENT))) {
23 printk(BIOS_INFO, "Disable MIPI WFC GPIO pins.\n");
24 gpio_padbased_override(padbased_table, wfc_disable_pads,
25 ARRAY_SIZE(wfc_disable_pads));