From: Alif Zakuan Yuslaimi Date: Mon, 4 Aug 2025 01:24:39 +0000 (-0700) Subject: ddr: altera: agilex: Remove code redundancy X-Git-Tag: v2025.10-rc2~3^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c0faf07218674fd0fe2abdd6264fcae28080e60;p=pandora-u-boot.git ddr: altera: agilex: Remove code redundancy Remove redundant code for MPFE CSR firewall disabled as this was already set in DTreg dts. Signed-off-by: Tien Fong Chee Signed-off-by: Alif Zakuan Yuslaimi Reviewed-by: Tien Fong Chee --- 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);