kernel_optimize_test/arch/arm/mach-rockchip
Daniel Lezcano 468b8c4cf3 clockevents: rockchip: Add rockchip timer for rk3288
The rk3288 board uses the architected timers and these ones are shutdown when
the cpu is powered down. There is a need of a broadcast timer in this case to
ensure proper wakeup when the cpus are in sleep mode and a timer expires.

This driver provides the basic timer functionnality as a backup for the local
timers at sleep time.

The timer belongs to the alive subsystem. It includes two programmables 64 bits
timer channels but the driver only uses 32bits. It works with two operations
mode: free running and user defined count.

Programing sequence:

1. Timer initialization:
 * Disable the timer by writing '0' to the CONTROLREG register
 * Program the timer mode by writing the mode to the CONTROLREG register
 * Set the interrupt mask

2. Setting the count value:
 * Load the count value to the registers COUNT0 and COUNT1 (not used).

3. Enable the timer
 * Write '1' to the CONTROLREG register with the mode (free running or user)

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
2015-01-29 14:02:13 +01:00
..
core.h ARM: rockchip: convert smp bringup to CPU_METHOD_OF_DECLARE 2014-05-26 11:15:53 -07:00
headsmp.S ARM: rockchip: add basic smp support for rk3288 2014-11-05 22:18:40 +01:00
Kconfig clockevents: rockchip: Add rockchip timer for rk3288 2015-01-29 14:02:13 +01:00
Makefile ARM: rockchip: select ARMv7 compiler flags for platsmp.o 2014-07-23 11:42:26 +02:00
platsmp.c ARM: rockchip: add basic smp support for rk3288 2014-11-05 22:18:40 +01:00
rockchip.c ARM: rockchip: disable jtag/sdmmc autoswitching on rk3288 2015-01-16 19:10:39 -08:00