]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
clk: sunxi-ng: h6: fix PWM gate/reset offset
authorRongyi Chen <chenyi@tt-cool.com>
Fri, 10 Aug 2018 15:16:38 +0000 (23:16 +0800)
committerChen-Yu Tsai <wens@csie.org>
Mon, 27 Aug 2018 02:35:04 +0000 (10:35 +0800)
Currently the register offset of the PWM bus gate in Allwinner H6 clock
driver is wrong.

Fix this issue.

Fixes: 542353ea ("clk: sunxi-ng: add support for the Allwinner H6 CCU")
Signed-off-by: Rongyi Chen <chenyi@tt-cool.com>
[Icenowy: refactor commit message]
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
drivers/clk/sunxi-ng/ccu-sun50i-h6.c

index 0f7a0ffd3f706322e5049a41c0ef00dffde8de6e..d425b47cef1797e9aef965f17dd90250baa7e5c8 100644 (file)
@@ -352,7 +352,7 @@ static SUNXI_CCU_GATE(bus_dbg_clk, "bus-dbg", "psi-ahb1-ahb2",
 static SUNXI_CCU_GATE(bus_psi_clk, "bus-psi", "psi-ahb1-ahb2",
                      0x79c, BIT(0), 0);
 
-static SUNXI_CCU_GATE(bus_pwm_clk, "bus-pwm", "apb1", 0x79c, BIT(0), 0);
+static SUNXI_CCU_GATE(bus_pwm_clk, "bus-pwm", "apb1", 0x7ac, BIT(0), 0);
 
 static SUNXI_CCU_GATE(bus_iommu_clk, "bus-iommu", "apb1", 0x7bc, BIT(0), 0);