1 ## SPDX-License-Identifier: GPL-2.0-only
3 config SOC_INTEL_COMMON_BLOCK_PMC
4 depends on SOC_INTEL_COMMON_BLOCK_GPIO
5 depends on ACPI_INTEL_HARDWARE_SLEEP_VALUES
7 select ACPI_S1_NOT_SUPPORTED
8 select HAVE_POWER_STATE_AFTER_FAILURE
9 select HAVE_POWER_STATE_PREVIOUS_AFTER_FAILURE
11 Intel Processor common code for Power Management controller(PMC)
14 if SOC_INTEL_COMMON_BLOCK_PMC
16 config SOC_INTEL_MEM_MAPPED_PM_CONFIGURATION
19 Select this on platforms where the PMC register for PM configuration (i.e.,
20 GEN_PMCON_A/B etc. are memory mapped).
22 config POWER_STATE_DEFAULT_ON_AFTER_FAILURE
25 config SOC_INTEL_COMMON_BLOCK_PMC_DISCOVERABLE
28 Select this on platforms where the PMC device is discoverable
31 config SOC_INTEL_COMMON_BLOCK_PMC_EPOC
34 Enable this for PMC devices to perform EPOC (CPU Early Power-on
35 Configuration) related functions.
37 endif # SOC_INTEL_COMMON_BLOCK_PMC
39 config PMC_INVALID_READ_AFTER_WRITE
43 Enable this for PMC devices where a read back of ACPI BAR and
44 IO access bit does not return the previously written value.
46 config PMC_IPC_ACPI_INTERFACE
49 depends on HAVE_ACPI_TABLES
51 Enable this to have the PMC IPC mailbox ACPI interface added
52 to the SSDT for use by other drivers.
54 config PMC_GLOBAL_RESET_ENABLE_LOCK
57 Enable this for PMC devices where the reset configuration
58 and lock register is located under PMC BASE at offset ETR.
59 Note that the reset register is still at 0xCF9 this only
60 controls the enable and lock feature.
62 config NO_PM_ACPI_TIMER
65 Selected by SoCs that do not have a PM ACPI timer.
67 config USE_PM_ACPI_TIMER
68 bool "Enable ACPI PM timer"
70 depends on !NO_PM_ACPI_TIMER
72 This should be disabled for devices running on battery since
73 it can draw much power. Further, it must be disabled, if S0ix
76 Disabling this option also stops the hardware TCO timer and makes
77 the TCO watchdog unavailable.
79 Note: On platforms without uCode PM Timer emulation, legacy OSes
80 or payloads with ACPI version < 5.0A might not work without
83 (Legacy) software requiring `TMR_STS` (for timer overflow
84 interrupts) will not work with this option disabled.
86 config SOC_QDF_DYNAMIC_READ_PMC
89 depends on SOC_INTEL_COMMON_BLOCK_PMC && PMC_IPC_ACPI_INTERFACE
91 Enable this option if the platform supports reading SOC QDF
92 data dynamically at runtime using the PMC IPC interface.