Add resets for the RK3588 USB 3.0 controllers.
authorpatrick <patrick@openbsd.org>
Fri, 7 Jul 2023 16:52:09 +0000 (16:52 +0000)
committerpatrick <patrick@openbsd.org>
Fri, 7 Jul 2023 16:52:09 +0000 (16:52 +0000)
ok kettenis@

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

index 728a10a..4f92fd1 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: rkclock.c,v 1.77 2023/06/19 09:54:15 kettenis Exp $   */
+/*     $OpenBSD: rkclock.c,v 1.78 2023/07/07 16:52:09 patrick Exp $    */
 /*
  * Copyright (c) 2017, 2018 Mark Kettenis <kettenis@openbsd.org>
  *
@@ -4345,6 +4345,14 @@ rk3588_reset(void *cookie, uint32_t *cells, int on)
                reg = RK3588_CRU_SOFTRST_CON(34);
                bit = 0;
                break;
+       case RK3588_SRST_A_USB3OTG0:
+               reg = RK3588_CRU_SOFTRST_CON(42);
+               bit = 4;
+               break;
+       case RK3588_SRST_A_USB3OTG1:
+               reg = RK3588_CRU_SOFTRST_CON(42);
+               bit = 7;
+               break;
        case RK3588_SRST_REF_PIPE_PHY0:
                reg = RK3588_CRU_SOFTRST_CON(77);
                bit = 6;
index f506b0b..4639dd0 100644 (file)
 
 #define RK3588_SRST_PCIE4_POWER_UP     298
 #define RK3588_SRST_P_PCIE4            303
+#define RK3588_SRST_A_USB3OTG0         338
+#define RK3588_SRST_A_USB3OTG1         339
 #define RK3588_SRST_REF_PIPE_PHY0      572
 #define RK3588_SRST_P_PCIE2_PHY0       579