aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@FreeBSD.org>2021-09-15 17:09:56 +0000
committerEmmanuel Vadot <manu@FreeBSD.org>2022-05-16 15:27:24 +0000
commit687d5fb11f061ced258135fbf44106d90aa3bce0 (patch)
tree80c3d8ee89f3784c1fd999df9fcac38a3c8a5e8b
parentcb5d34e59542ac135d0c1c0992f388da68bbc6a6 (diff)
downloadsrc-687d5fb11f061ced258135fbf44106d90aa3bce0.tar.gz
src-687d5fb11f061ced258135fbf44106d90aa3bce0.zip
arm64: rockchip: rk3328: Add watchdog clock
The watchdog clock is controlled by the secure world but we need a clock to sastify the driver so add a fixed clock for it. Reported by: avg (cherry picked from commit 548a706608d7291a72ed37e6c400654ee1ceadef)
-rw-r--r--sys/arm64/rockchip/clk/rk3328_cru.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/arm64/rockchip/clk/rk3328_cru.c b/sys/arm64/rockchip/clk/rk3328_cru.c
index 344bf3bcd7aa..63c8797f6b44 100644
--- a/sys/arm64/rockchip/clk/rk3328_cru.c
+++ b/sys/arm64/rockchip/clk/rk3328_cru.c
@@ -1064,6 +1064,11 @@ static struct rk_clk rk3328_clks[] = {
/* GRF_MAC_CON2 */
MUXGRF(SCLK_MAC2PHY, "clk_mac2phy", mux_mac2phy_p, 0, RK3328_GRF_MAC_CON2, 10, 1),
+
+ /*
+ * This clock is controlled in the secure world
+ */
+ FFACT(PCLK_WDT, "pclk_wdt", "pclk_bus", 1, 1),
};
static int