From 4e4bbb49f9298ee8e5891c168ea4d6aa0463d285 Mon Sep 17 00:00:00 2001 From: Georgi Vlaev Date: Wed, 8 Oct 2025 17:04:35 +0530 Subject: cmd: ti: Add DDRSS Inline ECC Error Injection command Introduce a new version of the Keystone-II "ddr" command for testing the inline ECC support in the DDRSS bridge available on K3 devices. The ECC hardware support in K3's DDRSS and the test method differ substantially from what we support in the K2 variant of the command. This K3 DDRSS command currently supports only single controller testing. The ECC error injection procedure follows these steps: 1) Flush and disable the data cache. 2) Disable the protected ECC Rx range. 3) Flip a bit in the address. 4) Restore the range to original. 5) Read the modified value (corrected). 6) Re-enable the data cache. This will cause the 1-bit ECC error count to increase while the read will return the corrected value. The K3 version of the command extends the syntax for the "ecc_err" argument by also introducing an argument for range which specifies which range (0, 1, 2) the address is located in. Multi-bit ECC errors are uncorrectable and will lead to a synchronous abort. Signed-off-by: Georgi Vlaev Signed-off-by: Santhosh Kumar K [n-francis@ti.com: Add J7 and multiple-region support, simplify logic] Signed-off-by: Neha Malcom Francis Reviewed-by: Udit Kumar --- cmd/ti/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'cmd/ti/Makefile') diff --git a/cmd/ti/Makefile b/cmd/ti/Makefile index 5f9c64f598a..ed1338c4afb 100644 --- a/cmd/ti/Makefile +++ b/cmd/ti/Makefile @@ -2,4 +2,5 @@ # Copyright (C) 2017 Texas Instruments Incorporated - https://www.ti.com/ obj-$(CONFIG_CMD_DDR3) += ddr3.o +obj-$(CONFIG_CMD_DDR4) += ddr4.o obj-$(CONFIG_CMD_PD) += pd.o -- cgit v1.3.1