]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
Kconfig: ram: select FDT_64BIT for K3_INLINE_ECC
authorBin Liu <b-liu@ti.com>
Thu, 16 Jul 2026 14:37:51 +0000 (09:37 -0500)
committerTom Rini <trini@konsulko.com>
Tue, 28 Jul 2026 18:30:55 +0000 (12:30 -0600)
Commit f43f71012254 ("ram: k3-ddrss: Add support for a partial inline
ECC region") uses ofnode_get_addr_size() to read memory address and
size from devicetree using type fdt_addr_t and fdt_size_t.  However
these data types are 32bit if CONFIG_FDT_64BIT is not defined on ARMv7
build.

So enable CONFIG_FDT_64BIT to retrieve correct 64bit memory address and
size from devicetree.

Signed-off-by: Bin Liu <b-liu@ti.com>
Reviewed-by: Udit Kumar <u-kumar1@ti.com>
Reviewed-by: Neha Malcom Francis <n-francis@ti.com>
drivers/ram/Kconfig

index cfbfa1252d0e8730b2b0c1ad9d50d2be81e0321b..acd6d9cfd6a992915eafab2cf24d4b96c82a7a0c 100644 (file)
@@ -121,6 +121,7 @@ config IMXRT_SDRAM
 config K3_INLINE_ECC
        bool "Enable TI Inline ECC support"
        depends on K3_DDRSS
+       select FDT_64BIT
        help
          Enable Inline ECC support on K3 platforms. 1/9th of the SDRAM space
          is used for ECC storage and the rest 8/9th is available for system