mb/google/fatcat: config GPP_F23 as ISH gpio pin
[coreboot2.git] / src / mainboard / google / brya / variants / craask / variant.c
blob5f6076ee0e542c987cb06959f6d3f44b1ae809ce
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <baseboard/variants.h>
4 #include <console/console.h>
5 #include <device/device.h>
6 #include <fw_config.h>
7 #include <sar.h>
8 #include <static.h>
10 const char *get_wifi_sar_cbfs_filename(void)
12 return get_wifi_sar_fw_config_filename(FW_CONFIG_FIELD(WIFI_SAR_ID));
15 void variant_devtree_update(void)
17 struct device *emmc = DEV_PTR(emmc);
18 struct device *nvme_rp = DEV_PTR(pcie_rp9);
20 if (!fw_config_is_provisioned()) {
21 printk(BIOS_INFO, "fw_config unprovisioned so enable all storage devices\n");
22 return;
25 if (!fw_config_probe(FW_CONFIG(STORAGE, STORAGE_EMMC))) {
26 printk(BIOS_INFO, "eMMC disabled by fw_config\n");
27 emmc->enabled = 0;
30 if (!fw_config_probe(FW_CONFIG(STORAGE, STORAGE_NVME))) {
31 printk(BIOS_INFO, "NVMe disabled by fw_config\n");
32 nvme_rp->enabled = 0;