Commit 230d4d81 authored by Dmitry Baryshkov's avatar Dmitry Baryshkov Committed by Bjorn Andersson

clk: qcom: gcc-qcs404: add support for GDSCs

Add support for two GDSCs provided by this clock controller.
Reviewed-by: default avatarKonrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: default avatarBjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221226042154.2666748-13-dmitry.baryshkov@linaro.org
parent 2ce81afa
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#include "clk-rcg.h" #include "clk-rcg.h"
#include "clk-regmap.h" #include "clk-regmap.h"
#include "common.h" #include "common.h"
#include "gdsc.h"
#include "reset.h" #include "reset.h"
enum { enum {
...@@ -2591,6 +2592,22 @@ static struct clk_branch gcc_wdsp_q6ss_axim_clk = { ...@@ -2591,6 +2592,22 @@ static struct clk_branch gcc_wdsp_q6ss_axim_clk = {
}, },
}; };
static struct gdsc mdss_gdsc = {
.gdscr = 0x4d078,
.pd = {
.name = "mdss",
},
.pwrsts = PWRSTS_OFF_ON,
};
static struct gdsc oxili_gdsc = {
.gdscr = 0x5901c,
.pd = {
.name = "oxili",
},
.pwrsts = PWRSTS_OFF_ON,
};
static struct clk_hw *gcc_qcs404_hws[] = { static struct clk_hw *gcc_qcs404_hws[] = {
&cxo.hw, &cxo.hw,
}; };
...@@ -2741,6 +2758,11 @@ static struct clk_regmap *gcc_qcs404_clocks[] = { ...@@ -2741,6 +2758,11 @@ static struct clk_regmap *gcc_qcs404_clocks[] = {
}; };
static struct gdsc *gcc_qcs404_gdscs[] = {
[MDSS_GDSC] = &mdss_gdsc,
[OXILI_GDSC] = &oxili_gdsc,
};
static const struct qcom_reset_map gcc_qcs404_resets[] = { static const struct qcom_reset_map gcc_qcs404_resets[] = {
[GCC_GENI_IR_BCR] = { 0x0F000 }, [GCC_GENI_IR_BCR] = { 0x0F000 },
[GCC_CDSP_RESTART] = { 0x18000 }, [GCC_CDSP_RESTART] = { 0x18000 },
...@@ -2783,6 +2805,8 @@ static const struct qcom_cc_desc gcc_qcs404_desc = { ...@@ -2783,6 +2805,8 @@ static const struct qcom_cc_desc gcc_qcs404_desc = {
.num_resets = ARRAY_SIZE(gcc_qcs404_resets), .num_resets = ARRAY_SIZE(gcc_qcs404_resets),
.clk_hws = gcc_qcs404_hws, .clk_hws = gcc_qcs404_hws,
.num_clk_hws = ARRAY_SIZE(gcc_qcs404_hws), .num_clk_hws = ARRAY_SIZE(gcc_qcs404_hws),
.gdscs = gcc_qcs404_gdscs,
.num_gdscs = ARRAY_SIZE(gcc_qcs404_gdscs),
}; };
static const struct of_device_id gcc_qcs404_match_table[] = { static const struct of_device_id gcc_qcs404_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