[U-Boot] [U-Boot, v2, 3/6] rockchip: timer: add device-model timer driver for RK3368 (and similar)
Philipp Tomsich
philipp.tomsich at theobroma-systems.com
Sun Aug 6 17:18:30 UTC 2017
> 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 at theobroma-systems.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>
> ---
>
> Changes in v2:
> - remove the DEBUG (missed this initially, as there were no debug()
> calls in the file anyway)
> - rework the reload_value code for improved readability
> - pull the uc_priv->clock_rate init into the OF_PLATDATA block
>
> drivers/timer/Kconfig | 7 +++
> drivers/timer/Makefile | 1 +
> drivers/timer/rockchip_timer.c | 107 +++++++++++++++++++++++++++++++++++++++++
> 3 files changed, 115 insertions(+)
> create mode 100644 drivers/timer/rockchip_timer.c
>
Applied to u-boot-rockchip, thanks!
More information about the U-Boot
mailing list