]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
clk: sunxi: Add MBUS Master Clock Gating Register
authorRichard Genoud <richard.genoud@bootlin.com>
Fri, 23 Jan 2026 11:44:56 +0000 (12:44 +0100)
committerMichael Trimarchi <michael@amarulasolutions.com>
Tue, 3 Feb 2026 20:45:14 +0000 (21:45 +0100)
Add MBUS Master Clock Gating Register for H6 and H616

For H6/H616, the NAND controller needs the MBUS NAND clock along with
CLK_NAND0/1 and CLK_BUS_NAND.

The bit locations are from H6/H616 User Manuals.

Signed-off-by: Richard Genoud <richard.genoud@bootlin.com>
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
drivers/clk/sunxi/clk_h6.c
drivers/clk/sunxi/clk_h616.c

index 1b7bd9dea2f81e7c364d2537a7de592f5ff507f5..81deb5728e5b5568e8808dc8f384bcc3db0e97e7 100644 (file)
@@ -20,6 +20,8 @@ static struct ccu_clk_gate h6_gates[] = {
        [CLK_DE]                = GATE(0x600, BIT(31)),
        [CLK_BUS_DE]            = GATE(0x60c, BIT(0)),
 
+       [CLK_MBUS_NAND]         = GATE(0x804, BIT(5)),
+
        [CLK_NAND0]             = GATE(0x810, BIT(31)),
        [CLK_NAND1]             = GATE(0x814, BIT(31)),
        [CLK_BUS_NAND]          = GATE(0x82c, BIT(0)),
index b1e999e18c1422957e71f4f1495bb86457021600..3e7eea25bfe513396e0d45c4b0c9acf1590997ab 100644 (file)
@@ -19,6 +19,8 @@ static struct ccu_clk_gate h616_gates[] = {
        [CLK_DE]                = GATE(0x600, BIT(31)),
        [CLK_BUS_DE]            = GATE(0x60c, BIT(0)),
 
+       [CLK_MBUS_NAND]         = GATE(0x804, BIT(5)),
+
        [CLK_NAND0]             = GATE(0x810, BIT(31)),
        [CLK_NAND1]             = GATE(0x814, BIT(31)),
        [CLK_BUS_NAND]          = GATE(0x82c, BIT(0)),