ANDROID: GKI: x86: Add hidden thermal configs
These settings are at least required by Intel TCC offset cooling driver,
which is widely supported on modern Intel platforms. With this change
it becomes possible to use the driver as a vendor module.
Bug: 370696727
Change-Id: I24d16e99bfcdb20cc95f7a98c7bb0d9505c9af20
Signed-off-by: Slawomir Rosek <[email protected]>
diff --git a/init/Kconfig.gki b/init/Kconfig.gki
index 78ae8e9..8d889b7 100644
--- a/init/Kconfig.gki
+++ b/init/Kconfig.gki
@@ -257,6 +257,15 @@
Dummy config option used to enable the hidden DMA configs,
required by various SoC platforms.
+config GKI_HIDDEN_THERMAL_CONFIGS
+ bool "Hidden thermal configs needed for GKI"
+ select THERMAL_ACPI if (X86 && ACPI)
+ select INTEL_TCC if (X86)
+ help
+ Dummy config option used to enable hidden thermal configs.
+ These are normally selected implicitly when a module that
+ relies on it is configured.
+
config GKI_NET_XFRM_HACKS
bool "XFRM changes required by Android"
help
@@ -296,6 +305,7 @@
select GKI_HIDDEN_PHY_CONFIGS
select GKI_HIDDEN_MM_CONFIGS
select GKI_HIDDEN_ETHERNET_CONFIGS
+ select GKI_HIDDEN_THERMAL_CONFIGS
select GKI_HIDDEN_DMA_CONFIGS
help