From d0175aa8424a3cde91c3af8a2e9225d7e9bd623f Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=BB=84=E6=B6=9B?= Date: Mon, 20 Feb 2012 11:56:46 +0800 Subject: [PATCH] rk30: io: add pwm register mapping --- arch/arm/mach-rk30/include/mach/io.h | 2 ++ arch/arm/mach-rk30/io.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/arch/arm/mach-rk30/include/mach/io.h b/arch/arm/mach-rk30/include/mach/io.h index e5c7224a1529..ce788b9b04c1 100644 --- a/arch/arm/mach-rk30/include/mach/io.h +++ b/arch/arm/mach-rk30/include/mach/io.h @@ -162,6 +162,7 @@ #define RK30_I2C1_PHYS 0x2002e000 #define RK30_I2C1_SIZE SZ_8K #define RK30_PWM01_PHYS 0x20030000 +#define RK30_PWM01_BASE RK30_IO_TO_VIRT1(RK30_PWM01_PHYS) #define RK30_PWM01_SIZE SZ_16K #define RK30_GPIO0_PHYS 0x20034000 #define RK30_GPIO0_BASE RK30_IO_TO_VIRT1(RK30_GPIO0_PHYS) @@ -184,6 +185,7 @@ #define RK30_WDT_PHYS 0x2004c000 #define RK30_WDT_SIZE SZ_16K #define RK30_PWM23_PHYS 0x20050000 +#define RK30_PWM23_BASE RK30_IO_TO_VIRT1(RK30_PWM23_PHYS) #define RK30_PWM23_SIZE SZ_16K #define RK30_I2C2_PHYS 0x20054000 #define RK30_I2C2_SIZE SZ_16K diff --git a/arch/arm/mach-rk30/io.c b/arch/arm/mach-rk30/io.c index 5a92c9936ca4..cf6b0b2cdfbf 100644 --- a/arch/arm/mach-rk30/io.c +++ b/arch/arm/mach-rk30/io.c @@ -43,6 +43,8 @@ static struct map_desc rk30_io_desc[] __initdata = { RK30_DEVICE(TIMER0), RK30_DEVICE(TIMER1), RK30_DEVICE(TIMER2), + RK30_DEVICE(PWM01), + RK30_DEVICE(PWM23), }; void __init rk30_map_common_io(void) -- 2.34.1