aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2011-12-09 12:14:27 +0900
committerPaul Mundt <lethal@linux-sh.org>2011-12-09 18:07:15 +0900
commitb0e10211cba1629e2e534ca9cb3d87cfc7e389ea (patch)
treef545599adeabd07c3dc76a4d90860599fea800b0 /sound
parentMerge branch 'dev' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4 (diff)
downloadlinux-dev-b0e10211cba1629e2e534ca9cb3d87cfc7e389ea.tar.xz
linux-dev-b0e10211cba1629e2e534ca9cb3d87cfc7e389ea.zip
sh: pfc: ioremap() support
Add support for non-entity mapped PFC registers through the use of struct resource and ioremap()/iounmap(). The PFC main data structure gets updated with a pointer to a struct resources array that point out all register windows used by the PFC instance. The register definitions are kept as physical addresses but the PFC code will do transparent conversion into virtual addresses whenever register windows are specified using with struct resource. To introduce as little performance penalty as possible the virtual address of each data register is cached in memory. The virtual address of each configuration register is however calculated during run time. This because the configuration is considered slow path so focus is instead put on keeping memory foot print as small as possible. The PFC register access code is in this patch updated from __raw_readN() / __raw_writeN() into ioreadN() / iowriteN(). This patch is needed to support the PFC block in r8a7779. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions