Commit 597f55e3 authored by Fabrice Gasnier's avatar Fabrice Gasnier Committed by Greg Kroah-Hartman

counter: stm32-lptimer: add counter device

Add support for new counter device to stm32-lptimer.
Signed-off-by: default avatarFabrice Gasnier <fabrice.gasnier@st.com>
Reviewed-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: default avatarWilliam Breathitt Gray <vilhelm.gray@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ec63e2a4
...@@ -38,4 +38,14 @@ config STM32_TIMER_CNT ...@@ -38,4 +38,14 @@ config STM32_TIMER_CNT
To compile this driver as a module, choose M here: the To compile this driver as a module, choose M here: the
module will be called stm32-timer-cnt. module will be called stm32-timer-cnt.
config STM32_LPTIMER_CNT
tristate "STM32 LP Timer encoder counter driver"
depends on (MFD_STM32_LPTIMER || COMPILE_TEST) && IIO
help
Select this option to enable STM32 Low-Power Timer quadrature encoder
and counter driver.
To compile this driver as a module, choose M here: the
module will be called stm32-lptimer-cnt.
endif # COUNTER endif # COUNTER
...@@ -6,3 +6,4 @@ obj-$(CONFIG_COUNTER) += counter.o ...@@ -6,3 +6,4 @@ obj-$(CONFIG_COUNTER) += counter.o
obj-$(CONFIG_104_QUAD_8) += 104-quad-8.o obj-$(CONFIG_104_QUAD_8) += 104-quad-8.o
obj-$(CONFIG_STM32_TIMER_CNT) += stm32-timer-cnt.o obj-$(CONFIG_STM32_TIMER_CNT) += stm32-timer-cnt.o
obj-$(CONFIG_STM32_LPTIMER_CNT) += stm32-lptimer-cnt.o
...@@ -74,7 +74,6 @@ source "drivers/iio/afe/Kconfig" ...@@ -74,7 +74,6 @@ source "drivers/iio/afe/Kconfig"
source "drivers/iio/amplifiers/Kconfig" source "drivers/iio/amplifiers/Kconfig"
source "drivers/iio/chemical/Kconfig" source "drivers/iio/chemical/Kconfig"
source "drivers/iio/common/Kconfig" source "drivers/iio/common/Kconfig"
source "drivers/iio/counter/Kconfig"
source "drivers/iio/dac/Kconfig" source "drivers/iio/dac/Kconfig"
source "drivers/iio/dummy/Kconfig" source "drivers/iio/dummy/Kconfig"
source "drivers/iio/frequency/Kconfig" source "drivers/iio/frequency/Kconfig"
......
...@@ -20,7 +20,6 @@ obj-y += amplifiers/ ...@@ -20,7 +20,6 @@ obj-y += amplifiers/
obj-y += buffer/ obj-y += buffer/
obj-y += chemical/ obj-y += chemical/
obj-y += common/ obj-y += common/
obj-y += counter/
obj-y += dac/ obj-y += dac/
obj-y += dummy/ obj-y += dummy/
obj-y += gyro/ obj-y += gyro/
......
#
# Counter devices
#
# When adding new entries keep the list in alphabetical order
menu "Counters"
config STM32_LPTIMER_CNT
tristate "STM32 LP Timer encoder counter driver"
depends on MFD_STM32_LPTIMER || COMPILE_TEST
help
Select this option to enable STM32 Low-Power Timer quadrature encoder
and counter driver.
To compile this driver as a module, choose M here: the
module will be called stm32-lptimer-cnt.
endmenu
#
# Makefile for IIO counter devices
#
# When adding new entries keep the list in alphabetical order
obj-$(CONFIG_STM32_LPTIMER_CNT) += stm32-lptimer-cnt.o
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment