[PATCH v3 1/2] rockchip: timer: add OF_PLATDATA support for dw-apb-timer

Simon Glass sjg at chromium.org
Wed Jan 12 21:03:56 CET 2022


On Thu, 6 Jan 2022 at 05:00, Johan Jonker <jbx6244 at gmail.com> wrote:
>
> The Rockchip rk3066 SoC has 3 dw-apb-timer nodes.
> U-boot is compiled with OF_PLATDATA TPL/SPL options,
> so add OF_PLATDATA support for the dw-apb-timer.
> Also change driver name to be able to compile with
> U-boot scripts. No reset OF_PLATDATA support was added,
> because the rk3066 nodes don't need/have them.
>
> Signed-off-by: Johan Jonker <jbx6244 at gmail.com>
> ---
>
> Changed V3:
>   use if (CONFIG_IS_ENABLED(OF_REAL))
>   remove white space fix
>
> Changed V2:
>   use #if CONFIG_IS_ENABLED(OF_REAL)
> ---
>  drivers/timer/dw-apb-timer.c | 50 ++++++++++++++++++++++++++----------
>  1 file changed, 37 insertions(+), 13 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list