ARM: clps711x: Reduce static map size
authorAlexander Shiyan <shc_work@mail.ru>
Sat, 4 Jun 2016 07:09:53 +0000 (10:09 +0300)
committerArnd Bergmann <arnd@arndb.de>
Wed, 6 Jul 2016 15:38:52 +0000 (17:38 +0200)
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>
arch/arm/include/debug/clps711x.S
arch/arm/mach-clps711x/common.c
arch/arm/mach-clps711x/include/mach/hardware.h

index abe2254366866b71a8856d4ef26b98f427e5c08c..c17ac5c9e5f37c18399c675120da7a31cf9c6431 100644 (file)
@@ -9,10 +9,10 @@
 
 #ifndef CONFIG_DEBUG_CLPS711X_UART2
 #define CLPS711X_UART_PADDR    (0x80000000 + 0x0000)
-#define CLPS711X_UART_VADDR    (0xfeff0000 + 0x0000)
+#define CLPS711X_UART_VADDR    (0xfeff4000 + 0x0000)
 #else
 #define CLPS711X_UART_PADDR    (0x80000000 + 0x1000)
-#define CLPS711X_UART_VADDR    (0xfeff0000 + 0x1000)
+#define CLPS711X_UART_VADDR    (0xfeff4000 + 0x1000)
 #endif
 
 #define SYSFLG         (0x0140)
index 671acc5a32823c0caed2bce69cce25dc6b98000c..6466da8f3c11ab5c690cd40bddf216deb1614123 100644 (file)
@@ -37,8 +37,8 @@ static struct map_desc clps711x_io_desc[] __initdata = {
        {
                .virtual        = (unsigned long)CLPS711X_VIRT_BASE,
                .pfn            = __phys_to_pfn(CLPS711X_PHYS_BASE),
-               .length         = SZ_64K,
-               .type           = MT_DEVICE
+               .length         = 48 * SZ_1K,
+               .type           = MT_DEVICE,
        }
 };
 
index 833129c9f798516af1d123711e648b64632760e6..cfd0e2cd2b7836c2f357f1919ec14a60de696404 100644 (file)
@@ -24,7 +24,7 @@
 
 #include <mach/clps711x.h>
 
-#define CLPS711X_VIRT_BASE     IOMEM(0xfeff0000)
+#define CLPS711X_VIRT_BASE     IOMEM(0xfeff4000)
 
 #ifndef __ASSEMBLY__
 #define clps_readb(off)                readb(CLPS711X_VIRT_BASE + (off))