unicore32: modify io_p2v and io_v2p macros, and adjust PKUNITY_mmio_BASEs
authorGuanXuetao <gxt@mprc.pku.edu.cn>
Fri, 4 Mar 2011 10:07:48 +0000 (18:07 +0800)
committerGuanXuetao <gxt@mprc.pku.edu.cn>
Thu, 17 Mar 2011 01:19:21 +0000 (09:19 +0800)
commit1cf46c42d7688a2e09de87fc9201b0e9a0961866
treef6bba402319785ed745be62e5b655715626d2761
parent4fde87cb13a29c06e0b4c2cba86445492098fbc2
unicore32: modify io_p2v and io_v2p macros, and adjust PKUNITY_mmio_BASEs

1. remove __REG macro
2. add (void __iomem *) to io_p2v macro
3. add (phys_addr_t) to io_v2p macro
4. add PKUNITY_AHB_BASE and PKUNITY_APB_BASE definitions
5. modify all PKUNITY_mmio_BASEs from physical addr to virtual addr
6. adjust prefix macro for all usage of PKUNITY_mmio_BASEs
  -- by advice with Arnd Bergmann

Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
26 files changed:
arch/unicore32/include/asm/io.h
arch/unicore32/include/mach/PKUnity.h
arch/unicore32/include/mach/hardware.h
arch/unicore32/include/mach/memory.h
arch/unicore32/include/mach/regs-ac97.h
arch/unicore32/include/mach/regs-dmac.h
arch/unicore32/include/mach/regs-gpio.h
arch/unicore32/include/mach/regs-i2c.h
arch/unicore32/include/mach/regs-intc.h
arch/unicore32/include/mach/regs-nand.h
arch/unicore32/include/mach/regs-ost.h
arch/unicore32/include/mach/regs-pci.h
arch/unicore32/include/mach/regs-pm.h
arch/unicore32/include/mach/regs-ps2.h
arch/unicore32/include/mach/regs-resetc.h
arch/unicore32/include/mach/regs-rtc.h
arch/unicore32/include/mach/regs-sdc.h
arch/unicore32/include/mach/regs-spi.h
arch/unicore32/include/mach/regs-umal.h
arch/unicore32/include/mach/regs-unigfx.h
arch/unicore32/kernel/entry.S
arch/unicore32/kernel/irq.c
arch/unicore32/kernel/pci.c
arch/unicore32/kernel/puv3-core.c
arch/unicore32/kernel/puv3-nb0916.c
arch/unicore32/kernel/sleep.S