]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Coresight: Add Coresight TMC Control Unit driver
authorJie Gan <quic_jiegan@quicinc.com>
Mon, 3 Mar 2025 03:29:30 +0000 (11:29 +0800)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Tue, 4 Mar 2025 18:06:19 +0000 (18:06 +0000)
commitf78d206f3d73446e4c3568946a26f903da2149b4
tree20f8f828c81d0aaaac58e15e19ec129f2635c1d6
parent166df2a18dc9efa820bb2084d162f9b6650efac1
Coresight: Add Coresight TMC Control Unit driver

The Coresight TMC Control Unit hosts miscellaneous configuration registers
which control various features related to TMC ETR sink.

Based on the trace ID, which is programmed in the related CTCU ATID
register of a specific ETR, trace data with that trace ID gets into
the ETR buffer, while other trace data gets dropped.

Enabling source device sets one bit of the ATID register based on
source device's trace ID.
Disabling source device resets the bit according to the source
device's trace ID.

Reviewed-by: James Clark <james.clark@linaro.org>
Signed-off-by: Jie Gan <quic_jiegan@quicinc.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20250303032931.2500935-10-quic_jiegan@quicinc.com
drivers/hwtracing/coresight/Kconfig
drivers/hwtracing/coresight/Makefile
drivers/hwtracing/coresight/coresight-ctcu-core.c [new file with mode: 0644]
drivers/hwtracing/coresight/coresight-ctcu.h [new file with mode: 0644]
include/linux/coresight.h