cpu/x86/smm/pci_resource_store: Store DEV/VEN ID
[coreboot2.git] / src / mainboard / google / brya / variants / vell / variant.c
blob216de3c90dca228ab48e97612be7cfea3f704f30
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #include <baseboard/variants.h>
4 #include <boardid.h>
5 #include <sar.h>
6 #include <soc/pci_devs.h>
8 const char *get_wifi_sar_cbfs_filename(void)
10 return "wifi_sar_0.hex";
13 void variant_devtree_update(void)
15 struct device *i2c0_cs35l53_0 = DEV_PTR(i2c0_cs35l53_0);
16 struct device *i2c0_cs35l53_1 = DEV_PTR(i2c0_cs35l53_1);
17 struct device *i2c7_cs35l53_0 = DEV_PTR(i2c7_cs35l53_0);
18 struct device *i2c7_cs35l53_1 = DEV_PTR(i2c7_cs35l53_1);
20 uint32_t board_ver = board_id();
22 if (board_ver >= 2) {
23 i2c0_cs35l53_0->enabled = 0;
24 i2c0_cs35l53_1->enabled = 0;
25 i2c7_cs35l53_0->enabled = 1;
26 i2c7_cs35l53_1->enabled = 1;
27 } else {
28 i2c0_cs35l53_0->enabled = 1;
29 i2c0_cs35l53_1->enabled = 1;
30 i2c7_cs35l53_0->enabled = 0;
31 i2c7_cs35l53_1->enabled = 0;