1 ## SPDX-License-Identifier: GPL-2.0-only
3 config SOC_INTEL_COMMON_BLOCK_GPIO
6 select HAVE_GPIO_SNAPSHOT_VERIFY_SUPPORT
8 Intel Processor common GPIO support
10 if SOC_INTEL_COMMON_BLOCK_GPIO
12 # Use to program Interrupt Polarity Control (IPCx) register
13 # Each bit represents IRQx Active High Polarity Disable configuration:
14 # when set to 1, the interrupt polarity associated with IRQx is inverted
15 # to appear as Active Low to IOAPIC and vice versa
16 config SOC_INTEL_COMMON_BLOCK_GPIO_ITSS_POL_CFG
20 # Used to configure Pad Tolerance as 1.8V or 3.3V
21 config SOC_INTEL_COMMON_BLOCK_GPIO_PADCFG_PADTOL
25 # Used to configure IOSSTATE and IOSTERM
26 config SOC_INTEL_COMMON_BLOCK_GPIO_IOSTANDBY
30 # Indicate if multiple ACPI devices are used for each gpio community.
31 config SOC_INTEL_COMMON_BLOCK_GPIO_MULTI_ACPI_DEVICES
35 # Indicate if SoC supports dual-routing of GPIOs (to different paths like SCI,
36 # NMI, SMI, IOAPIC). This is required to support IRQ and wake on the same pad.
37 config SOC_INTEL_COMMON_BLOCK_GPIO_DUAL_ROUTE_SUPPORT
41 config SOC_INTEL_COMMON_BLOCK_GPIO_LOCK_USING_SBI
45 Till ADL PCH,`Pad Configuration Lock` can only be set or cleared
46 using non-posted sideband write.
48 config SOC_INTEL_COMMON_BLOCK_GPIO_LOCK_USING_PCR
51 depends on !SOC_INTEL_COMMON_BLOCK_GPIO_LOCK_USING_SBI
53 SoC user to select this config if `Pad Configuration Lock` can only be set or
54 cleared using private configuration register (PCR) write.
55 Starting with MTL SoC, the recommendation is to use PCR for locking down the
58 # Indicate if SoC supports 4 bits Pad Mode with PAD_CFG_DW0 registers
59 config SOC_INTEL_COMMON_BLOCK_GPIO_PMODE_4BITS
63 SoC user to select this config if Pad Mode (PMODE) width of PAD_CFG_DW0 regiser
64 is 4 bits to support Native Function 1 to 15.