diff options
author | Morris Hsu <morris-hsu@quanta.corp-partner.google.com> | 2023-08-16 14:18:40 +0800 |
---|---|---|
committer | Subrata Banik <subratabanik@google.com> | 2023-08-23 04:13:36 +0000 |
commit | b6392ef4d7ffe2dbef91c5f2c0d705c8d6acca17 (patch) | |
tree | de18cde01ccd3b308ee8229e0b4e86493724cc8e /src/mainboard/google/brya/variants | |
parent | 048c2f2ac0d7712b74928cbdbba16f51c69f8c6d (diff) |
mb/google/brask/var/constitution: Separate wifi sar table
Separate constitution and intrepid wifi sar table in variant.c
BUG=b:291859402
BRANCH=firmware-brya-14505.B
TEST=emerge-constitution coreboot chromeos-bootimage
Change-Id: I0f89b3d5f5252a2b55bad4d91ad4ab9ec7519c50
Signed-off-by: Morris Hsu <morris-hsu@quanta.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/77242
Reviewed-by: Kapil Porwal <kapilporwal@google.com>
Reviewed-by: Martin L Roth <gaumless@gmail.com>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Reviewed-by: Subrata Banik <subratabanik@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google/brya/variants')
-rw-r--r-- | src/mainboard/google/brya/variants/constitution/overridetree.cb | 7 | ||||
-rw-r--r-- | src/mainboard/google/brya/variants/constitution/variant.c | 7 |
2 files changed, 13 insertions, 1 deletions
diff --git a/src/mainboard/google/brya/variants/constitution/overridetree.cb b/src/mainboard/google/brya/variants/constitution/overridetree.cb index da540c36ab..c6083f1387 100644 --- a/src/mainboard/google/brya/variants/constitution/overridetree.cb +++ b/src/mainboard/google/brya/variants/constitution/overridetree.cb @@ -1,3 +1,10 @@ +fw_config + field WIFI_SAR_ID 30 31 + option ID_0 0 + option UNUSED 3 + end +end + chip soc/intel/alderlake register "domain_vr_config[VR_DOMAIN_IA]" = "{ .enable_fast_vmode = 1, diff --git a/src/mainboard/google/brya/variants/constitution/variant.c b/src/mainboard/google/brya/variants/constitution/variant.c index 6a79780f6e..289481c2ee 100644 --- a/src/mainboard/google/brya/variants/constitution/variant.c +++ b/src/mainboard/google/brya/variants/constitution/variant.c @@ -1,8 +1,13 @@ /* SPDX-License-Identifier: GPL-2.0-only */ +#include <console/console.h> +#include <fw_config.h> #include <sar.h> const char *get_wifi_sar_cbfs_filename(void) { - return "wifi_sar_0.hex"; + if (fw_config_probe(FW_CONFIG(WIFI_SAR_ID, ID_0))) { + return "wifi_sar_0.hex"; + } + return NULL; } |