Skip to content

Commit 32981ea

Browse files
shcgitarndb
authored andcommitted
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 <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
1 parent 553228d commit 32981ea

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

arch/arm/include/debug/clps711x.S

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99

1010
#ifndef CONFIG_DEBUG_CLPS711X_UART2
1111
#define CLPS711X_UART_PADDR (0x80000000 + 0x0000)
12-
#define CLPS711X_UART_VADDR (0xfeff0000 + 0x0000)
12+
#define CLPS711X_UART_VADDR (0xfeff4000 + 0x0000)
1313
#else
1414
#define CLPS711X_UART_PADDR (0x80000000 + 0x1000)
15-
#define CLPS711X_UART_VADDR (0xfeff0000 + 0x1000)
15+
#define CLPS711X_UART_VADDR (0xfeff4000 + 0x1000)
1616
#endif
1717

1818
#define SYSFLG (0x0140)

arch/arm/mach-clps711x/common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ static struct map_desc clps711x_io_desc[] __initdata = {
3737
{
3838
.virtual = (unsigned long)CLPS711X_VIRT_BASE,
3939
.pfn = __phys_to_pfn(CLPS711X_PHYS_BASE),
40-
.length = SZ_64K,
41-
.type = MT_DEVICE
40+
.length = 48 * SZ_1K,
41+
.type = MT_DEVICE,
4242
}
4343
};
4444

arch/arm/mach-clps711x/include/mach/hardware.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
#include <mach/clps711x.h>
2626

27-
#define CLPS711X_VIRT_BASE IOMEM(0xfeff0000)
27+
#define CLPS711X_VIRT_BASE IOMEM(0xfeff4000)
2828

2929
#ifndef __ASSEMBLY__
3030
#define clps_readb(off) readb(CLPS711X_VIRT_BASE + (off))

0 commit comments

Comments
 (0)