Message ID | 20230506-msm8226-ocmem-v1-5-3e24e2724f01@z3ntu.xyz |
---|---|
State | Superseded |
Headers | show |
Series | None | expand |
On 7.05.2023 11:12, Luca Weiss wrote: > The msm8226 SoC also contains OCMEM but with one region only. > > Signed-off-by: Luca Weiss <luca@z3ntu.xyz> > --- Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Konrad > drivers/soc/qcom/ocmem.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/soc/qcom/ocmem.c b/drivers/soc/qcom/ocmem.c > index 6235065d3bc9..d5892ce999c9 100644 > --- a/drivers/soc/qcom/ocmem.c > +++ b/drivers/soc/qcom/ocmem.c > @@ -413,12 +413,18 @@ static int ocmem_dev_remove(struct platform_device *pdev) > return 0; > } > > +static const struct ocmem_config ocmem_8226_config = { > + .num_regions = 1, > + .macro_size = SZ_128K, > +}; > + > static const struct ocmem_config ocmem_8974_config = { > .num_regions = 3, > .macro_size = SZ_128K, > }; > > static const struct of_device_id ocmem_of_match[] = { > + { .compatible = "qcom,msm8226-ocmem", .data = &ocmem_8226_config }, > { .compatible = "qcom,msm8974-ocmem", .data = &ocmem_8974_config }, > { } > }; >
diff --git a/drivers/soc/qcom/ocmem.c b/drivers/soc/qcom/ocmem.c index 6235065d3bc9..d5892ce999c9 100644 --- a/drivers/soc/qcom/ocmem.c +++ b/drivers/soc/qcom/ocmem.c @@ -413,12 +413,18 @@ static int ocmem_dev_remove(struct platform_device *pdev) return 0; } +static const struct ocmem_config ocmem_8226_config = { + .num_regions = 1, + .macro_size = SZ_128K, +}; + static const struct ocmem_config ocmem_8974_config = { .num_regions = 3, .macro_size = SZ_128K, }; static const struct of_device_id ocmem_of_match[] = { + { .compatible = "qcom,msm8226-ocmem", .data = &ocmem_8226_config }, { .compatible = "qcom,msm8974-ocmem", .data = &ocmem_8974_config }, { } };
The msm8226 SoC also contains OCMEM but with one region only. Signed-off-by: Luca Weiss <luca@z3ntu.xyz> --- drivers/soc/qcom/ocmem.c | 6 ++++++ 1 file changed, 6 insertions(+)