From: patrick Date: Fri, 7 Jul 2023 16:52:09 +0000 (+0000) Subject: Add resets for the RK3588 USB 3.0 controllers. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e77f74d5c13863310c80728d854ebf6408b2534c;p=openbsd Add resets for the RK3588 USB 3.0 controllers. ok kettenis@ --- diff --git a/sys/dev/fdt/rkclock.c b/sys/dev/fdt/rkclock.c index 728a10a7932..4f92fd1b6b2 100644 --- a/sys/dev/fdt/rkclock.c +++ b/sys/dev/fdt/rkclock.c @@ -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 * @@ -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; diff --git a/sys/dev/fdt/rkclock_clocks.h b/sys/dev/fdt/rkclock_clocks.h index f506b0b4349..4639dd05c5b 100644 --- a/sys/dev/fdt/rkclock_clocks.h +++ b/sys/dev/fdt/rkclock_clocks.h @@ -469,5 +469,7 @@ #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