summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorHou Zhiqiang <Zhiqiang.Hou@nxp.com>2019-07-05 12:56:29 +0300
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2019-07-08 13:23:13 +0300
commitbcbe0d9a8d931597202859d13506611dd9736da9 (patch)
tree30f21641286f4b6eea93c442a7ba0f802e9dcfe9 /tools/perf/scripts/python/export-to-postgresql.py
parenta188339ca5a396acc588e5851ed7e19f66b0ebd9 (diff)
downloadlinux-bcbe0d9a8d931597202859d13506611dd9736da9.tar.xz
PCI: mobiveil: Unify register accessors
It is confusing to have two sets of functions to read/write registers, some with csr_readl()/csr_writel(), while others with read_paged_register()/write_paged_register(). In the register space the lower 3KB of 4KB PCIe configure space can be accessed directly and higher 1KB through a simple paging mechanism. Unify the register accessors in csr_readl() and csr_writel() by comparing the register offset with page access boundary 3KB in the accessor internal so that the paging mechanism is hidden behind the csr_read()/write() common function calls. Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Reviewed-by: Minghuan Lian <Minghuan.Lian@nxp.com> Reviewed-by: Subrahmanya Lingappa <l.subrahmanya@mobiveil.co.in>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions