Commit 64016bb8 authored by Bjorn Andersson's avatar Bjorn Andersson
parent 459b1f86
...@@ -23,6 +23,7 @@ properties: ...@@ -23,6 +23,7 @@ properties:
- qcom,sc7180-rpmhpd - qcom,sc7180-rpmhpd
- qcom,sdm845-rpmhpd - qcom,sdm845-rpmhpd
- qcom,sm8150-rpmhpd - qcom,sm8150-rpmhpd
- qcom,sm8250-rpmhpd
'#power-domain-cells': '#power-domain-cells':
const: 1 const: 1
......
...@@ -167,6 +167,24 @@ static const struct rpmhpd_desc sm8150_desc = { ...@@ -167,6 +167,24 @@ static const struct rpmhpd_desc sm8150_desc = {
.num_pds = ARRAY_SIZE(sm8150_rpmhpds), .num_pds = ARRAY_SIZE(sm8150_rpmhpds),
}; };
static struct rpmhpd *sm8250_rpmhpds[] = {
[SM8250_CX] = &sdm845_cx,
[SM8250_CX_AO] = &sdm845_cx_ao,
[SM8250_EBI] = &sdm845_ebi,
[SM8250_GFX] = &sdm845_gfx,
[SM8250_LCX] = &sdm845_lcx,
[SM8250_LMX] = &sdm845_lmx,
[SM8250_MMCX] = &sm8150_mmcx,
[SM8250_MMCX_AO] = &sm8150_mmcx_ao,
[SM8250_MX] = &sdm845_mx,
[SM8250_MX_AO] = &sdm845_mx_ao,
};
static const struct rpmhpd_desc sm8250_desc = {
.rpmhpds = sm8250_rpmhpds,
.num_pds = ARRAY_SIZE(sm8250_rpmhpds),
};
/* SC7180 RPMH powerdomains */ /* SC7180 RPMH powerdomains */
static struct rpmhpd *sc7180_rpmhpds[] = { static struct rpmhpd *sc7180_rpmhpds[] = {
[SC7180_CX] = &sdm845_cx, [SC7180_CX] = &sdm845_cx,
...@@ -188,6 +206,7 @@ static const struct of_device_id rpmhpd_match_table[] = { ...@@ -188,6 +206,7 @@ static const struct of_device_id rpmhpd_match_table[] = {
{ .compatible = "qcom,sc7180-rpmhpd", .data = &sc7180_desc }, { .compatible = "qcom,sc7180-rpmhpd", .data = &sc7180_desc },
{ .compatible = "qcom,sdm845-rpmhpd", .data = &sdm845_desc }, { .compatible = "qcom,sdm845-rpmhpd", .data = &sdm845_desc },
{ .compatible = "qcom,sm8150-rpmhpd", .data = &sm8150_desc }, { .compatible = "qcom,sm8150-rpmhpd", .data = &sm8150_desc },
{ .compatible = "qcom,sm8250-rpmhpd", .data = &sm8250_desc },
{ } { }
}; };
MODULE_DEVICE_TABLE(of, rpmhpd_match_table); MODULE_DEVICE_TABLE(of, rpmhpd_match_table);
......
...@@ -28,6 +28,18 @@ ...@@ -28,6 +28,18 @@
#define SM8150_MMCX 9 #define SM8150_MMCX 9
#define SM8150_MMCX_AO 10 #define SM8150_MMCX_AO 10
/* SM8250 Power Domain Indexes */
#define SM8250_CX 0
#define SM8250_CX_AO 1
#define SM8250_EBI 2
#define SM8250_GFX 3
#define SM8250_LCX 4
#define SM8250_LMX 5
#define SM8250_MMCX 6
#define SM8250_MMCX_AO 7
#define SM8250_MX 8
#define SM8250_MX_AO 9
/* SC7180 Power Domain Indexes */ /* SC7180 Power Domain Indexes */
#define SC7180_CX 0 #define SC7180_CX 0
#define SC7180_CX_AO 1 #define SC7180_CX_AO 1
......
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