1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #include <baseboard/gpio.h>
4 #include <baseboard/variants.h>
6 #include <console/console.h>
9 static const struct pad_config wfc_disable_pads
[] = {
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
));