From 5fad3b4ac2f4e75914de3a28853d21ee6d24ca26 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=BB=84=E6=B6=9B?= Date: Wed, 22 Jan 2014 16:03:27 +0800 Subject: [PATCH] ARM: rockchip: rk3188 add RK3188_UART_SIZE --- arch/arm/mach-rockchip/iomap.h | 5 +---- arch/arm/mach-rockchip/rk3188.c | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-rockchip/iomap.h b/arch/arm/mach-rockchip/iomap.h index 6cbc5c1e1612..d7fe5f1f4dbf 100644 --- a/arch/arm/mach-rockchip/iomap.h +++ b/arch/arm/mach-rockchip/iomap.h @@ -41,12 +41,9 @@ #define RK3188_DDR_PUBL_PHYS 0x20040000 #define RK3188_DDR_PUBL_SIZE SZ_16K #define RK3188_UART0_PHYS 0x10124000 -#define RK3188_UART0_SIZE SZ_4K #define RK3188_UART1_PHYS 0x10126000 -#define RK3188_UART1_SIZE SZ_4K #define RK3188_UART2_PHYS 0x20064000 -#define RK3188_UART2_SIZE SZ_4K #define RK3188_UART3_PHYS 0x20068000 -#define RK3188_UART3_SIZE SZ_4K +#define RK3188_UART_SIZE SZ_4K #endif diff --git a/arch/arm/mach-rockchip/rk3188.c b/arch/arm/mach-rockchip/rk3188.c index edffe72909e9..c0eb23c40e21 100644 --- a/arch/arm/mach-rockchip/rk3188.c +++ b/arch/arm/mach-rockchip/rk3188.c @@ -87,7 +87,7 @@ static struct map_desc rk3188_io_desc[] __initdata = { { .virtual = (unsigned long) RK_DEBUG_UART_VIRT, .pfn = __phys_to_pfn(RK3188_UART2_PHYS), - .length = RK3188_UART2_SIZE, + .length = RK3188_UART_SIZE, .type = MT_DEVICE, }, }; -- 2.34.1