rockchip: rk3368: Use timer0 as timer_irq

Change-Id: I75ee18ee55207ead6a30d588529e7363fe361009
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
This commit is contained in:
XiaoDong Huang 2019-03-28 16:20:49 +08:00
parent 5743ef647f
commit 1380460aee
2 changed files with 9 additions and 3 deletions

View File

@ -104,7 +104,8 @@
#define GPIO_BANK_NUM 4
#define GPIO_BANK_PINS 32
#define IRQ_TIMER1 79
#define IRQ_TIMER0 98
#define IRQ_TIMER1 99
#define IRQ_PWM 110
#define IRQ_GPIO0 113
#define IRQ_GPIO1 114

View File

@ -36,8 +36,13 @@
#define TIMER_BASE (0xFF1C0000 + 0x20) /* TIMER 1 */
#define TIMER_IRQ IRQ_TIMER1
#elif defined(CONFIG_ROCKCHIP_RK3368)
#define TIMER_BASE (0xFF810000 + 0x20) /* TIMER 1 */
#define TIMER_IRQ IRQ_TIMER1
/*
* Use timer0 and never change, because timer0 will be used in charge animation
* driver to support auto wakeup when system suspend. If core poweroff, PMU only
* support timer0(not all timer) as wakeup source.
*/
#define TIMER_BASE (0xFF810000 + 0x00) /* TIMER 0 */
#define TIMER_IRQ IRQ_TIMER0
#elif defined(CONFIG_ROCKCHIP_RK3399)
#define TIMER_BASE (0xFF850000 + 0x20) /* TIMER 1 */
#define TIMER_IRQ IRQ_TIMER1