summaryrefslogtreecommitdiff
path: root/include/uapi/linux/counter
diff options
context:
space:
mode:
authorBence Csókás <csokas.bence@prolan.hu>2025-03-06 14:44:37 +0100
committerWilliam Breathitt Gray <wbg@kernel.org>2025-03-08 08:57:18 +0900
commit1adc6240a80278c613f655b71c6c0d447b2d5932 (patch)
tree5d6c5e5a40bc47504e1264e3200147aa9611a93b /include/uapi/linux/counter
parente5d5813968217b99ef2b83f13353967b218e3841 (diff)
counter: microchip-tcb-capture: Add capture extensions for registers RA/RB
TCB hardware is capable of capturing the timer value to registers RA and RB. Add these registers as capture extensions. Signed-off-by: Bence Csókás <csokas.bence@prolan.hu> Link: https://lore.kernel.org/r/20250306134441.582819-3-csokas.bence@prolan.hu Signed-off-by: William Breathitt Gray <wbg@kernel.org>
Diffstat (limited to 'include/uapi/linux/counter')
-rw-r--r--include/uapi/linux/counter/microchip-tcb-capture.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/uapi/linux/counter/microchip-tcb-capture.h b/include/uapi/linux/counter/microchip-tcb-capture.h
index f3ef315fe9f6..136e2faa7730 100644
--- a/include/uapi/linux/counter/microchip-tcb-capture.h
+++ b/include/uapi/linux/counter/microchip-tcb-capture.h
@@ -12,6 +12,8 @@
* Count 0
* \__ Synapse 0 -- Signal 0 (Channel A, i.e. TIOA)
* \__ Synapse 1 -- Signal 1 (Channel B, i.e. TIOB)
+ * \__ Extension capture0 (RA register)
+ * \__ Extension capture1 (RB register)
*
* It also supports the following events:
*
@@ -25,6 +27,10 @@
* - RC compare triggered
*/
+/* Capture extensions */
+#define COUNTER_MCHP_EXCAP_RA 0
+#define COUNTER_MCHP_EXCAP_RB 1
+
/* Event channels */
#define COUNTER_MCHP_EVCHN_CV 0
#define COUNTER_MCHP_EVCHN_RA 0