From: 黄涛 Date: Wed, 28 Mar 2012 08:21:34 +0000 (+0800) Subject: rk30: io: add DDR_PCTL and DDR_PUBL map X-Git-Tag: firefly_0821_release~9560^2~21 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a1cb08641a67063df16e6a5035569aa6447964e5;p=firefly-linux-kernel-4.4.55.git rk30: io: add DDR_PCTL and DDR_PUBL map --- diff --git a/arch/arm/mach-rk30/include/mach/io.h b/arch/arm/mach-rk30/include/mach/io.h index 619589191484..58cfda9908c8 100644 --- a/arch/arm/mach-rk30/include/mach/io.h +++ b/arch/arm/mach-rk30/include/mach/io.h @@ -157,6 +157,7 @@ #define RK30_DMAC1_PHYS 0x2001c000 #define RK30_DMAC1_SIZE SZ_16K #define RK30_DDR_PCTL_PHYS 0x20020000 +#define RK30_DDR_PCTL_BASE RK30_IO_TO_VIRT1(RK30_DDR_PCTL_PHYS) #define RK30_DDR_PCTL_SIZE SZ_16K #define RK30_I2C0_PHYS 0x2002c000 @@ -182,6 +183,7 @@ #define RK30_GPIO2_BASE RK30_IO_TO_VIRT1(RK30_GPIO2_PHYS) #define RK30_GPIO2_SIZE SZ_8K #define RK30_DDR_PUBL_PHYS 0x20040000 +#define RK30_DDR_PUBL_BASE RK30_IO_TO_VIRT1(RK30_DDR_PUBL_PHYS) #define RK30_DDR_PUBL_SIZE SZ_16K #define RK30_WDT_PHYS 0x2004c000 diff --git a/arch/arm/mach-rk30/io.c b/arch/arm/mach-rk30/io.c index e3f05b8de29d..791267c0affe 100644 --- a/arch/arm/mach-rk30/io.c +++ b/arch/arm/mach-rk30/io.c @@ -53,6 +53,8 @@ static struct map_desc rk30_io_desc[] __initdata = { RK30_DEVICE(TIMER2), RK30_DEVICE(PWM01), RK30_DEVICE(PWM23), + RK30_DEVICE(DDR_PCTL), + RK30_DEVICE(DDR_PUBL), }; void __init rk30_map_common_io(void)