1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <baseboard/variants.h>
5 #include <device/device.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");
26 if (!fw_config_probe(FW_CONFIG(STORAGE
, STORAGE_EMMC
))) {
27 printk(BIOS_INFO
, "eMMC disabled by fw_config\n");
31 if (!fw_config_probe(FW_CONFIG(STORAGE
, STORAGE_UFS
))) {
32 printk(BIOS_INFO
, "UFS disabled by fw_config\n");
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
=
48 config
->ext_fivr_settings
.vnn_sx_enable_bitmap
=
50 config
->ext_fivr_settings
.v1p05_supported_voltage_bitmap
=
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;