diff options
author | Luca Weiss <luca@z3ntu.xyz> | 2023-06-14 18:35:51 +0200 |
---|---|---|
committer | Bjorn Andersson <andersson@kernel.org> | 2023-07-10 05:54:40 +0200 |
commit | 2976eec238dcd89475664795f54d4a4d3d05e0f9 (patch) | |
tree | 2b1564b166c72ded3150a33c51b0844ccc367ef8 /drivers/soc | |
parent | dt-bindings: sram: qcom,ocmem: Add msm8226 support (diff) | |
download | linux-2976eec238dcd89475664795f54d4a4d3d05e0f9.tar.xz linux-2976eec238dcd89475664795f54d4a4d3d05e0f9.zip |
soc: qcom: ocmem: Add support for msm8226
The msm8226 SoC also contains OCMEM but with one region only.
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Link: https://lore.kernel.org/r/20230506-msm8226-ocmem-v3-5-79da95a2581f@z3ntu.xyz
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Diffstat (limited to 'drivers/soc')
-rw-r--r-- | drivers/soc/qcom/ocmem.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/soc/qcom/ocmem.c b/drivers/soc/qcom/ocmem.c index ff8d01b0ac68..2064e9512301 100644 --- a/drivers/soc/qcom/ocmem.c +++ b/drivers/soc/qcom/ocmem.c @@ -423,12 +423,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 }, { } }; |