1 /* SPDX-License-Identifier: GPL-2.0-only */
5 #include <baseboard/variants.h>
7 #include <ec/google/chromeec/ec.h>
8 #include <soc/intel/apollolake/chip.h>
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
)
24 switch (google_chromeec_get_board_sku()) {
27 power_off_lte_module();
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()) {
44 cfg
->disable_xhci_lfps_pm
= 1;