mb/google/rauru: Implement regulator interface
[coreboot2.git] / src / mainboard / google / brya / variants / crota / variant.c
blobf6613bc216c74a049fe637b61836485f38e6740d
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <sar.h>
4 #include <chip.h>
5 #include <fw_config.h>
6 #include <baseboard/variants.h>
7 #include <acpi/acpi.h>
8 #include <acpi/acpigen.h>
9 #include <drivers/vpd/vpd.h>
11 const char *get_wifi_sar_cbfs_filename(void)
13 return "wifi_sar_0.hex";
16 void variant_update_soc_chip_config(struct soc_intel_alderlake_config *config)
18 if (fw_config_probe(FW_CONFIG(DB_LTE, LTE_USB))) {
19 config->ext_fivr_settings.configure_ext_fivr = 1;
20 config->ext_fivr_settings.v1p05_enable_bitmap = FIVR_ENABLE_ALL_SX;
21 config->ext_fivr_settings.vnn_enable_bitmap = FIVR_ENABLE_ALL_SX;
22 config->ext_fivr_settings.v1p05_supported_voltage_bitmap = FIVR_VOLTAGE_NORMAL |
23 FIVR_VOLTAGE_MIN_ACTIVE |
24 FIVR_VOLTAGE_MIN_RETENTION;
25 config->ext_fivr_settings.vnn_supported_voltage_bitmap = FIVR_VOLTAGE_NORMAL |
26 FIVR_VOLTAGE_MIN_ACTIVE |
27 FIVR_VOLTAGE_MIN_RETENTION;
28 config->ext_fivr_settings.v1p05_icc_max_ma = 500;
29 config->ext_fivr_settings.vnn_sx_voltage_mv = 1250;