if (ARCH_MSM || COMPILE_TEST)

config PINCTRL_MSM
	bool
	select PINMUX
	select PINCONF
	select GENERIC_PINCONF
	select GPIOLIB_IRQCHIP

config PINCTRL_APQ8064
	tristate "Qualcomm APQ8064 pin controller driver"
	depends on GPIOLIB && OF
	select PINCTRL_MSM
	help
	  This is the pinctrl, pinmux, pinconf and gpiolib driver for the
	  Qualcomm TLMM block found in the Qualcomm APQ8064 platform.

config PINCTRL_MDM9607
	tristate "QTI MDM9607 pin controller driver"
	depends on GPIOLIB && OF
	select PINCTRL_MSM
	help
	  This is the pinctrl, pinmux, pinconf and gpiolib driver for the
	  QTI TLMM block found in the QTI 9607 platform.

config PINCTRL_MDM9640
	tristate "Qualcomm MDM9640 pin controller driver"
	depends on GPIOLIB && OF
	select PINCTRL_MSM
	help
	  This is the pinctrl, pinmux, pinconf and gpiolib driver for the
	  Qualcomm TLMM block found in the Qualcomm 9640 platform.

config PINCTRL_MDM9650
	tristate "Qualcomm MDM9640 pin controller driver"
	depends on GPIOLIB && OF
	select PINCTRL_MSM
	help
	  This is the pinctrl, pinmux, pinconf and gpiolib driver for the
	  Qualcomm TLMM block found in the Qualcomm mdm9650 platform.

config PINCTRL_SDX20
	tristate "QTI SDX20 pin controller driver"
	depends on GPIOLIB && OF
	select PINCTRL_MSM
	help
	  This is the pinctrl, pinmux, pinconf and gpiolib driver for the
	  QTI TLMM block found in the QTI sdx20 platform.

config PINCTRL_APQ8084
	tristate "Qualcomm APQ8084 pin controller driver"
	depends on GPIOLIB && OF
	select PINCTRL_MSM
	help
	  This is the pinctrl, pinmux, pinconf and gpiolib driver for the
	  Qualcomm TLMM block found in the Qualcomm APQ8084 platform.

config PINCTRL_IPQ8064
	tristate "Qualcomm IPQ8064 pin controller driver"
	depends on GPIOLIB && OF
	select PINCTRL_MSM
	help
	  This is the pinctrl, pinmux, pinconf and gpiolib driver for the
	  Qualcomm TLMM block found in the Qualcomm IPQ8064 platform.

config PINCTRL_MSM8960
	tristate "Qualcomm 8960 pin controller driver"
	depends on GPIOLIB && OF
	select PINCTRL_MSM
	help
	  This is the pinctrl, pinmux, pinconf and gpiolib driver for the
	  Qualcomm TLMM block found in the Qualcomm 8960 platform.

config PINCTRL_MSM8X74
	tristate "Qualcomm 8x74 pin controller driver"
	depends on GPIOLIB && OF
	select PINCTRL_MSM
	help
	  This is the pinctrl, pinmux, pinconf and gpiolib driver for the
	  Qualcomm TLMM block found in the Qualcomm 8974 platform.

config PINCTRL_MSM8996
	tristate "Qualcomm MSM8996 pin controller driver"
	depends on GPIOLIB && OF && (ARCH_MSM8996 || COMPILE_TEST)
	select PINCTRL_MSM
	help
	  This is the pinctrl, pinmux, pinconf and gpiolib driver for the
	  Qualcomm TLMM block found in the Qualcomm MSM8996 platform.

config PINCTRL_MSM8952
	tristate "Qualcomm MSM8952 pin controller driver"
	depends on GPIOLIB && OF && (ARCH_MSM8916 || COMPILE_TEST)
	select PINCTRL_MSM
	help
	  This is the pinctrl, pinmux, pinconf and gpiolib driver for the
	  Qualcomm TLMM block found in the Qualcomm MSM8952 platform.

config PINCTRL_MSM8937
	tristate "QTI MSM8937 pin controller driver"
	depends on GPIOLIB && OF && (ARCH_MSM8937 || COMPILE_TEST)
	select PINCTRL_MSM
	help
	  This is the pinctrl, pinmux, pinconf and gpiolib driver for the
	  QTI TLMM block found in the QTI MSM8937 platform.

config PINCTRL_MSMCOBALT
	tristate "QTI MSMCOBALT pin controller driver"
	depends on GPIOLIB && OF && (ARCH_MSMCOBALT || COMPILE_TEST)
	select PINCTRL_MSM
	help
	  This is the pinctrl, pinmux, pinconf and gpiolib driver for the
	  QTI TLMM block found in the QTI MSMCOBALT platform.

config PINCTRL_MSM8917
	tristate "QTI MSM8917 pin controller driver"
	depends on GPIOLIB && OF && (ARCH_MSM8917 || COMPILE_TEST)
	select PINCTRL_MSM
	help
	  This is the pinctrl, pinmux, pinconf and gpiolib driver for the
	  QTI TLMM block found in the QTI MSM8917 platform.

config PINCTRL_MSM8940
	tristate "QTI MSM8940 pin controller driver"
	depends on GPIOLIB && OF && PINCTRL_MSM8937 && (ARCH_MSM8940 || COMPILE_TEST)
	select PINCTRL_MSM
	help
	  This is the pinctrl, pinmux, pinconf and gpiolib driver for the
	  QTI TLMM block found in the QTI MSM8940 platform.

config SENSORS_FP_SPI_GPIO_START
    depends on SENSORS_FINGERPRINT
	int "Fingerprint spi gpio number start"
	default 0

config SENSORS_FP_SPI_GPIO_END
    depends on SENSORS_FINGERPRINT
	int "Fingerprint spi gpio number end"
	default 0

config PINCTRL_MSM8953
	tristate "Qualcomm MSM8953 pin controller driver"
	depends on GPIOLIB && OF && (ARCH_MSM8953 || COMPILE_TEST)
	select PINCTRL_MSM
	help
	  This is the pinctrl, pinmux, pinconf and gpiolib driver for the
	  Qualcomm TLMM block found in the Qualcomm MSM8953 platform.

config PINCTRL_MSM8909
	tristate "QTI MSM8909 pin controller driver"
	depends on GPIOLIB && OF && (ARCH_MSM8909 || COMPILE_TEST)
	select PINCTRL_MSM
	help
	  This is the pinctrl, pinmux, pinconf and gpiolib driver for the
	  QTI TLMM block found in the QTI MSM8909 platform.
endif
