Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Alexander Shiyan and committed by
Arnd Bergmann
32981ea5 553228d0

+5 -5
+2 -2
arch/arm/include/debug/clps711x.S
··· 9 9 10 10 #ifndef CONFIG_DEBUG_CLPS711X_UART2 11 11 #define CLPS711X_UART_PADDR (0x80000000 + 0x0000) 12 - #define CLPS711X_UART_VADDR (0xfeff0000 + 0x0000) 12 + #define CLPS711X_UART_VADDR (0xfeff4000 + 0x0000) 13 13 #else 14 14 #define CLPS711X_UART_PADDR (0x80000000 + 0x1000) 15 - #define CLPS711X_UART_VADDR (0xfeff0000 + 0x1000) 15 + #define CLPS711X_UART_VADDR (0xfeff4000 + 0x1000) 16 16 #endif 17 17 18 18 #define SYSFLG (0x0140)
+2 -2
arch/arm/mach-clps711x/common.c
··· 37 37 { 38 38 .virtual = (unsigned long)CLPS711X_VIRT_BASE, 39 39 .pfn = __phys_to_pfn(CLPS711X_PHYS_BASE), 40 - .length = SZ_64K, 41 - .type = MT_DEVICE 40 + .length = 48 * SZ_1K, 41 + .type = MT_DEVICE, 42 42 } 43 43 }; 44 44
+1 -1
arch/arm/mach-clps711x/include/mach/hardware.h
··· 24 24 25 25 #include <mach/clps711x.h> 26 26 27 - #define CLPS711X_VIRT_BASE IOMEM(0xfeff0000) 27 + #define CLPS711X_VIRT_BASE IOMEM(0xfeff4000) 28 28 29 29 #ifndef __ASSEMBLY__ 30 30 #define clps_readb(off) readb(CLPS711X_VIRT_BASE + (off))