diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2023-06-19 09:54:16 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2023-06-19 09:54:16 +0000 |
commit | 85e4055f57fbb482af35cefee27ffc0fc3a93ebb (patch) | |
tree | 55bcd286988cbd10dab59ef7872b105f3bbeccac /sys | |
parent | e191f6eb8273804c85d95131a6b8ab64e12570f3 (diff) |
Add another reset for the PCIe controller on the RK3588.
ok dlg@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/fdt/rkclock.c | 6 | ||||
-rw-r--r-- | sys/dev/fdt/rkclock_clocks.h | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/fdt/rkclock.c b/sys/dev/fdt/rkclock.c index dfa79af90df..728a10a7932 100644 --- a/sys/dev/fdt/rkclock.c +++ b/sys/dev/fdt/rkclock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rkclock.c,v 1.76 2023/04/27 08:55:59 kettenis Exp $ */ +/* $OpenBSD: rkclock.c,v 1.77 2023/06/19 09:54:15 kettenis Exp $ */ /* * Copyright (c) 2017, 2018 Mark Kettenis <kettenis@openbsd.org> * @@ -4341,6 +4341,10 @@ rk3588_reset(void *cookie, uint32_t *cells, int on) reg = RK3588_CRU_SOFTRST_CON(33); bit = 1; break; + case RK3588_SRST_P_PCIE4: + reg = RK3588_CRU_SOFTRST_CON(34); + bit = 0; + 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 94faf47b504..f506b0b4349 100644 --- a/sys/dev/fdt/rkclock_clocks.h +++ b/sys/dev/fdt/rkclock_clocks.h @@ -468,5 +468,6 @@ #define RK3588_XIN24M 1023 #define RK3588_SRST_PCIE4_POWER_UP 298 +#define RK3588_SRST_P_PCIE4 303 #define RK3588_SRST_REF_PIPE_PHY0 572 #define RK3588_SRST_P_PCIE2_PHY0 579 |