diff options
author | Guochun Huang <hero.huang@rock-chips.com> | 2019-04-12 11:18:40 +0800 |
---|---|---|
committer | Guochun Huang <hero.huang@rock-chips.com> | 2019-04-12 11:18:40 +0800 |
commit | 5b99639235f57149cbbbbbd629c3af58c994e139 (patch) | |
tree | dfb11d09c9de986358d8de11d390126100e05d80 /include/rk_timer_irq.h | |
parent | 314d43c94ff2a64cf69871e776754c63a9a5743a (diff) | |
parent | 0436a29d64ac791fefc764fadc7e64ba16bb6b25 (diff) |
Merge remote-tracking branch 'remotes/rk3399/next-dev' into rk3399-pie-gms-express-baseline
Diffstat (limited to 'include/rk_timer_irq.h')
-rw-r--r-- | include/rk_timer_irq.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/rk_timer_irq.h b/include/rk_timer_irq.h index 46133016b3..6de549e281 100644 --- a/include/rk_timer_irq.h +++ b/include/rk_timer_irq.h @@ -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 |