diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2014-07-11 13:00:36 +0200 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2014-07-12 18:51:36 +0200 |
commit | 0e32986c0f51d585b4980a0f01c269627f51b78b (patch) | |
tree | 72d0504ed437644e39f3112a9f16604416dc8238 /arch/arm/mach-pxa/generic.c | |
parent | Merge tag 'pxa-for-v3.17-2' of https://git.kernel.org/pub/scm/linux/kernel/gi... (diff) | |
download | linux-0e32986c0f51d585b4980a0f01c269627f51b78b.tar.xz linux-0e32986c0f51d585b4980a0f01c269627f51b78b.zip |
ARM: pxa: Don't hardcode addresses and size in map_desc tables
The virtual address, physical address and size of all regions for which
we create static mappings are defined in PXA headers. Replaced the
hardcoded values with macros.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/mach-pxa/generic.c')
-rw-r--r-- | arch/arm/mach-pxa/generic.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/mach-pxa/generic.c b/arch/arm/mach-pxa/generic.c index 94f49c23ca02..68a75fe16020 100644 --- a/arch/arm/mach-pxa/generic.c +++ b/arch/arm/mach-pxa/generic.c @@ -79,14 +79,14 @@ EXPORT_SYMBOL(get_clk_frequency_khz); */ static struct map_desc common_io_desc[] __initdata = { { /* Devs */ - .virtual = 0xf2000000, - .pfn = __phys_to_pfn(0x40000000), - .length = 0x02000000, + .virtual = (unsigned long)PERIPH_VIRT, + .pfn = __phys_to_pfn(PERIPH_PHYS), + .length = PERIPH_SIZE, .type = MT_DEVICE }, { /* UNCACHED_PHYS_0 */ - .virtual = 0xff000000, + .virtual = UNCACHED_PHYS_0, .pfn = __phys_to_pfn(0x00000000), - .length = 0x00100000, + .length = UNCACHED_PHYS_0_SIZE, .type = MT_DEVICE } }; |