]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
board: phytec: common: Introduce CONFIG_PHYTEC_K3_DDR_PATCH
authorGarrett Giordano <ggiordano@phytec.com>
Tue, 12 Nov 2024 20:40:23 +0000 (12:40 -0800)
committerTom Rini <trini@konsulko.com>
Wed, 4 Dec 2024 20:04:08 +0000 (14:04 -0600)
Introduce CONFIG_PHYTEC_K3_DDR_PATCH to make DDR timing patch code
optional for PHYTEC K3 boards. This allows better control over which
boards receive DDR timing patches, rather than compiling the code for
all boards with K3_DDRSS enabled.

Also enable the feature by default for PHYCORE_AM62X_R5.

Signed-off-by: Garrett Giordano <ggiordano@phytec.com>
Reviewed-by: Wadim Egorov <w.egorov@phytec.de>
arch/arm/mach-k3/am62x/Kconfig
board/phytec/common/k3/Kconfig [new file with mode: 0644]
board/phytec/common/k3/Makefile
board/phytec/phycore_am62x/Kconfig

index 8b0cdd74f4f1f9097494fa50e2998bce5a9b2546..81199ada3a1fbd121a27f58d714f5ae95943f0b1 100644 (file)
@@ -42,6 +42,7 @@ config TARGET_PHYCORE_AM62X_R5
        select SPL_RAM
        select K3_DDRSS
        select BINMAN
+       select PHYTEC_K3_DDR_PATCH
        imply SYS_K3_SPL_ATF
 
 config TARGET_VERDIN_AM62_A53
diff --git a/board/phytec/common/k3/Kconfig b/board/phytec/common/k3/Kconfig
new file mode 100644 (file)
index 0000000..282f4b7
--- /dev/null
@@ -0,0 +1,5 @@
+config PHYTEC_K3_DDR_PATCH
+       bool "Patch DDR timings on PHYTEC K3 SoMs"
+       help
+          Allow to override default DDR timings prior to
+          DDRSS driver probing.
index 40e91a43e9962c7da5ab4e0ee90c5732aa295c78..6861c70e17e29c550ae17f74057c701e6d8d4086 100644 (file)
@@ -1,3 +1,3 @@
 # SPDX-License-Identifier: GPL-2.0+
 obj-y += board.o
-obj-$(CONFIG_K3_DDRSS) += k3_ddrss_patch.o
+obj-$(CONFIG_PHYTEC_K3_DDR_PATCH) += k3_ddrss_patch.o
index 7c179ef0078e41a874080b1fc4a0e7f782d4818e..ecee5873c0c9b0ddb9bca3ed4041142b4f711793 100644 (file)
@@ -33,6 +33,7 @@ config SPL_LDSCRIPT
        default "arch/arm/mach-omap2/u-boot-spl.lds"
 
 source "board/phytec/common/Kconfig"
+source "board/phytec/common/k3/Kconfig"
 
 endif