]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
ram: k3-ddrss: Add CONFIG_K3_MULTI_DDR
authorNeha Malcom Francis <n-francis@ti.com>
Tue, 12 Aug 2025 12:43:20 +0000 (18:13 +0530)
committerTom Rini <trini@konsulko.com>
Tue, 19 Aug 2025 17:26:20 +0000 (11:26 -0600)
As we increase the functionalities that the K3 DDRSS sub-system support,
it is becoming more evident that the same logic cannot apply to both
single as well as multiple DDR controller devices. Add
CONFIG_K3_MULTI_DDR to be used to differentiate between the two.

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

index d69644973091547ebf88d54a5400d59bc8bf1d88..cfbfa1252d0e8730b2b0c1ad9d50d2be81e0321b 100644 (file)
@@ -128,6 +128,16 @@ config K3_INLINE_ECC
          need to be primed with a predefined value prior to enabling ECC
          check.
 
+config K3_MULTI_DDR
+       bool "Enable support for multiple K3 DDRSS controllers"
+       depends on K3_DDRSS
+       help
+         Enabling this option adds support for configuring multiple DDR memory
+         controllers for K3 devices. The external memory interleave layer
+         present in the MSMC (Multicore Shared Memory Controller) is
+         responsible for interleaving between the controllers.
+       default y if SOC_K3_J721S2 || SOC_K3_J784S4
+
 source "drivers/ram/aspeed/Kconfig"
 source "drivers/ram/cadence/Kconfig"
 source "drivers/ram/octeon/Kconfig"