Commit ce6bb04c authored by Christian Marangi's avatar Christian Marangi Committed by Bjorn Andersson

clk: qcom: lcc-ipq806x: add reset definition

Add reset definition for lcc-ipq806x.
Signed-off-by: default avatarChristian Marangi <ansuelsmth@gmail.com>
Reviewed-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: default avatarBjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220724182329.9891-2-ansuelsmth@gmail.com
parent d7081998
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include "clk-branch.h" #include "clk-branch.h"
#include "clk-regmap-divider.h" #include "clk-regmap-divider.h"
#include "clk-regmap-mux.h" #include "clk-regmap-mux.h"
#include "reset.h"
static struct clk_pll pll4 = { static struct clk_pll pll4 = {
.l_reg = 0x4, .l_reg = 0x4,
...@@ -405,6 +406,10 @@ static struct clk_regmap *lcc_ipq806x_clks[] = { ...@@ -405,6 +406,10 @@ static struct clk_regmap *lcc_ipq806x_clks[] = {
[AHBIX_CLK] = &ahbix_clk.clkr, [AHBIX_CLK] = &ahbix_clk.clkr,
}; };
static const struct qcom_reset_map lcc_ipq806x_resets[] = {
[LCC_PCM_RESET] = { 0x54, 13 },
};
static const struct regmap_config lcc_ipq806x_regmap_config = { static const struct regmap_config lcc_ipq806x_regmap_config = {
.reg_bits = 32, .reg_bits = 32,
.reg_stride = 4, .reg_stride = 4,
...@@ -417,6 +422,8 @@ static const struct qcom_cc_desc lcc_ipq806x_desc = { ...@@ -417,6 +422,8 @@ static const struct qcom_cc_desc lcc_ipq806x_desc = {
.config = &lcc_ipq806x_regmap_config, .config = &lcc_ipq806x_regmap_config,
.clks = lcc_ipq806x_clks, .clks = lcc_ipq806x_clks,
.num_clks = ARRAY_SIZE(lcc_ipq806x_clks), .num_clks = ARRAY_SIZE(lcc_ipq806x_clks),
.resets = lcc_ipq806x_resets,
.num_resets = ARRAY_SIZE(lcc_ipq806x_resets),
}; };
static const struct of_device_id lcc_ipq806x_match_table[] = { static const struct of_device_id lcc_ipq806x_match_table[] = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment