commit | 21d6956f51d3a57980587bd6544a851f41c0d36f | [log] [tgz] |
---|---|---|
author | Marcel Ziswiler <marcel.ziswiler@toradex.com> | Wed Sep 19 13:01:55 2018 +0200 |
committer | Stefano Babic <sbabic@denx.de> | Tue Oct 09 18:32:47 2018 +0200 |
tree | a30f4abdf08e09d1434eb28b4802e3e43168ebeb | |
parent | 7d8a02afe978097050fd857bb438d337a93b7b8a [diff] |
imx: mx7: fix potential overflow in imx_ddr_size() The imx_ddr_size() function may overflow as it is possible to kind of over provision the DDR controller. Fix this by capping it to 2 GB which is the maximum allowed size as per reference manual. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>