mb/google/fatcat: config GPP_F23 as ISH gpio pin
[coreboot2.git] / src / mainboard / google / brya / variants / craaskov / variant.c
blob406d6043306e613473a8cc2ee9051a1573006b30
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <baseboard/variants.h>
4 #include <boardid.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 "wifi_sar_0.hex";
15 void variant_devtree_update(void)
17 struct device *emmc = DEV_PTR(emmc);
18 struct device *ufs = DEV_PTR(ufs);
19 struct device *ish = DEV_PTR(ish);
21 if (!fw_config_is_provisioned()) {
22 printk(BIOS_INFO, "fw_config unprovisioned so enable all storage devices\n");
23 return;
26 if (!fw_config_probe(FW_CONFIG(STORAGE, STORAGE_EMMC))) {
27 printk(BIOS_INFO, "eMMC disabled by fw_config\n");
28 emmc->enabled = 0;
31 if (!fw_config_probe(FW_CONFIG(STORAGE, STORAGE_UFS))) {
32 printk(BIOS_INFO, "UFS disabled by fw_config\n");
33 ufs->enabled = 0;
34 ish->enabled = 0;
38 void variant_update_soc_chip_config(struct soc_intel_alderlake_config *config)
40 const uint32_t id = board_id();
41 if (id == BOARD_ID_UNKNOWN || id < 2) { // proto=0, EVT=1
42 config->ext_fivr_settings.configure_ext_fivr = 1;
44 config->ext_fivr_settings.v1p05_enable_bitmap =
45 FIVR_ENABLE_ALL_SX & ~FIVR_ENABLE_S0;
46 config->ext_fivr_settings.vnn_enable_bitmap =
47 FIVR_ENABLE_ALL_SX;
48 config->ext_fivr_settings.vnn_sx_enable_bitmap =
49 FIVR_ENABLE_ALL_SX;
50 config->ext_fivr_settings.v1p05_supported_voltage_bitmap =
51 FIVR_VOLTAGE_NORMAL;
52 config->ext_fivr_settings.vnn_supported_voltage_bitmap =
53 FIVR_VOLTAGE_MIN_ACTIVE;
54 config->ext_fivr_settings.v1p05_voltage_mv = 1050;
55 config->ext_fivr_settings.vnn_voltage_mv = 780;
56 config->ext_fivr_settings.vnn_sx_voltage_mv = 1050;
57 config->ext_fivr_settings.v1p05_icc_max_ma = 500;
58 config->ext_fivr_settings.vnn_icc_max_ma = 500;
59 printk(BIOS_INFO, "Configured external FIVR\n");
62 if (fw_config_probe(FW_CONFIG(THERMAL_SOLUTION, THERMAL_SOLUTION_6W)))
63 config->tcc_offset = 15;
64 if (fw_config_probe(FW_CONFIG(THERMAL_SOLUTION, THERMAL_SOLUTION_15W)))
65 config->tcc_offset = 8;