Re: [U-Boot] [PATCH 2/4] ARM: mx6: Prevent overflow in DRAM size detection

2014-08-20 Thread Stefano Babic
On 04/08/2014 01:47, Marek Vasut wrote: > The MX6 DRAM controller can be configured to handle 4GiB of DRAM, but > only 3840 MiB of that can be really used. In case the controller is > configured to operate a 4GiB module, the imx_ddr_size() function will > correctly compute that there is 4GiB of DRA

Re: [U-Boot] [PATCH 2/4] ARM: mx6: Prevent overflow in DRAM size detection

2014-08-03 Thread Tim Harvey
On Sun, Aug 3, 2014 at 4:47 PM, Marek Vasut wrote: > The MX6 DRAM controller can be configured to handle 4GiB of DRAM, but > only 3840 MiB of that can be really used. In case the controller is > configured to operate a 4GiB module, the imx_ddr_size() function will > correctly compute that there is

[U-Boot] [PATCH 2/4] ARM: mx6: Prevent overflow in DRAM size detection

2014-08-03 Thread Marek Vasut
The MX6 DRAM controller can be configured to handle 4GiB of DRAM, but only 3840 MiB of that can be really used. In case the controller is configured to operate a 4GiB module, the imx_ddr_size() function will correctly compute that there is 4GiB of DRAM in the system. Firstly, the return value is 32