From: Alif Zakuan Yuslaimi <alif.zakuan.yusla...@altera.com>

Remove redundant code for MPFE CSR firewall disabled as this was
already set in DTreg dts.

Signed-off-by: Tien Fong Chee <tien.fong.c...@altera.com>
Signed-off-by: Alif Zakuan Yuslaimi <alif.zakuan.yusla...@altera.com>
---
 drivers/ddr/altera/sdram_agilex.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/ddr/altera/sdram_agilex.c 
b/drivers/ddr/altera/sdram_agilex.c
index 8aeb4320702..e4655877a78 100644
--- a/drivers/ddr/altera/sdram_agilex.c
+++ b/drivers/ddr/altera/sdram_agilex.c
@@ -144,9 +144,6 @@ int sdram_mmr_init_full(struct udevice *dev)
                              DDR_HMC_ECCCTL2_AWB_EN_SET_MSK));
        }
 
-       /* Enable non-secure reads/writes to HMC Adapter for SDRAM ECC */
-       writel(FW_HMC_ADAPTOR_MPU_MASK, FW_HMC_ADAPTOR_REG_ADDR);
-
        sdram_size_check(&bd);
 
        sdram_set_firewall(&bd);
-- 
2.35.3

Reply via email to