From 39c51fba661a377dd9e6a2c0a7d9a883f998458a Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=BB=84=E6=B6=9B?= Date: Mon, 13 Jan 2014 11:14:11 +0800 Subject: [PATCH] ARM: rockchip: rk3188 add uart2 static iomap --- arch/arm/mach-rockchip/iomap.h | 10 ++++++++++ arch/arm/mach-rockchip/rk3188.c | 6 ++++++ 2 files changed, 16 insertions(+) diff --git a/arch/arm/mach-rockchip/iomap.h b/arch/arm/mach-rockchip/iomap.h index d153568f6269..6cbc5c1e1612 100644 --- a/arch/arm/mach-rockchip/iomap.h +++ b/arch/arm/mach-rockchip/iomap.h @@ -1,6 +1,8 @@ #ifndef __MACH_ROCKCHIP_IOMAP_H #define __MACH_ROCKCHIP_IOMAP_H +#include + #define RK_IO_ADDRESS(x) IOMEM(0xFED00000 + x) #define RK_CRU_VIRT RK_IO_ADDRESS(0x00000000) @@ -38,5 +40,13 @@ #define RK3188_DDR_PCTL_SIZE SZ_16K #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 #endif diff --git a/arch/arm/mach-rockchip/rk3188.c b/arch/arm/mach-rockchip/rk3188.c index 665770077c7a..1dc806d9d5ea 100644 --- a/arch/arm/mach-rockchip/rk3188.c +++ b/arch/arm/mach-rockchip/rk3188.c @@ -81,6 +81,12 @@ static struct map_desc rk3188_io_desc[] __initdata = { .length = RK3188_GPIO_SIZE, .type = MT_DEVICE, }, + { + .virtual = (unsigned long) RK_DEBUG_UART_VIRT, + .pfn = __phys_to_pfn(RK3188_UART2_PHYS), + .length = RK3188_UART2_SIZE, + .type = MT_DEVICE, + }, }; static void __init rk3188_dt_map_io(void) -- 2.34.1