summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2024-11-24 22:20:00 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2024-11-24 22:20:00 +0000
commit8a61d1362e94a9f665b782bbaa69678b7a3ca8d3 (patch)
treebacd5f7c2e3af22e9a84016025c269150ac0b9d2 /sys/dev
parent602597ee741f674b28b57eba15e196699219b51c (diff)
Fix RK3399 USB clock gates.
From Paul Fertser. ok dlg@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/fdt/rkclock.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/fdt/rkclock.c b/sys/dev/fdt/rkclock.c
index 8721604f774..9b5a30185e9 100644
--- a/sys/dev/fdt/rkclock.c
+++ b/sys/dev/fdt/rkclock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rkclock.c,v 1.90 2024/07/15 09:54:38 patrick Exp $ */
+/* $OpenBSD: rkclock.c,v 1.91 2024/11/24 22:19:59 kettenis Exp $ */
/*
* Copyright (c) 2017, 2018 Mark Kettenis <kettenis@openbsd.org>
*
@@ -2998,22 +2998,22 @@ rk3399_enable(void *cookie, uint32_t *cells, int on)
switch (idx) {
case RK3399_CLK_USB2PHY0_REF:
- HWRITE4(sc, RK3399_CRU_CLKGATE_CON(6), (5 << 0) << 16);
+ HWRITE4(sc, RK3399_CRU_CLKGATE_CON(6), (1 << 5) << 16);
break;
case RK3399_CLK_USB2PHY1_REF:
- HWRITE4(sc, RK3399_CRU_CLKGATE_CON(6), (6 << 0) << 16);
+ HWRITE4(sc, RK3399_CRU_CLKGATE_CON(6), (1 << 6) << 16);
break;
case RK3399_CLK_UPHY0_TCPDPHY_REF:
- HWRITE4(sc, RK3399_CRU_CLKGATE_CON(13), (4 << 0) << 16);
+ HWRITE4(sc, RK3399_CRU_CLKGATE_CON(13), (1 << 4) << 16);
break;
case RK3399_CLK_UPHY0_TCPDCORE:
- HWRITE4(sc, RK3399_CRU_CLKGATE_CON(13), (5 << 0) << 16);
+ HWRITE4(sc, RK3399_CRU_CLKGATE_CON(13), (1 << 5) << 16);
break;
case RK3399_CLK_UPHY1_TCPDPHY_REF:
- HWRITE4(sc, RK3399_CRU_CLKGATE_CON(13), (6 << 0) << 16);
+ HWRITE4(sc, RK3399_CRU_CLKGATE_CON(13), (1 << 6) << 16);
break;
case RK3399_CLK_UPHY1_TCPDCORE:
- HWRITE4(sc, RK3399_CRU_CLKGATE_CON(13), (7 << 0) << 16);
+ HWRITE4(sc, RK3399_CRU_CLKGATE_CON(13), (1 << 7) << 16);
break;
case RK3399_ACLK_GMAC:
HWRITE4(sc, RK3399_CRU_CLKGATE_CON(32), (1 << 0) << 16);