summaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorAswin Murugan <[email protected]>2025-11-12 22:28:51 +0530
committerCasey Connolly <[email protected]>2026-01-14 16:25:09 +0100
commit984ebe2d553ba37cd92de2c093c73a07c16ea17c (patch)
treeedb2da7fe0e9230e10bf3c8933b59ea1300a816a /include/configs
parent63439561493f9159732da7be3e1f3d34ffdae030 (diff)
smem: msm: Fix memory-region lookup, direct <reg> mapping and update SMEM host count
The SMEM driver was failing to resolve memory regions on some boards because `dev_of_offset()` + `fdtdec_lookup_phandle()` did not yield a valid DT node. Modernize the code to use driver-model/ofnode accessors and make the probe robust for both DT styles (direct `reg` vs `memory-region` phandle). - qcom_smem_map_memory(): * Drop fdtdec path; use dev_read_phandle_with_args() + ofnode_read_resource(). * Use dev_read_phandle_with_args() + fnode_read_resource(). - qcom_smem_probe(): * Try dev_read_addr_size() first (map via <reg>), else fall back to qcom_smem_map_memory() with "memory-region". * Check "qcom,rpm-msg-ram" presence to add second region. - Additionally, SMEM_HOST_COUNT is increased to support newer SMEM versions that include more remote processors. This avoids failures during processor ID checks. Signed-off-by: Aswin Murugan <[email protected]> Reviewed-by: Varadarajan Narayanan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Casey Connolly <[email protected]>
Diffstat (limited to 'include/configs')
0 files changed, 0 insertions, 0 deletions