rockchip: timer: add device-model timer driver for RK3368 (and similar)
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Fri, 28 Jul 2017 15:43:19 +0000 (17:43 +0200)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Sun, 13 Aug 2017 15:12:36 +0000 (17:12 +0200)
commit1168d2dd4b370155b499b995fde7da5a8782ead4
tree39e3ece25715c6b0c8e7f05389721e3b99e69541
parente9e5d9d29f747d7c14944129ce523d9d5efe9c0b
rockchip: timer: add device-model timer driver for RK3368 (and similar)

This adds a device-model driver for the timer block in the RK3368 (and
similar devices that share the same timer block, such as the RK3288) for
the down-counting (i.e. non-secure) timers.

This allows us to configure U-Boot for the RK3368 in such a way that
we can run with the secure timer inaccessible or uninitialised (note
that the ARMv8 generic timer does not count, if the secure timer is
not enabled).

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/timer/Kconfig
drivers/timer/Makefile
drivers/timer/rockchip_timer.c [new file with mode: 0644]