projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f77b2d7
)
soc: qcom: ocmem: Add support for msm8226
author
Luca Weiss
<luca@z3ntu.xyz>
Wed, 14 Jun 2023 16:35:51 +0000
(18:35 +0200)
committer
Bjorn Andersson
<andersson@kernel.org>
Mon, 10 Jul 2023 03:54:40 +0000
(20:54 -0700)
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>
drivers/soc/qcom/ocmem.c
patch
|
blob
|
history
diff --git
a/drivers/soc/qcom/ocmem.c
b/drivers/soc/qcom/ocmem.c
index ff8d01b0ac685d5fa28964c43ba27fccaf7ccf70..2064e951230174942e5131a603765c4bed210652 100644
(file)
--- 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 },
{ }
};