blob: fa1a99076bdf4cb4c6caaa3745bfb05096f0ce32 [file] [log] [blame]
Shaunak Saha9dffbdd2017-03-08 19:27:17 -08001config SOC_INTEL_COMMON_BLOCK_PMC
2 depends on SOC_INTEL_COMMON_BLOCK_GPIO
Shaunak Saha07f5b622017-08-11 12:33:20 -07003 depends on ACPI_INTEL_HARDWARE_SLEEP_VALUES
Shaunak Saha9dffbdd2017-03-08 19:27:17 -08004 bool
Nico Huber9faae2b2018-11-14 00:00:35 +01005 select HAVE_POWER_STATE_AFTER_FAILURE
6 select HAVE_POWER_STATE_PREVIOUS_AFTER_FAILURE
Shaunak Saha9dffbdd2017-03-08 19:27:17 -08007 help
8 Intel Processor common code for Power Management controller(PMC)
9 subsystem
Subrata Banik9b98feb2017-12-13 11:02:43 +053010
Tim Chuadb69222020-07-09 18:30:56 -070011if SOC_INTEL_COMMON_BLOCK_PMC
12
13config POWER_STATE_DEFAULT_ON_AFTER_FAILURE
14 default y
15
Arthur Heymans1ae8cd12020-11-19 13:59:53 +010016config SOC_INTEL_COMMON_BLOCK_PMC_DISCOVERABLE
17 bool
18 help
19 Select this on platforms where the PMC device is discoverable
Martin Roth26f97f92021-10-01 14:53:22 -060020 when scanning buses.
Arthur Heymans1ae8cd12020-11-19 13:59:53 +010021
Lean Sheng Tan75020002021-06-30 01:47:48 -070022config SOC_INTEL_COMMON_BLOCK_PMC_EPOC
Lean Sheng Tan508dc162021-06-16 01:32:22 -070023 bool
24 help
25 Enable this for PMC devices to perform EPOC (CPU Early Power-on
26 Configuration) related functions.
27
Tim Chuadb69222020-07-09 18:30:56 -070028endif # SOC_INTEL_COMMON_BLOCK_PMC
29
Hannah Williams1177bf52017-12-13 12:44:26 -080030config PMC_INVALID_READ_AFTER_WRITE
31 bool
32 default n
33 help
34 Enable this for PMC devices where a read back of ACPI BAR and
35 IO access bit does not return the previously written value.
Julien Viard de Galbert2912e8e2018-08-14 16:15:26 +020036
Duncan Laurie44caa192020-10-10 00:05:36 +000037config PMC_IPC_ACPI_INTERFACE
38 bool
39 default n
40 depends on HAVE_ACPI_TABLES
41 help
42 Enable this to have the PMC IPC mailbox ACPI interface added
43 to the SSDT for use by other drivers.
44
Julien Viard de Galbert2912e8e2018-08-14 16:15:26 +020045config PMC_GLOBAL_RESET_ENABLE_LOCK
46 bool
47 help
48 Enable this for PMC devices where the reset configuration
49 and lock register is located under PMC BASE at offset ETR.
50 Note that the reset register is still at 0xCF9 this only
51 controls the enable and lock feature.
Subrata Banik3e959d82020-09-28 17:50:00 +053052
Michael Niewöhnerc9a12f22021-09-24 23:22:51 +020053config NO_PM_ACPI_TIMER
54 bool
55 help
56 Selected by SoCs that do not have a PM ACPI timer.
57
Michael Niewöhner5df952b2020-10-02 17:57:47 +020058config USE_PM_ACPI_TIMER
59 bool "Enable ACPI PM timer"
60 default y
Michael Niewöhnerc9a12f22021-09-24 23:22:51 +020061 depends on !NO_PM_ACPI_TIMER
Michael Niewöhner5df952b2020-10-02 17:57:47 +020062 help
63 This should be disabled for devices running on battery since
64 it can draw much power. Further, it must be disabled, if S0ix
65 is enabled.
66
67 Disabling this option also stops the hardware TCO timer and makes
68 the TCO watchdog unavailable.
69
Michael Niewöhnerc47fc402021-09-25 00:10:30 +020070 Note: On platforms without uCode PM Timer emulation, legacy OSes
71 or payloads with ACPI version < 5.0A might not work without
72 PM ACPI timer.
73
74 (Legacy) software requiring `TMR_STS` (for timer overflow
75 interrupts) will not work with this option disabled.