rk30: io: add pwm register mapping

This commit is contained in:
黄涛 2012-02-20 11:56:46 +08:00
commit d0175aa842
2 changed files with 4 additions and 0 deletions

View file

@ -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

View file

@ -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)