coresight: tmc: Make memory width mask computation into a function
authorMathieu Poirier <mathieu.poirier@linaro.org>
Thu, 29 Aug 2019 20:28:40 +0000 (14:28 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Sep 2019 20:01:18 +0000 (22:01 +0200)
commit00bb485ce7b8d1186a5166fc9e38822797fae7d4
tree964c0c8ac737e0028afa53b74d0ec3418ae77fd3
parentbbedcb91cc3bf252e6031e199ab3d1f07107f7c5
coresight: tmc: Make memory width mask computation into a function

Make the computation of a memory mask representing the width of the memory
bus into a function so that it can be re-used by the ETR driver.

Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Reviewed-by: Leo Yan <leo.yan@linaro.org>
Link: https://lore.kernel.org/r/20190829202842.580-16-mathieu.poirier@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/coresight/coresight-tmc-etf.c
drivers/hwtracing/coresight/coresight-tmc.c
drivers/hwtracing/coresight/coresight-tmc.h