summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/google/octopus/variants/fleex/overridetree.cb7
-rw-r--r--src/mainboard/google/octopus/variants/fleex/variant.c11
2 files changed, 15 insertions, 3 deletions
diff --git a/src/mainboard/google/octopus/variants/fleex/overridetree.cb b/src/mainboard/google/octopus/variants/fleex/overridetree.cb
index 679b101037..2fd554ff88 100644
--- a/src/mainboard/google/octopus/variants/fleex/overridetree.cb
+++ b/src/mainboard/google/octopus/variants/fleex/overridetree.cb
@@ -84,6 +84,10 @@ chip soc/intel/apollolake
},
}"
+ # Disable compliance mode
+ register "DisableComplianceMode" = "1"
+ register "disable_xhci_lfps_pm" = "0"
+
device domain 0 on
device pci 16.0 on
chip drivers/i2c/hid
@@ -181,7 +185,4 @@ chip soc/intel/apollolake
end
end # - I2C 7
end
-
- # Disable compliance mode
- register "DisableComplianceMode" = "1"
end
diff --git a/src/mainboard/google/octopus/variants/fleex/variant.c b/src/mainboard/google/octopus/variants/fleex/variant.c
index 522faa9d7b..5554fb3388 100644
--- a/src/mainboard/google/octopus/variants/fleex/variant.c
+++ b/src/mainboard/google/octopus/variants/fleex/variant.c
@@ -4,6 +4,7 @@
#include <baseboard/variants.h>
#include <ec/google/chromeec/ec.h>
#include <sar.h>
+#include <soc/intel/apollolake/chip.h>
#define MIN_LTE_SKU 4
@@ -31,3 +32,13 @@ const char *get_wifi_sar_cbfs_filename(void)
return filename;
}
+
+void variant_update_devtree(struct device *dev)
+{
+ struct soc_intel_apollolake_config *cfg = NULL;
+
+ cfg = (struct soc_intel_apollolake_config *)dev->chip_info;
+ // Force disable_xhci_lfps_pm to update if it is LTE sku
+ if (cfg != NULL && is_lte_sku())
+ cfg->disable_xhci_lfps_pm = 1;
+}