git: 8f5dfd3c860f - main - aw_ccu: h6: Add the DMA, MSGBOX, SPINLOCK, HSTIMER and DBGSYS clocks
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 12 Nov 2026 09:51:36 UTC
The branch main has been updated by manu:
URL: https://cgit.FreeBSD.org/src/commit/?id=8f5dfd3c860fb7d50b8e026e5fcb089ad06477d6
commit 8f5dfd3c860fb7d50b8e026e5fcb089ad06477d6
Author: Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2026-11-10 16:42:57 +0000
Commit: Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2026-11-12 09:47:31 +0000
aw_ccu: h6: Add the DMA, MSGBOX, SPINLOCK, HSTIMER and DBGSYS clocks
Add the bus gates and the resets of the DMA controller, the message box,
the spinlock, the high speed timer and the debug system. They are on
the PSI bus.
Tested on: H6
---
sys/dev/clk/allwinner/ccu_h6.c | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/sys/dev/clk/allwinner/ccu_h6.c b/sys/dev/clk/allwinner/ccu_h6.c
index a3c140f481e8..c67b06562f03 100644
--- a/sys/dev/clk/allwinner/ccu_h6.c
+++ b/sys/dev/clk/allwinner/ccu_h6.c
@@ -72,6 +72,21 @@
#define CLK_APB2 27
static struct aw_ccung_reset h6_ccu_resets[] = {
+ /* DMA_BGR_REG */
+ CCU_RESET(RST_BUS_DMA, 0x70c, 16)
+
+ /* MSGBOX_BGR_REG */
+ CCU_RESET(RST_BUS_MSGBOX, 0x71c, 16)
+
+ /* SPINLOCK_BGR_REG */
+ CCU_RESET(RST_BUS_SPINLOCK, 0x72c, 16)
+
+ /* HSTIMER_BGR_REG */
+ CCU_RESET(RST_BUS_HSTIMER, 0x73c, 16)
+
+ /* DBGSYS_BGR_REG */
+ CCU_RESET(RST_BUS_DBG, 0x78c, 16)
+
/* PSI_BGR_REG */
CCU_RESET(RST_BUS_PSI, 0x79c, 16)
@@ -115,6 +130,21 @@ static struct aw_ccung_reset h6_ccu_resets[] = {
};
static struct aw_ccung_gate h6_ccu_gates[] = {
+ /* DMA_BGR_REG */
+ CCU_GATE(CLK_BUS_DMA, "bus-dma", "psi_ahb1_ahb2", 0x70c, 0)
+
+ /* MSGBOX_BGR_REG */
+ CCU_GATE(CLK_BUS_MSGBOX, "bus-msgbox", "psi_ahb1_ahb2", 0x71c, 0)
+
+ /* SPINLOCK_BGR_REG */
+ CCU_GATE(CLK_BUS_SPINLOCK, "bus-spinlock", "psi_ahb1_ahb2", 0x72c, 0)
+
+ /* HSTIMER_BGR_REG */
+ CCU_GATE(CLK_BUS_HSTIMER, "bus-hstimer", "psi_ahb1_ahb2", 0x73c, 0)
+
+ /* DBGSYS_BGR_REG */
+ CCU_GATE(CLK_BUS_DBG, "bus-dbg", "psi_ahb1_ahb2", 0x78c, 0)
+
/* PSI_BGR_REG */
CCU_GATE(CLK_BUS_PSI, "bus-psi", "psi_ahb1_ahb2", 0x79c, 0)