]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Coresight: ETMv4: Prevent TRCRSCTLR0&1 from being accessed
authorChunyan Zhang <zhang.chunyan@linaro.org>
Fri, 28 Aug 2015 04:10:01 +0000 (12:10 +0800)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Fri, 23 Oct 2015 13:35:42 +0000 (07:35 -0600)
commitcc3ee1d0a5ccaeb45ba6e984d7ed2a876a463743
tree516bce9cd55656325a0bda08bf6a757fd05939af
parent7379047d5585187d1288486d4627873170d0005a
Coresight: ETMv4: Prevent TRCRSCTLR0&1 from being accessed

1. TRCRSCTLRn - Resource Selection Control Registers n=0~1 are reserved,
   we shouldn't access them.
2. The max number of 'n' here is defined in TRCIDR4.NUMRSPAIR whoes value
   indicates the number of resource selection *pairs*, and 0 indicates
   one resource selection pair, 1 indicates two pairs, and so on ...

So, the total number of resource selection control registers which we can
access is (TRCIDR4.NUMRSPAIR * 2)

Signed-off-by: Chunyan Zhang <zhang.chunyan@linaro.org>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/hwtracing/coresight/coresight-etm4x.c