diff options
Diffstat (limited to 'arch/riscv/lib/dtb.c')
-rw-r--r-- | arch/riscv/lib/dtb.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/riscv/lib/dtb.c b/arch/riscv/lib/dtb.c index c7fa6b0c31..8c2f5b2518 100644 --- a/arch/riscv/lib/dtb.c +++ b/arch/riscv/lib/dtb.c @@ -4,6 +4,7 @@ #include <init.h> #include <of.h> #include <asm/barebox-riscv.h> +#include <asm/timer.h> static int of_riscv_init(void) { @@ -21,6 +22,9 @@ static int of_riscv_init(void) barebox_register_fdt(fdt); + /* do it now, before clocksource drivers run postcore */ + timer_init(); + return 0; } core_initcall(of_riscv_init); |