[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250306-introduce-compare-component-v1-0-93993b3dca9c@kernel.org>
Date: Thu, 06 Mar 2025 16:05:42 +0900
From: William Breathitt Gray <wbg@...nel.org>
To: csokas.bence@...lan.hu, Kamel Bouhara <kamel.bouhara@...tlin.com>
Cc: linux-iio@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
William Breathitt Gray <wbg@...nel.org>
Subject: [PATCH 0/2] counter: Introduce the compare component
In previous drivers, we have exposed compare operations as part of a
larger set of functionalities; such as preseting a Count channel,
defining ceiling and floor boundaries, etc. However, we've lacked a
standard way to expose the compare operation in its strict sense as a
threshold comparison.
The need has become apparent in the microchip-tcb-capture module, which
requires a way to configure the threshold value provided by the RC
register for compare operations. To that end, a new compare component is
introduced with a helper macro COUNTER_COMP_COMPARE() to create such.
Signed-off-by: William Breathitt Gray <wbg@...nel.org>
---
William Breathitt Gray (2):
counter: Introduce the compare component
counter: microchip-tcb-capture: Add support for RC Compare
Documentation/ABI/testing/sysfs-bus-counter | 9 ++++++++
drivers/counter/microchip-tcb-capture.c | 33 +++++++++++++++++++++++++++++
include/linux/counter.h | 3 +++
3 files changed, 45 insertions(+)
---
base-commit: c2a756660324fceca26780a50950e6d91dfdc210
change-id: 20250306-introduce-compare-component-11f22ace88b1
Best regards,
--
William Breathitt Gray <wbg@...nel.org>
Powered by blists - more mailing lists