Skip to content

Commit a4aa1ce

Browse files
taniyadas20andersson
authored andcommitted
clk: qcom: tcsrcc-glymur: Update register offsets for clock refs
Update the register offsets for all the clock ref branches to match the new address mapping in the TCSR subsystem. Fixes: 2c1d6ce ("clk: qcom: Add TCSR clock driver for Glymur SoC") Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com> Reviewed-by: Abel Vesa <abel.vesa@linaro.org> Tested-by: Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com> Link: https://lore.kernel.org/r/20251031-tcsrcc_glymur-v1-1-0efb031f0ac5@oss.qualcomm.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
1 parent 0820c93 commit a4aa1ce

1 file changed

Lines changed: 27 additions & 27 deletions

File tree

drivers/clk/qcom/tcsrcc-glymur.c

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ enum {
2828
};
2929

3030
static struct clk_branch tcsr_edp_clkref_en = {
31-
.halt_reg = 0x1c,
31+
.halt_reg = 0x60,
3232
.halt_check = BRANCH_HALT_DELAY,
3333
.clkr = {
34-
.enable_reg = 0x1c,
34+
.enable_reg = 0x60,
3535
.enable_mask = BIT(0),
3636
.hw.init = &(const struct clk_init_data) {
3737
.name = "tcsr_edp_clkref_en",
@@ -45,10 +45,10 @@ static struct clk_branch tcsr_edp_clkref_en = {
4545
};
4646

4747
static struct clk_branch tcsr_pcie_1_clkref_en = {
48-
.halt_reg = 0x4,
48+
.halt_reg = 0x48,
4949
.halt_check = BRANCH_HALT_DELAY,
5050
.clkr = {
51-
.enable_reg = 0x4,
51+
.enable_reg = 0x48,
5252
.enable_mask = BIT(0),
5353
.hw.init = &(const struct clk_init_data) {
5454
.name = "tcsr_pcie_1_clkref_en",
@@ -62,10 +62,10 @@ static struct clk_branch tcsr_pcie_1_clkref_en = {
6262
};
6363

6464
static struct clk_branch tcsr_pcie_2_clkref_en = {
65-
.halt_reg = 0x8,
65+
.halt_reg = 0x4c,
6666
.halt_check = BRANCH_HALT_DELAY,
6767
.clkr = {
68-
.enable_reg = 0x8,
68+
.enable_reg = 0x4c,
6969
.enable_mask = BIT(0),
7070
.hw.init = &(const struct clk_init_data) {
7171
.name = "tcsr_pcie_2_clkref_en",
@@ -79,10 +79,10 @@ static struct clk_branch tcsr_pcie_2_clkref_en = {
7979
};
8080

8181
static struct clk_branch tcsr_pcie_3_clkref_en = {
82-
.halt_reg = 0x10,
82+
.halt_reg = 0x54,
8383
.halt_check = BRANCH_HALT_DELAY,
8484
.clkr = {
85-
.enable_reg = 0x10,
85+
.enable_reg = 0x54,
8686
.enable_mask = BIT(0),
8787
.hw.init = &(const struct clk_init_data) {
8888
.name = "tcsr_pcie_3_clkref_en",
@@ -96,10 +96,10 @@ static struct clk_branch tcsr_pcie_3_clkref_en = {
9696
};
9797

9898
static struct clk_branch tcsr_pcie_4_clkref_en = {
99-
.halt_reg = 0x14,
99+
.halt_reg = 0x58,
100100
.halt_check = BRANCH_HALT_DELAY,
101101
.clkr = {
102-
.enable_reg = 0x14,
102+
.enable_reg = 0x58,
103103
.enable_mask = BIT(0),
104104
.hw.init = &(const struct clk_init_data) {
105105
.name = "tcsr_pcie_4_clkref_en",
@@ -113,10 +113,10 @@ static struct clk_branch tcsr_pcie_4_clkref_en = {
113113
};
114114

115115
static struct clk_branch tcsr_usb2_1_clkref_en = {
116-
.halt_reg = 0x28,
116+
.halt_reg = 0x6c,
117117
.halt_check = BRANCH_HALT_DELAY,
118118
.clkr = {
119-
.enable_reg = 0x28,
119+
.enable_reg = 0x6c,
120120
.enable_mask = BIT(0),
121121
.hw.init = &(const struct clk_init_data) {
122122
.name = "tcsr_usb2_1_clkref_en",
@@ -130,10 +130,10 @@ static struct clk_branch tcsr_usb2_1_clkref_en = {
130130
};
131131

132132
static struct clk_branch tcsr_usb2_2_clkref_en = {
133-
.halt_reg = 0x2c,
133+
.halt_reg = 0x70,
134134
.halt_check = BRANCH_HALT_DELAY,
135135
.clkr = {
136-
.enable_reg = 0x2c,
136+
.enable_reg = 0x70,
137137
.enable_mask = BIT(0),
138138
.hw.init = &(const struct clk_init_data) {
139139
.name = "tcsr_usb2_2_clkref_en",
@@ -147,10 +147,10 @@ static struct clk_branch tcsr_usb2_2_clkref_en = {
147147
};
148148

149149
static struct clk_branch tcsr_usb2_3_clkref_en = {
150-
.halt_reg = 0x30,
150+
.halt_reg = 0x74,
151151
.halt_check = BRANCH_HALT_DELAY,
152152
.clkr = {
153-
.enable_reg = 0x30,
153+
.enable_reg = 0x74,
154154
.enable_mask = BIT(0),
155155
.hw.init = &(const struct clk_init_data) {
156156
.name = "tcsr_usb2_3_clkref_en",
@@ -164,10 +164,10 @@ static struct clk_branch tcsr_usb2_3_clkref_en = {
164164
};
165165

166166
static struct clk_branch tcsr_usb2_4_clkref_en = {
167-
.halt_reg = 0x44,
167+
.halt_reg = 0x88,
168168
.halt_check = BRANCH_HALT_DELAY,
169169
.clkr = {
170-
.enable_reg = 0x44,
170+
.enable_reg = 0x88,
171171
.enable_mask = BIT(0),
172172
.hw.init = &(const struct clk_init_data) {
173173
.name = "tcsr_usb2_4_clkref_en",
@@ -181,10 +181,10 @@ static struct clk_branch tcsr_usb2_4_clkref_en = {
181181
};
182182

183183
static struct clk_branch tcsr_usb3_0_clkref_en = {
184-
.halt_reg = 0x20,
184+
.halt_reg = 0x64,
185185
.halt_check = BRANCH_HALT_DELAY,
186186
.clkr = {
187-
.enable_reg = 0x20,
187+
.enable_reg = 0x64,
188188
.enable_mask = BIT(0),
189189
.hw.init = &(const struct clk_init_data) {
190190
.name = "tcsr_usb3_0_clkref_en",
@@ -198,10 +198,10 @@ static struct clk_branch tcsr_usb3_0_clkref_en = {
198198
};
199199

200200
static struct clk_branch tcsr_usb3_1_clkref_en = {
201-
.halt_reg = 0x24,
201+
.halt_reg = 0x68,
202202
.halt_check = BRANCH_HALT_DELAY,
203203
.clkr = {
204-
.enable_reg = 0x24,
204+
.enable_reg = 0x68,
205205
.enable_mask = BIT(0),
206206
.hw.init = &(const struct clk_init_data) {
207207
.name = "tcsr_usb3_1_clkref_en",
@@ -215,10 +215,10 @@ static struct clk_branch tcsr_usb3_1_clkref_en = {
215215
};
216216

217217
static struct clk_branch tcsr_usb4_1_clkref_en = {
218-
.halt_reg = 0x0,
218+
.halt_reg = 0x44,
219219
.halt_check = BRANCH_HALT_DELAY,
220220
.clkr = {
221-
.enable_reg = 0x0,
221+
.enable_reg = 0x44,
222222
.enable_mask = BIT(0),
223223
.hw.init = &(const struct clk_init_data) {
224224
.name = "tcsr_usb4_1_clkref_en",
@@ -232,10 +232,10 @@ static struct clk_branch tcsr_usb4_1_clkref_en = {
232232
};
233233

234234
static struct clk_branch tcsr_usb4_2_clkref_en = {
235-
.halt_reg = 0x18,
235+
.halt_reg = 0x5c,
236236
.halt_check = BRANCH_HALT_DELAY,
237237
.clkr = {
238-
.enable_reg = 0x18,
238+
.enable_reg = 0x5c,
239239
.enable_mask = BIT(0),
240240
.hw.init = &(const struct clk_init_data) {
241241
.name = "tcsr_usb4_2_clkref_en",
@@ -268,7 +268,7 @@ static const struct regmap_config tcsr_cc_glymur_regmap_config = {
268268
.reg_bits = 32,
269269
.reg_stride = 4,
270270
.val_bits = 32,
271-
.max_register = 0x44,
271+
.max_register = 0x94,
272272
.fast_io = true,
273273
};
274274

0 commit comments

Comments
 (0)