diff options
author | Alexander Shiyan <shc_work@mail.ru> | 2016-06-04 03:09:53 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2016-07-06 11:38:52 -0400 |
commit | 32981ea5b98682a70fdd27f2246fcd2c4e10126b (patch) | |
tree | d97887df295655ba1fb63d2b5812f5bea79e057c | |
parent | 553228d073444ac49cb24cafdde3e8a3fc56297a (diff) |
ARM: clps711x: Reduce static map size
Last CLPS711X CPU register is PLLR has 0xa5a8 address, so we can reduce
the map to 48k and align the end of the static at VMALLOC_START.
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
-rw-r--r-- | arch/arm/include/debug/clps711x.S | 4 | ||||
-rw-r--r-- | arch/arm/mach-clps711x/common.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-clps711x/include/mach/hardware.h | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/include/debug/clps711x.S b/arch/arm/include/debug/clps711x.S index abe225436686..c17ac5c9e5f3 100644 --- a/arch/arm/include/debug/clps711x.S +++ b/arch/arm/include/debug/clps711x.S | |||
@@ -9,10 +9,10 @@ | |||
9 | 9 | ||
10 | #ifndef CONFIG_DEBUG_CLPS711X_UART2 | 10 | #ifndef CONFIG_DEBUG_CLPS711X_UART2 |
11 | #define CLPS711X_UART_PADDR (0x80000000 + 0x0000) | 11 | #define CLPS711X_UART_PADDR (0x80000000 + 0x0000) |
12 | #define CLPS711X_UART_VADDR (0xfeff0000 + 0x0000) | 12 | #define CLPS711X_UART_VADDR (0xfeff4000 + 0x0000) |
13 | #else | 13 | #else |
14 | #define CLPS711X_UART_PADDR (0x80000000 + 0x1000) | 14 | #define CLPS711X_UART_PADDR (0x80000000 + 0x1000) |
15 | #define CLPS711X_UART_VADDR (0xfeff0000 + 0x1000) | 15 | #define CLPS711X_UART_VADDR (0xfeff4000 + 0x1000) |
16 | #endif | 16 | #endif |
17 | 17 | ||
18 | #define SYSFLG (0x0140) | 18 | #define SYSFLG (0x0140) |
diff --git a/arch/arm/mach-clps711x/common.c b/arch/arm/mach-clps711x/common.c index 671acc5a3282..6466da8f3c11 100644 --- a/arch/arm/mach-clps711x/common.c +++ b/arch/arm/mach-clps711x/common.c | |||
@@ -37,8 +37,8 @@ static struct map_desc clps711x_io_desc[] __initdata = { | |||
37 | { | 37 | { |
38 | .virtual = (unsigned long)CLPS711X_VIRT_BASE, | 38 | .virtual = (unsigned long)CLPS711X_VIRT_BASE, |
39 | .pfn = __phys_to_pfn(CLPS711X_PHYS_BASE), | 39 | .pfn = __phys_to_pfn(CLPS711X_PHYS_BASE), |
40 | .length = SZ_64K, | 40 | .length = 48 * SZ_1K, |
41 | .type = MT_DEVICE | 41 | .type = MT_DEVICE, |
42 | } | 42 | } |
43 | }; | 43 | }; |
44 | 44 | ||
diff --git a/arch/arm/mach-clps711x/include/mach/hardware.h b/arch/arm/mach-clps711x/include/mach/hardware.h index 833129c9f798..cfd0e2cd2b78 100644 --- a/arch/arm/mach-clps711x/include/mach/hardware.h +++ b/arch/arm/mach-clps711x/include/mach/hardware.h | |||
@@ -24,7 +24,7 @@ | |||
24 | 24 | ||
25 | #include <mach/clps711x.h> | 25 | #include <mach/clps711x.h> |
26 | 26 | ||
27 | #define CLPS711X_VIRT_BASE IOMEM(0xfeff0000) | 27 | #define CLPS711X_VIRT_BASE IOMEM(0xfeff4000) |
28 | 28 | ||
29 | #ifndef __ASSEMBLY__ | 29 | #ifndef __ASSEMBLY__ |
30 | #define clps_readb(off) readb(CLPS711X_VIRT_BASE + (off)) | 30 | #define clps_readb(off) readb(CLPS711X_VIRT_BASE + (off)) |