From 1897c8c355c05569359484c1eeeaf6bb37b529fa Mon Sep 17 00:00:00 2001 From: kettenis Date: Mon, 19 Jun 2023 09:54:15 +0000 Subject: [PATCH] Add another reset for the PCIe controller on the RK3588. ok dlg@ --- sys/dev/fdt/rkclock.c | 6 +++++- sys/dev/fdt/rkclock_clocks.h | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) 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 * @@ -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 -- 2.20.1