| 1 |
|
| 2 |
|
| 3 |
#include <baseboard/variants.h> |
| 4 |
#include <soc/pci_devs.h> |
| 5 |
#include <ec/google/chromeec/ec.h> |
| 6 |
|
| 7 |
#define SKU_UNKNOWN 0xFFFFFFFF |
| 8 |
|
| 9 |
void variant_update_devtree(struct device *dev) |
| 10 |
{ |
| 11 |
uint32_t sku_id = SKU_UNKNOWN; |
| 12 |
struct device *touchscreen_i2c_host; |
| 13 |
|
| 14 |
touchscreen_i2c_host = pcidev_path_on_root(PCH_DEVFN_I2C7); |
| 15 |
|
| 16 |
if (touchscreen_i2c_host == NULL) |
| 17 |
return; |
| 18 |
|
| 19 |
|
| 20 |
google_chromeec_cbi_get_sku_id(&sku_id); |
| 21 |
if (no_touchscreen_sku(sku_id)) |
| 22 |
touchscreen_i2c_host->enabled = 0; |
| 23 |
} |