[PATCH 3/3] riscv: Move timer portions of SiFive CLINT to drivers/timer

Simon Glass sjg at chromium.org
Mon Oct 12 05:34:22 CEST 2020


On Sun, 4 Oct 2020 at 14:30, Sean Anderson <seanga2 at gmail.com> wrote:
>
> Half of this driver is a DM-based timer driver, and half is RISC-V-specific
> IPI code. Move the timer portions in with the other timer drivers. The
> KConfig is not moved, since it also enables IPIs. It could also be split
> into two configs, but no boards use the timer but not the IPI atm, so I
> haven't split it.
>
> Signed-off-by: Sean Anderson <seanga2 at gmail.com>
> ---
>
>  MAINTAINERS                        |  1 +
>  arch/riscv/lib/sifive_clint.c      | 43 ++------------------------
>  drivers/timer/Makefile             |  1 +
>  drivers/timer/sifive_clint_timer.c | 49 ++++++++++++++++++++++++++++++
>  4 files changed, 53 insertions(+), 41 deletions(-)
>  create mode 100644 drivers/timer/sifive_clint_timer.c
>

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


More information about the U-Boot mailing list