ram: k3-ddrss: Add support for a partial inline ECC region
authorNeha Malcom Francis <n-francis@ti.com>
Tue, 12 Aug 2025 12:43:19 +0000 (18:13 +0530)
committerTom Rini <trini@konsulko.com>
Tue, 19 Aug 2025 17:26:19 +0000 (11:26 -0600)
commitf43f710122541f870ba164e8121445003032c71c
tree4373ccb359ec0c95094c9597fee3f0669bec0148
parent1c70e33b0aca6d5d84145636400e496feb19c8b9
ram: k3-ddrss: Add support for a partial inline ECC region

Instead of defaulting to choosing the entire DDR region when enabling
inline ECC, allow picking of a range within the DDR space using DT to
enable.

It expects such a node within the memory node, in the absence of which
we resort to enabling inline ECC for the entire DDR region:

inline_ecc: protected@9e780000 {
        device_type = "ecc";
        reg = <0x9e780000 0x0080000>;
        bootph-all;
};

Signed-off-by: Neha Malcom Francis <n-francis@ti.com>
drivers/ram/k3-ddrss/k3-ddrss.c