MIPS: PowerTV: Streamline access to platform device registers
authorDavid VomLehn <dvomlehn@cisco.com>
Thu, 24 Dec 2009 01:34:46 +0000 (17:34 -0800)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 27 Jan 2010 23:03:31 +0000 (00:03 +0100)
commit59dfa2fcaecc39fb88bfa196cb15adca7146867a
tree25a1e3541ec399110d7a53ac8162e1bbcbd5efc0
parent9c4a6fce2032fcb5bb8339d53fd3dadfd7ddfb98
MIPS: PowerTV: Streamline access to platform device registers

Pre-compute addresses for the basic ASIC registers. This speeds up access
and allows memory for unused configurations to be freed. In addition,
uninitialized register addresses will be returned as NULL to catch bad
usage quickly.

Signed-off-by: David VomLehn <dvomlehn@cisco.com>
To: linux-mips@linux-mips.org
Patchwork: http://patchwork.linux-mips.org/patch/806/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/mach-powertv/asic_reg_map.h [new file with mode: 0644]
arch/mips/include/asm/mach-powertv/asic_regs.h
arch/mips/powertv/asic/asic-calliope.c
arch/mips/powertv/asic/asic-cronus.c
arch/mips/powertv/asic/asic-zeus.c
arch/mips/powertv/asic/asic_devices.c