diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2023-07-07 16:52:10 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2023-07-07 16:52:10 +0000 |
commit | 4ede5b00112a0ed5df4ae08dd2dea365b44e06b9 (patch) | |
tree | 0d69377f6d621618725c76283a1383864cc1b0bf /sys/dev/fdt | |
parent | 14ae7576767ec9bdee0f044ae1e023e3fb00ffff (diff) |
Add resets for the RK3588 USB 3.0 controllers.
ok kettenis@
Diffstat (limited to 'sys/dev/fdt')
-rw-r--r-- | sys/dev/fdt/rkclock.c | 10 | ||||
-rw-r--r-- | sys/dev/fdt/rkclock_clocks.h | 2 |
2 files changed, 11 insertions, 1 deletions
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 <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; 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 |