2393651306438978b772bfad4be36acdb8dc918c
[openwrt/openwrt.git] / target / linux / ipq806x / patches-6.1 / 109-v6.1-02-clk-qcom-lcc-ipq806x-add-reset-definition.patch
1 From 3587d768bdf4683a53244be1acca5d095044671f Mon Sep 17 00:00:00 2001
2 From: Christian Marangi <ansuelsmth@gmail.com>
3 Date: Wed, 15 Jun 2022 17:19:55 +0200
4 Subject: [PATCH v4 2/3] clk: qcom: lcc-ipq806x: add reset definition
5
6 Add reset definition for lcc-ipq806x.
7
8 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
9 Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
10 ---
11 v3:
12 - Added review tag
13 v2:
14 - Fix Sob tag
15
16 drivers/clk/qcom/lcc-ipq806x.c | 7 +++++++
17 1 file changed, 7 insertions(+)
18
19 --- a/drivers/clk/qcom/lcc-ipq806x.c
20 +++ b/drivers/clk/qcom/lcc-ipq806x.c
21 @@ -22,6 +22,7 @@
22 #include "clk-branch.h"
23 #include "clk-regmap-divider.h"
24 #include "clk-regmap-mux.h"
25 +#include "reset.h"
26
27 static struct clk_pll pll4 = {
28 .l_reg = 0x4,
29 @@ -405,6 +406,10 @@ static struct clk_regmap *lcc_ipq806x_cl
30 [AHBIX_CLK] = &ahbix_clk.clkr,
31 };
32
33 +static const struct qcom_reset_map lcc_ipq806x_resets[] = {
34 + [LCC_PCM_RESET] = { 0x54, 13 },
35 +};
36 +
37 static const struct regmap_config lcc_ipq806x_regmap_config = {
38 .reg_bits = 32,
39 .reg_stride = 4,
40 @@ -417,6 +422,8 @@ static const struct qcom_cc_desc lcc_ipq
41 .config = &lcc_ipq806x_regmap_config,
42 .clks = lcc_ipq806x_clks,
43 .num_clks = ARRAY_SIZE(lcc_ipq806x_clks),
44 + .resets = lcc_ipq806x_resets,
45 + .num_resets = ARRAY_SIZE(lcc_ipq806x_resets),
46 };
47
48 static const struct of_device_id lcc_ipq806x_match_table[] = {