iio: addac: stx104: Add 8254 Counter/Timer support
authorWilliam Breathitt Gray <william.gray@linaro.org>
Sat, 16 Sep 2023 11:20:31 +0000 (07:20 -0400)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 17 Sep 2023 09:29:41 +0000 (10:29 +0100)
commit66fe531268f274310a052603fc298f6cc177489b
tree2490d3cc73b3bd41a3ce06245b31bb344827ca31
parent9dc03309fe9ba9f9b26a37b2dd4fa2d5111a1ccf
iio: addac: stx104: Add 8254 Counter/Timer support

The STX104 features an 8254 Counter/Timer chip providing three
counter/timers which can be used for frequency measurement, frequency
output, pulse width modulation, pulse width measurement, event count,
etc. The STX104 provides a register bank selection to bank select
between the 8254 Bank and the Indexed Register Array Bank; the Indexed
Register Array is not utilized by this driver, so the 8254 Bank is
selected unconditionally.

Signed-off-by: William Breathitt Gray <william.gray@linaro.org>
Link: https://lore.kernel.org/r/20230916112031.3634-1-william.gray@linaro.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/addac/Kconfig
drivers/iio/addac/stx104.c