mb/google/fatcat/var/fatcat: Refactor GPIO programming for UFS support
[coreboot.git] / src / mainboard / google / brya / variants / vell / variant.c
blobce75438ba63c5318b652e239a9cd35665c27a729
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>
7 #include <static.h>
9 const char *get_wifi_sar_cbfs_filename(void)
11 return "wifi_sar_0.hex";
14 void variant_devtree_update(void)
16 struct device *i2c0_cs35l53_0 = DEV_PTR(i2c0_cs35l53_0);
17 struct device *i2c0_cs35l53_1 = DEV_PTR(i2c0_cs35l53_1);
18 struct device *i2c7_cs35l53_0 = DEV_PTR(i2c7_cs35l53_0);
19 struct device *i2c7_cs35l53_1 = DEV_PTR(i2c7_cs35l53_1);
21 uint32_t board_ver = board_id();
23 if (board_ver >= 2) {
24 i2c0_cs35l53_0->enabled = 0;
25 i2c0_cs35l53_1->enabled = 0;
26 i2c7_cs35l53_0->enabled = 1;
27 i2c7_cs35l53_1->enabled = 1;
28 } else {
29 i2c0_cs35l53_0->enabled = 1;
30 i2c0_cs35l53_1->enabled = 1;
31 i2c7_cs35l53_0->enabled = 0;
32 i2c7_cs35l53_1->enabled = 0;