diff options
author | Bjorn Andersson <bjorn.andersson@linaro.org> | 2021-09-30 20:21:10 +0200 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2021-10-15 02:57:16 +0200 |
commit | b5af64fceb04dc298c5e69c517b4d83893ff060b (patch) | |
tree | 8933eefef54a9c2da21aa69fdb8887074c34e6c2 /samples/pidfd | |
parent | dt-bindings: soc: smem: Make indirection optional (diff) | |
download | linux-b5af64fceb04dc298c5e69c517b4d83893ff060b.tar.xz linux-b5af64fceb04dc298c5e69c517b4d83893ff060b.zip |
soc: qcom: smem: Support reserved-memory description
Practically all modern Qualcomm platforms has a single reserved-memory
region for SMEM. So rather than having to describe SMEM in the form of a
node with a reference to a reserved-memory node, allow the SMEM device
to be instantiated directly from the reserved-memory node.
The current means of falling back to dereferencing the "memory-region"
is kept as a fallback, if it's determined that the SMEM node is a
reserved-memory node.
The "qcom,smem" compatible is added to the reserved_mem_matches list, to
allow the reserved-memory device to be probed.
In order to retain the readability of the code, the resolution of
resources is split from the actual ioremapping.
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Acked-by: Rob Herring <robh@kernel.org>
Reviewed-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Link: https://lore.kernel.org/r/20210930182111.57353-4-bjorn.andersson@linaro.org
Diffstat (limited to 'samples/pidfd')
0 files changed, 0 insertions, 0 deletions