From: 黄涛 Date: Wed, 22 Jan 2014 08:03:27 +0000 (+0800) Subject: ARM: rockchip: rk3188 add RK3188_UART_SIZE X-Git-Tag: firefly_0821_release~6366 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5fad3b4ac2f4e75914de3a28853d21ee6d24ca26;p=firefly-linux-kernel-4.4.55.git ARM: rockchip: rk3188 add RK3188_UART_SIZE --- 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, }, };