Add two more RK3568 clocks.
authorkettenis <kettenis@openbsd.org>
Thu, 6 Apr 2023 21:17:01 +0000 (21:17 +0000)
committerkettenis <kettenis@openbsd.org>
Thu, 6 Apr 2023 21:17:01 +0000 (21:17 +0000)
ok dlg@

sys/dev/fdt/rkclock.c
sys/dev/fdt/rkclock_clocks.h

index 41f455d..8b38ee1 100644 (file)
@@ -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 <kettenis@openbsd.org>
  *
@@ -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:
index 60537ea..a0eff75 100644 (file)
 #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