diff options
author | Christoph Müllner <christoph.muellner@vrull.eu> | 2025-08-01 13:55:33 +0200 |
---|---|---|
committer | Christoph Müllner <christophm30@gmail.com> | 2025-08-01 20:40:25 +0200 |
commit | 5d061c0ee23b1052d796e4e8e421aa6e16166fed (patch) | |
tree | 0ec5b8dceabfae236de0759c048b2a8fefad047f /linux-headers/include/linux/counter | |
parent | 686d7e6564509f1b25127df47e2f27a66958d0a0 (diff) | |
download | riscv-gnu-toolchain-master.zip riscv-gnu-toolchain-master.tar.gz riscv-gnu-toolchain-master.tar.bz2 |
This patch imports the Linux kernel headers v6.16.
This brings tons of new supported extensions for hwprobe.
Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
Diffstat (limited to 'linux-headers/include/linux/counter')
-rw-r--r-- | linux-headers/include/linux/counter/microchip-tcb-capture.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/linux-headers/include/linux/counter/microchip-tcb-capture.h b/linux-headers/include/linux/counter/microchip-tcb-capture.h new file mode 100644 index 0000000..3bf528c --- /dev/null +++ b/linux-headers/include/linux/counter/microchip-tcb-capture.h @@ -0,0 +1,40 @@ +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ +/* + * Channel numbers used by the microchip-tcb-capture driver + * Copyright (C) 2025 Bence Csókás + */ +#ifndef _COUNTER_MCHP_TCB_H_ +#define _COUNTER_MCHP_TCB_H_ + +/* + * The driver defines the following components: + * + * 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: + * + * Channel 0: + * - CV register changed + * - CV overflowed + * - RA captured + * Channel 1: + * - RB captured + * Channel 2: + * - 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 +#define COUNTER_MCHP_EVCHN_RB 1 +#define COUNTER_MCHP_EVCHN_RC 2 + +#endif /* _COUNTER_MCHP_TCB_H_ */ |