mainboard/intel/avenuecity_crb: Update full IIO configuration
[coreboot2.git] / src / mainboard / google / octopus / variants / dood / variant.c
blobe4635ba316c75a28bac45b4e1027a30ae72f0b3c
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <acpi/acpi.h>
4 #include <sar.h>
5 #include <baseboard/variants.h>
6 #include <gpio.h>
7 #include <ec/google/chromeec/ec.h>
8 #include <soc/intel/apollolake/chip.h>
10 enum {
11 SKU_1_LTE = 1, /* Wifi + LTE */
12 SKU_2_WIFI = 2, /* Wifi */
13 SKU_3_LTE_2CAM = 3, /* Wifi + LTE + dual camera */
14 SKU_4_WIFI_2CAM = 4, /* Wifi + dual camera */
17 void variant_smi_sleep(u8 slp_typ)
19 /* Currently use cases here all target to S5 therefore we do early return
20 * here for saving one transaction to the EC for getting SKU ID. */
21 if (slp_typ != ACPI_S5)
22 return;
24 switch (google_chromeec_get_board_sku()) {
25 case SKU_1_LTE:
26 case SKU_3_LTE_2CAM:
27 power_off_lte_module();
28 return;
29 default:
30 return;
34 void variant_update_devtree(struct device *dev)
36 struct soc_intel_apollolake_config *cfg = NULL;
38 cfg = (struct soc_intel_apollolake_config *)dev->chip_info;
40 if (cfg != NULL && (cfg->disable_xhci_lfps_pm != 1)) {
41 switch (google_chromeec_get_board_sku()) {
42 case SKU_1_LTE:
43 case SKU_3_LTE_2CAM:
44 cfg->disable_xhci_lfps_pm = 1;
45 return;
46 default:
47 return;