aboutsummaryrefslogtreecommitdiff
path: root/sys/arm64
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@FreeBSD.org>2018-04-26 21:38:59 +0000
committerEmmanuel Vadot <manu@FreeBSD.org>2018-04-26 21:38:59 +0000
commita59a485e79cdf236e0d6ce5d3e9296fd958c7b38 (patch)
treeb203ec823266603fa1769aa6b8e6aefab96f93b9 /sys/arm64
parentbe2e72c28651e2d3f1c29a304e58bdd5dd62c3e2 (diff)
downloadsrc-a59a485e79cdf236e0d6ce5d3e9296fd958c7b38.tar.gz
src-a59a485e79cdf236e0d6ce5d3e9296fd958c7b38.zip
arm64: rockchip: Rk3328 CRU Fix some offset for gates
Some offset of some clock gates where wrong, correct them so we can use thoses clocks. Pointy Hat to: me
Notes
Notes: svn path=/head/; revision=333039
Diffstat (limited to 'sys/arm64')
-rw-r--r--sys/arm64/rockchip/clk/rk3328_cru.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arm64/rockchip/clk/rk3328_cru.c b/sys/arm64/rockchip/clk/rk3328_cru.c
index 1fde74bd10b5..701b66edc912 100644
--- a/sys/arm64/rockchip/clk/rk3328_cru.c
+++ b/sys/arm64/rockchip/clk/rk3328_cru.c
@@ -175,7 +175,7 @@ static struct rk_clk_composite_def aclk_bus_pre = {
.div_shift = 8,
.div_width = 5,
- .gate_offset = 0x232,
+ .gate_offset = 0x220,
.gate_shift = 0,
.flags = RK_CLK_COMPOSITE_HAVE_MUX | RK_CLK_COMPOSITE_HAVE_GATE,
@@ -199,7 +199,7 @@ static struct rk_clk_composite_def hclk_bus_pre = {
.div_shift = 8,
.div_width = 2,
- .gate_offset = 0x232,
+ .gate_offset = 0x220,
.gate_shift = 1,
.flags = RK_CLK_COMPOSITE_HAVE_GATE,
@@ -218,7 +218,7 @@ static struct rk_clk_composite_def pclk_bus_pre = {
.div_shift = 12,
.div_width = 3,
- .gate_offset = 0x232,
+ .gate_offset = 0x220,
.gate_shift = 2,
.flags = RK_CLK_COMPOSITE_HAVE_GATE,