mainboard/intel/avenuecity_crb: Update full IIO configuration
[coreboot2.git] / src / mainboard / google / octopus / variants / phaser / variant.c
blobdb2d676ac0ebfc054356b3cf200af52156ac3b44
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <baseboard/variants.h>
4 #include <soc/pci_devs.h>
5 #include <ec/google/chromeec/ec.h>
7 #define SKU_UNKNOWN 0xFFFFFFFF
9 void variant_update_devtree(struct device *dev)
11 uint32_t sku_id = SKU_UNKNOWN;
12 struct device *touchscreen_i2c_host;
14 touchscreen_i2c_host = pcidev_path_on_root(PCH_DEVFN_I2C7);
16 if (touchscreen_i2c_host == NULL)
17 return;
19 /* SKU ID 1, 6 does not have a touchscreen device, hence disable it. */
20 google_chromeec_cbi_get_sku_id(&sku_id);
21 if (no_touchscreen_sku(sku_id))
22 touchscreen_i2c_host->enabled = 0;