summaryrefslogtreecommitdiff
path: root/src/mainboard/google/brox/variants/greenbayupoc/variant.c
diff options
context:
space:
mode:
authorEren Peng <peng.eren@inventec.corp-partner.google.com>2024-04-26 11:05:05 +0800
committerFelix Held <felix-coreboot@felixheld.de>2024-05-14 13:08:30 +0000
commitbb616ca4830f6bf483abfc99c0b5c39ae64f56c7 (patch)
treea4bd2602615b6d213c305f82b2ee686bdf488f2d /src/mainboard/google/brox/variants/greenbayupoc/variant.c
parentd05611d264b5dcf4223f927bf88c6504fb04f3f7 (diff)
mb/google/brox/var/greenbayupoc: Update devicetree and gpio settings
Based on latest schematics GREENBAY_0412.SCH update the gpio and devicetree settings. BUG=b:326413034 TEST=emerge-brox coreboot chromeos-bootimage, flash and boot on DUT Cq-Depend:chrome-internal:7218819 Change-Id: I59f25b8abb7dd8a2dff7ff567b231bddc9db8455 Signed-off-by: Eren Peng <peng.eren@inventec.corp-partner.google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/82093 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Derek Huang <derekhuang@google.com>
Diffstat (limited to 'src/mainboard/google/brox/variants/greenbayupoc/variant.c')
-rw-r--r--src/mainboard/google/brox/variants/greenbayupoc/variant.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/mainboard/google/brox/variants/greenbayupoc/variant.c b/src/mainboard/google/brox/variants/greenbayupoc/variant.c
new file mode 100644
index 0000000000..9452ad0eb9
--- /dev/null
+++ b/src/mainboard/google/brox/variants/greenbayupoc/variant.c
@@ -0,0 +1,20 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <assert.h>
+#include <baseboard/variants.h>
+#include <chip.h>
+#include <fw_config.h>
+#include <sar.h>
+
+void variant_update_soc_chip_config(struct soc_intel_alderlake_config *config)
+{
+ if (fw_config_probe(FW_CONFIG(WIFI, WIFI_CNVI_WIFI))) {
+ printk(BIOS_INFO, "CNVi bluetooth enabled by fw_config\n");
+ config->cnvi_bt_core = true;
+ }
+}
+
+const char *get_wifi_sar_cbfs_filename(void)
+{
+ return get_wifi_sar_fw_config_filename(FW_CONFIG_FIELD(WIFI));
+}