cpu/x86/smm/pci_resource_store: Store DEV/VEN ID
[coreboot2.git] / src / mainboard / google / brya / variants / craaskov / fw_config.c
blob800fc1f2051814dd875e9dc3889686b20d0307ea
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #include <baseboard/gpio.h>
4 #include <baseboard/variants.h>
5 #include <console/console.h>
6 #include <fw_config.h>
8 static const struct pad_config emmc_disable_pads[] = {
9 /* I7 : EMMC_CMD */
10 PAD_NC(GPP_I7, NONE),
11 /* I8 : EMMC_D0 */
12 PAD_NC(GPP_I8, NONE),
13 /* I9 : EMMC_D1 */
14 PAD_NC(GPP_I9, NONE),
15 /* I10 : EMMC_D2 */
16 PAD_NC(GPP_I10, NONE),
17 /* I11 : EMMC_D3 */
18 PAD_NC(GPP_I11, NONE),
19 /* I12 : EMMC_D4 */
20 PAD_NC(GPP_I12, NONE),
21 /* I13 : EMMC_D5 */
22 PAD_NC(GPP_I13, NONE),
23 /* I14 : EMMC_D6 */
24 PAD_NC(GPP_I14, NONE),
25 /* I15 : EMMC_D7 */
26 PAD_NC(GPP_I15, NONE),
27 /* I16 : EMMC_RCLK */
28 PAD_NC(GPP_I16, NONE),
29 /* I17 : EMMC_CLK */
30 PAD_NC(GPP_I17, NONE),
31 /* I18 : EMMC_RST_L */
32 PAD_NC(GPP_I18, NONE),
35 void fw_config_gpio_padbased_override(struct pad_config *padbased_table)
37 if (fw_config_is_provisioned() && !fw_config_probe(FW_CONFIG(STORAGE, STORAGE_EMMC))) {
38 printk(BIOS_INFO, "Disable eMMC GPIO pins.\n");
39 gpio_padbased_override(padbased_table, emmc_disable_pads,
40 ARRAY_SIZE(emmc_disable_pads));