]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
drivers: ddr: altera: iossm_mailbox: widen MEM_TOTAL_CAPACITY mask
authorNaresh Kumar Ravulapalli <nareshkumar.ravulapalli@altera.com>
Mon, 9 Feb 2026 02:07:09 +0000 (10:07 +0800)
committerTom Rini <trini@konsulko.com>
Sat, 14 Feb 2026 17:06:46 +0000 (11:06 -0600)
The previous mask for MEM_TOTAL_CAPACITY_INTF was limited to 8 bits,
which could truncate DDR size values on larger-memory systems.

Update INTF_CAPACITY_GBITS_MASK to 32 bits to correctly represent
the full capacity field according to the hardware specification.

Signed-off-by: Naresh Kumar Ravulapalli <nareshkumar.ravulapalli@altera.com>
Signed-off-by: Chen Huei Lok <chen.huei.lok@altera.com>
Reviewed-by: Tien Fong Chee <tien.fong.chee@altera.com> Best regards,
drivers/ddr/altera/iossm_mailbox.c

index 2a2f86a650e5d918072ebc9a36391654e32cc96e..3156cb9d4b6f47ff4b6890e4de2bd681a0c31cb9 100644 (file)
@@ -86,7 +86,7 @@
 #define INTF_DDR_TYPE_MASK             GENMASK(2, 0)
 
 /* offset info of MEM_TOTAL_CAPACITY_INTF */
-#define INTF_CAPACITY_GBITS_MASK       GENMASK(7, 0)
+#define INTF_CAPACITY_GBITS_MASK       GENMASK(31, 0)
 
 /* offset info of ECC_ENABLE_INTF */
 #define INTF_ECC_ENABLE_TYPE_MASK      GENMASK(1, 0)