Message ID | 0101016e7f99b99a-e1a501f1-823e-4ede-86ad-f517323c5014-000000@us-west-2.amazonses.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Add power-domain support for SC7180/SM8150 SoCs | expand |
On Mon 18 Nov 09:40 PST 2019, Sibi Sankar wrote: > Add support for cx/mx/gfx/mss/ebi/mmcx power-domains found on > SM8150 SoCs. > Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org> > Signed-off-by: Sibi Sankar <sibis@codeaurora.org> > --- > drivers/soc/qcom/rpmhpd.c | 36 ++++++++++++++++++++++++++++++++++++ > 1 file changed, 36 insertions(+) > > diff --git a/drivers/soc/qcom/rpmhpd.c b/drivers/soc/qcom/rpmhpd.c > index 51850cc68b701..3b109ee67a4d2 100644 > --- a/drivers/soc/qcom/rpmhpd.c > +++ b/drivers/soc/qcom/rpmhpd.c > @@ -131,8 +131,44 @@ static const struct rpmhpd_desc sdm845_desc = { > .num_pds = ARRAY_SIZE(sdm845_rpmhpds), > }; > > +/* SM8150 RPMH powerdomains */ > + > +static struct rpmhpd sm8150_mmcx_ao; > +static struct rpmhpd sm8150_mmcx = { > + .pd = { .name = "mmcx", }, > + .peer = &sm8150_mmcx_ao, > + .res_name = "mmcx.lvl", > +}; > + > +static struct rpmhpd sm8150_mmcx_ao = { > + .pd = { .name = "mmcx_ao", }, > + .active_only = true, > + .peer = &sm8150_mmcx, > + .res_name = "mmcx.lvl", > +}; > + > +static struct rpmhpd *sm8150_rpmhpds[] = { > + [SM8150_MSS] = &sdm845_mss, > + [SM8150_EBI] = &sdm845_ebi, > + [SM8150_LMX] = &sdm845_lmx, > + [SM8150_LCX] = &sdm845_lcx, > + [SM8150_GFX] = &sdm845_gfx, > + [SM8150_MX] = &sdm845_mx, > + [SM8150_MX_AO] = &sdm845_mx_ao, > + [SM8150_CX] = &sdm845_cx, > + [SM8150_CX_AO] = &sdm845_cx_ao, > + [SM8150_MMCX] = &sm8150_mmcx, > + [SM8150_MMCX_AO] = &sm8150_mmcx_ao, > +}; > + > +static const struct rpmhpd_desc sm8150_desc = { > + .rpmhpds = sm8150_rpmhpds, > + .num_pds = ARRAY_SIZE(sm8150_rpmhpds), > +}; > + > static const struct of_device_id rpmhpd_match_table[] = { > { .compatible = "qcom,sdm845-rpmhpd", .data = &sdm845_desc }, > + { .compatible = "qcom,sm8150-rpmhpd", .data = &sm8150_desc }, > { } > }; > > -- > The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, > a Linux Foundation Collaborative Project >
On 11/18/2019 11:10 PM, Sibi Sankar wrote: > Add support for cx/mx/gfx/mss/ebi/mmcx power-domains found on > SM8150 SoCs. lmx/lcx also? > > Signed-off-by: Sibi Sankar <sibis@codeaurora.org> > --- Reviewed-by: Rajendra Nayak <rnayak@codeaurora.org> > drivers/soc/qcom/rpmhpd.c | 36 ++++++++++++++++++++++++++++++++++++ > 1 file changed, 36 insertions(+) > > diff --git a/drivers/soc/qcom/rpmhpd.c b/drivers/soc/qcom/rpmhpd.c > index 51850cc68b701..3b109ee67a4d2 100644 > --- a/drivers/soc/qcom/rpmhpd.c > +++ b/drivers/soc/qcom/rpmhpd.c > @@ -131,8 +131,44 @@ static const struct rpmhpd_desc sdm845_desc = { > .num_pds = ARRAY_SIZE(sdm845_rpmhpds), > }; > > +/* SM8150 RPMH powerdomains */ > + > +static struct rpmhpd sm8150_mmcx_ao; > +static struct rpmhpd sm8150_mmcx = { > + .pd = { .name = "mmcx", }, > + .peer = &sm8150_mmcx_ao, > + .res_name = "mmcx.lvl", > +}; > + > +static struct rpmhpd sm8150_mmcx_ao = { > + .pd = { .name = "mmcx_ao", }, > + .active_only = true, > + .peer = &sm8150_mmcx, > + .res_name = "mmcx.lvl", > +}; > + > +static struct rpmhpd *sm8150_rpmhpds[] = { > + [SM8150_MSS] = &sdm845_mss, > + [SM8150_EBI] = &sdm845_ebi, > + [SM8150_LMX] = &sdm845_lmx, > + [SM8150_LCX] = &sdm845_lcx, > + [SM8150_GFX] = &sdm845_gfx, > + [SM8150_MX] = &sdm845_mx, > + [SM8150_MX_AO] = &sdm845_mx_ao, > + [SM8150_CX] = &sdm845_cx, > + [SM8150_CX_AO] = &sdm845_cx_ao, > + [SM8150_MMCX] = &sm8150_mmcx, > + [SM8150_MMCX_AO] = &sm8150_mmcx_ao, > +}; > + > +static const struct rpmhpd_desc sm8150_desc = { > + .rpmhpds = sm8150_rpmhpds, > + .num_pds = ARRAY_SIZE(sm8150_rpmhpds), > +}; > + > static const struct of_device_id rpmhpd_match_table[] = { > { .compatible = "qcom,sdm845-rpmhpd", .data = &sdm845_desc }, > + { .compatible = "qcom,sm8150-rpmhpd", .data = &sm8150_desc }, > { } > }; > >
On 2019-11-20 09:32, Rajendra Nayak wrote: > On 11/18/2019 11:10 PM, Sibi Sankar wrote: >> Add support for cx/mx/gfx/mss/ebi/mmcx power-domains found on >> SM8150 SoCs. > > lmx/lcx also? yes will fix it > >> >> Signed-off-by: Sibi Sankar <sibis@codeaurora.org> >> --- > > Reviewed-by: Rajendra Nayak <rnayak@codeaurora.org> > >> drivers/soc/qcom/rpmhpd.c | 36 ++++++++++++++++++++++++++++++++++++ >> 1 file changed, 36 insertions(+) >> >> diff --git a/drivers/soc/qcom/rpmhpd.c b/drivers/soc/qcom/rpmhpd.c >> index 51850cc68b701..3b109ee67a4d2 100644 >> --- a/drivers/soc/qcom/rpmhpd.c >> +++ b/drivers/soc/qcom/rpmhpd.c >> @@ -131,8 +131,44 @@ static const struct rpmhpd_desc sdm845_desc = { >> .num_pds = ARRAY_SIZE(sdm845_rpmhpds), >> }; >> +/* SM8150 RPMH powerdomains */ >> + >> +static struct rpmhpd sm8150_mmcx_ao; >> +static struct rpmhpd sm8150_mmcx = { >> + .pd = { .name = "mmcx", }, >> + .peer = &sm8150_mmcx_ao, >> + .res_name = "mmcx.lvl", >> +}; >> + >> +static struct rpmhpd sm8150_mmcx_ao = { >> + .pd = { .name = "mmcx_ao", }, >> + .active_only = true, >> + .peer = &sm8150_mmcx, >> + .res_name = "mmcx.lvl", >> +}; >> + >> +static struct rpmhpd *sm8150_rpmhpds[] = { >> + [SM8150_MSS] = &sdm845_mss, >> + [SM8150_EBI] = &sdm845_ebi, >> + [SM8150_LMX] = &sdm845_lmx, >> + [SM8150_LCX] = &sdm845_lcx, >> + [SM8150_GFX] = &sdm845_gfx, >> + [SM8150_MX] = &sdm845_mx, >> + [SM8150_MX_AO] = &sdm845_mx_ao, >> + [SM8150_CX] = &sdm845_cx, >> + [SM8150_CX_AO] = &sdm845_cx_ao, >> + [SM8150_MMCX] = &sm8150_mmcx, >> + [SM8150_MMCX_AO] = &sm8150_mmcx_ao, >> +}; >> + >> +static const struct rpmhpd_desc sm8150_desc = { >> + .rpmhpds = sm8150_rpmhpds, >> + .num_pds = ARRAY_SIZE(sm8150_rpmhpds), >> +}; >> + >> static const struct of_device_id rpmhpd_match_table[] = { >> { .compatible = "qcom,sdm845-rpmhpd", .data = &sdm845_desc }, >> + { .compatible = "qcom,sm8150-rpmhpd", .data = &sm8150_desc }, >> { } >> }; >>
diff --git a/drivers/soc/qcom/rpmhpd.c b/drivers/soc/qcom/rpmhpd.c index 51850cc68b701..3b109ee67a4d2 100644 --- a/drivers/soc/qcom/rpmhpd.c +++ b/drivers/soc/qcom/rpmhpd.c @@ -131,8 +131,44 @@ static const struct rpmhpd_desc sdm845_desc = { .num_pds = ARRAY_SIZE(sdm845_rpmhpds), }; +/* SM8150 RPMH powerdomains */ + +static struct rpmhpd sm8150_mmcx_ao; +static struct rpmhpd sm8150_mmcx = { + .pd = { .name = "mmcx", }, + .peer = &sm8150_mmcx_ao, + .res_name = "mmcx.lvl", +}; + +static struct rpmhpd sm8150_mmcx_ao = { + .pd = { .name = "mmcx_ao", }, + .active_only = true, + .peer = &sm8150_mmcx, + .res_name = "mmcx.lvl", +}; + +static struct rpmhpd *sm8150_rpmhpds[] = { + [SM8150_MSS] = &sdm845_mss, + [SM8150_EBI] = &sdm845_ebi, + [SM8150_LMX] = &sdm845_lmx, + [SM8150_LCX] = &sdm845_lcx, + [SM8150_GFX] = &sdm845_gfx, + [SM8150_MX] = &sdm845_mx, + [SM8150_MX_AO] = &sdm845_mx_ao, + [SM8150_CX] = &sdm845_cx, + [SM8150_CX_AO] = &sdm845_cx_ao, + [SM8150_MMCX] = &sm8150_mmcx, + [SM8150_MMCX_AO] = &sm8150_mmcx_ao, +}; + +static const struct rpmhpd_desc sm8150_desc = { + .rpmhpds = sm8150_rpmhpds, + .num_pds = ARRAY_SIZE(sm8150_rpmhpds), +}; + static const struct of_device_id rpmhpd_match_table[] = { { .compatible = "qcom,sdm845-rpmhpd", .data = &sdm845_desc }, + { .compatible = "qcom,sm8150-rpmhpd", .data = &sm8150_desc }, { } };
Add support for cx/mx/gfx/mss/ebi/mmcx power-domains found on SM8150 SoCs. Signed-off-by: Sibi Sankar <sibis@codeaurora.org> --- drivers/soc/qcom/rpmhpd.c | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+)