]> git.baikalelectronics.ru Git - uboot.git/commit
ddr: altera: soc64: Integer fix overflow that caused DDR size mismatched
authorDinesh Maniyam <dinesh.maniyam@intel.com>
Wed, 1 Jun 2022 10:49:02 +0000 (18:49 +0800)
committerTien Fong Chee <tien.fong.chee@intel.com>
Fri, 17 Jun 2022 08:27:05 +0000 (16:27 +0800)
commit21c1e708105f54ff3f7202ecae045b38fcb330b6
tree03a3fa2d78b6d9cc36e3af1b34c692e112e61ae4
parent6eca1392b5f67b4705149ef982af0bcfb87075d2
ddr: altera: soc64: Integer fix overflow that caused DDR size mismatched

Convert the constant integer to 'phys_size_t' to avoid overflow
when calculating the SDRAM size.

Signed-off-by: Dinesh Maniyam <dinesh.maniyam@intel.com>
Reviewed-by: Tien Fong Chee <tien.fong.chee@intel.com>
drivers/ddr/altera/sdram_soc64.c