[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20250205104957.95236-2-csokas.bence@prolan.hu>
Date: Wed, 5 Feb 2025 11:50:43 +0100
From: Bence Csókás <csokas.bence@...lan.hu>
To: <linux-arm-kernel@...ts.infradead.org>, <linux-iio@...r.kernel.org>,
<linux-kernel@...r.kernel.org>
CC: Bence Csókás <csokas.bence@...lan.hu>, "Kamel
Bouhara" <kamel.bouhara@...tlin.com>, William Breathitt Gray <wbg@...nel.org>
Subject: [PATCH v3 0/2] microchip-tcb-capture: Add Capture, Compare, Overflow etc. events
The TCB has three R/W-able "general purpose" hardware registers:
RA, RB and RC. The hardware is capable of:
* sampling Counter Value Register (CV) to RA/RB on a trigger edge
* sending an interrupt of this change
* sending an interrupt on CV change due to trigger
* triggering an interrupt on CV compare to RC
* stop counting after sampling to RB
To enable using these features in user-space, an interrupt handler
was added, generating the necessary counter events. On top, RA/B/C
registers are added as Count Extensions.
Bence Csókás (2):
counter: microchip-tcb-capture: Add IRQ handling
counter: microchip-tcb-capture: Add capture extensions for registers
RA-RC
drivers/counter/microchip-tcb-capture.c | 125 ++++++++++++++++++++++++
1 file changed, 125 insertions(+)
--
2.48.1
Powered by blists - more mailing lists