Commit 32981ea5 authored by Alexander Shiyan's avatar Alexander Shiyan Committed by Arnd Bergmann

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: default avatarAlexander Shiyan <shc_work@mail.ru>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent 553228d0
...@@ -9,10 +9,10 @@ ...@@ -9,10 +9,10 @@
#ifndef CONFIG_DEBUG_CLPS711X_UART2 #ifndef CONFIG_DEBUG_CLPS711X_UART2
#define CLPS711X_UART_PADDR (0x80000000 + 0x0000) #define CLPS711X_UART_PADDR (0x80000000 + 0x0000)
#define CLPS711X_UART_VADDR (0xfeff0000 + 0x0000) #define CLPS711X_UART_VADDR (0xfeff4000 + 0x0000)
#else #else
#define CLPS711X_UART_PADDR (0x80000000 + 0x1000) #define CLPS711X_UART_PADDR (0x80000000 + 0x1000)
#define CLPS711X_UART_VADDR (0xfeff0000 + 0x1000) #define CLPS711X_UART_VADDR (0xfeff4000 + 0x1000)
#endif #endif
#define SYSFLG (0x0140) #define SYSFLG (0x0140)
......
...@@ -37,8 +37,8 @@ static struct map_desc clps711x_io_desc[] __initdata = { ...@@ -37,8 +37,8 @@ static struct map_desc clps711x_io_desc[] __initdata = {
{ {
.virtual = (unsigned long)CLPS711X_VIRT_BASE, .virtual = (unsigned long)CLPS711X_VIRT_BASE,
.pfn = __phys_to_pfn(CLPS711X_PHYS_BASE), .pfn = __phys_to_pfn(CLPS711X_PHYS_BASE),
.length = SZ_64K, .length = 48 * SZ_1K,
.type = MT_DEVICE .type = MT_DEVICE,
} }
}; };
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
#include <mach/clps711x.h> #include <mach/clps711x.h>
#define CLPS711X_VIRT_BASE IOMEM(0xfeff0000) #define CLPS711X_VIRT_BASE IOMEM(0xfeff4000)
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
#define clps_readb(off) readb(CLPS711X_VIRT_BASE + (off)) #define clps_readb(off) readb(CLPS711X_VIRT_BASE + (off))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment