From daa9e84e97dfba89abbf0f0b245cf7b047f00550 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Thu, 9 Apr 2020 09:25:51 +0000 Subject: Assign and enable clocks; RK3328 has them. --- sys/dev/fdt/rkrng.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys/dev/fdt') diff --git a/sys/dev/fdt/rkrng.c b/sys/dev/fdt/rkrng.c index 1c2cc1f07fe..68d682e2e22 100644 --- a/sys/dev/fdt/rkrng.c +++ b/sys/dev/fdt/rkrng.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rkrng.c,v 1.1 2020/04/03 16:29:17 kettenis Exp $ */ +/* $OpenBSD: rkrng.c,v 1.2 2020/04/09 09:25:50 kettenis Exp $ */ /* * Copyright (c) 2020 Mark Kettenis * @@ -25,6 +25,7 @@ #include #include +#include #include /* Registers */ @@ -90,6 +91,9 @@ rkrng_attach(struct device *parent, struct device *self, void *aux) printf("\n"); + clock_set_assigned(faa->fa_node); + clock_enable_all(faa->fa_node); + timeout_set(&sc->sc_to, rkrng_rnd, sc); rkrng_rnd(sc); } -- cgit v1.2.3