From 54e50d899e44c2bb17fd64715a1515a26bc6988a Mon Sep 17 00:00:00 2001 From: kettenis Date: Thu, 6 Apr 2023 21:17:01 +0000 Subject: [PATCH] Add two more RK3568 clocks. ok dlg@ --- sys/dev/fdt/rkclock.c | 4 +++- sys/dev/fdt/rkclock_clocks.h | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/dev/fdt/rkclock.c b/sys/dev/fdt/rkclock.c index 41f455d3603..8b38ee1e1b5 100644 --- a/sys/dev/fdt/rkclock.c +++ b/sys/dev/fdt/rkclock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rkclock.c,v 1.72 2023/03/26 10:41:42 kettenis Exp $ */ +/* $OpenBSD: rkclock.c,v 1.73 2023/04/06 21:17:01 kettenis Exp $ */ /* * Copyright (c) 2017, 2018 Mark Kettenis * @@ -3777,6 +3777,8 @@ rk3568_pmu_enable(void *cookie, uint32_t *cells, int on) uint32_t idx = cells[0]; switch (idx) { + case RK3568_CLK_USBPHY0_REF: + case RK3568_CLK_USBPHY1_REF: case RK3568_CLK_PCIEPHY0_REF: case RK3568_CLK_PCIEPHY1_REF: case RK3568_CLK_PCIEPHY2_REF: diff --git a/sys/dev/fdt/rkclock_clocks.h b/sys/dev/fdt/rkclock_clocks.h index 60537ea4c5d..a0eff75641f 100644 --- a/sys/dev/fdt/rkclock_clocks.h +++ b/sys/dev/fdt/rkclock_clocks.h @@ -359,6 +359,8 @@ #define RK3568_CLK_I2C0 7 #define RK3568_CLK_RTC32K_FRAC 8 #define RK3568_SCLK_UART0 11 +#define RK3568_CLK_USBPHY0_REF 19 +#define RK3568_CLK_USBPHY1_REF 21 #define RK3568_CLK_PCIEPHY0_DIV 29 #define RK3568_CLK_PCIEPHY0_OSC0 30 #define RK3568_CLK_PCIEPHY0_REF 31 -- 2.20.1