]> www.infradead.org Git - users/jedix/linux-maple.git/commit
counter: microchip-tcb-capture: Add support for RC Compare
authorWilliam Breathitt Gray <wbg@kernel.org>
Thu, 6 Mar 2025 07:05:44 +0000 (16:05 +0900)
committerWilliam Breathitt Gray <wbg@kernel.org>
Mon, 10 Mar 2025 09:20:32 +0000 (18:20 +0900)
commitba27a0247b7187af36cb0b1fe7f7a68067ccb555
treef173799a173e84dad3c634726f751934dc6811af
parentb5198201932635e19068cc2e83a99adf38f32c43
counter: microchip-tcb-capture: Add support for RC Compare

In Capture mode, the RC register serves as a compare register for the
Timer Counter Channel. When a the Counter Value reaches the RC value, a
RC Compare event occurs (COUNTER_EVENT_THRESHOLD). This patch exposes
the RC register to userspace as the 'compare' Count extension, thus
allowing users to configure the threshold condition for these events.

Acked-by: Bence Csókás <csokas.bence@prolan.hu>
Link: https://lore.kernel.org/r/20250306-introduce-compare-component-v1-2-93993b3dca9c@kernel.org
Signed-off-by: William Breathitt Gray <wbg@kernel.org>
drivers/counter/microchip-tcb-capture.c