summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorYe Li <[email protected]>2026-03-02 13:20:02 +0800
committerFabio Estevam <[email protected]>2026-03-16 18:44:00 -0300
commite1cc7117b6302464977fffca3e2c05bf8f3f6c77 (patch)
tree6a128d98085777595ddfd74015cf1e5bca91b96f /scripts
parenta27980786cfb3c430aa1c05da8e79180c584d221 (diff)
imx9: scmi: Get DDR size through SM SCMI API
System Manager(SM) has implemented the MISC protocol to retrieve DDR information. Using this API, U-Boot can obtain the DDR size dynamically instead of relying on static configuration macros. This change addresses the DDR ECC enabled case, where 1/8 of the total DDR size is reserved for ECC data. The scmi_misc_ddrinfo() returns the DDR size with EEC overhead already deducted. Implementation details: - Query the DDR size via scmi_misc_ddrinfo() - Replace direct REG_DDR_CS[0,1]_BNDS register reads with SCMI call - Switch from PHYS_SDRAM[x]_SIZE macros to runtime detection - For backward compatibility with older SM firmware, fall back to static PHYS_SDRAM[x]_SIZE configuration if the SCMI call fails Signed-off-by: Ye Li <[email protected]> Signed-off-by: Alice Guo <[email protected]> Reviewed-by: Peng Fan <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions