Wisley Chen | 964a603 | 2022-12-14 18:08:53 +0600 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
Wisley Chen | cdf7ec6 | 2022-12-28 14:15:53 +0600 | [diff] [blame^] | 3 | #include <baseboard/variants.h> |
| 4 | #include <boardid.h> |
Wisley Chen | 964a603 | 2022-12-14 18:08:53 +0600 | [diff] [blame] | 5 | #include <fw_config.h> |
| 6 | #include <sar.h> |
| 7 | |
| 8 | const char *get_wifi_sar_cbfs_filename(void) |
| 9 | { |
| 10 | if (fw_config_probe(FW_CONFIG(WIFI_SAR_ID, SAR_ID_0))) |
| 11 | return "wifi_sar_0.hex"; |
| 12 | |
| 13 | return NULL; |
| 14 | } |
Wisley Chen | cdf7ec6 | 2022-12-28 14:15:53 +0600 | [diff] [blame^] | 15 | |
| 16 | void variant_update_soc_chip_config(struct soc_intel_alderlake_config *config) |
| 17 | { |
| 18 | const uint32_t id = board_id(); |
| 19 | if (id == BOARD_ID_UNKNOWN || id < 4) { // proto, EVT |
| 20 | config->ext_fivr_settings.configure_ext_fivr = 1; |
| 21 | |
| 22 | config->ext_fivr_settings.v1p05_enable_bitmap = |
| 23 | FIVR_ENABLE_ALL_SX & ~FIVR_ENABLE_S0; |
| 24 | config->ext_fivr_settings.vnn_enable_bitmap = |
| 25 | FIVR_ENABLE_ALL_SX; |
| 26 | config->ext_fivr_settings.vnn_sx_enable_bitmap = |
| 27 | FIVR_ENABLE_ALL_SX; |
| 28 | config->ext_fivr_settings.v1p05_supported_voltage_bitmap = |
| 29 | FIVR_VOLTAGE_NORMAL; |
| 30 | config->ext_fivr_settings.vnn_supported_voltage_bitmap = |
| 31 | FIVR_VOLTAGE_MIN_ACTIVE; |
| 32 | config->ext_fivr_settings.v1p05_voltage_mv = 1050; |
| 33 | config->ext_fivr_settings.vnn_voltage_mv = 780; |
| 34 | config->ext_fivr_settings.vnn_sx_voltage_mv = 1050; |
| 35 | config->ext_fivr_settings.v1p05_icc_max_ma = 500; |
| 36 | config->ext_fivr_settings.vnn_icc_max_ma = 500; |
| 37 | printk(BIOS_INFO, "Configured External FIVR\n"); |
| 38 | } |
| 39 | } |