]> git.dujemihanovic.xyz Git - u-boot.git/commit
drivers: ddr: lc_common_dimm_params.c : Fix Divison by zero issue
authorManinder Singh <maninder.singh_1@nxp.com>
Sun, 10 Oct 2021 16:12:16 +0000 (09:12 -0700)
committerPriyanka Jain <priyanka.jain@nxp.com>
Tue, 9 Nov 2021 11:48:23 +0000 (17:18 +0530)
commit38ce95a1c6fdc7a2a8cc177202cd421beef56427
tree7e6676f34ae17dc77198a37dcc6dfc31719fc5f1
parented06772a605db6a3eb87941fa0aacc57ac879598
drivers: ddr: lc_common_dimm_params.c : Fix Divison by zero issue

Adds check for memory clock variable before calculating caslat_actual.

Set mclk_ps to slowest DIMM supported if mclk_ps is found zero.

Signed-off-by: Maninder Singh <maninder.singh_1@nxp.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
drivers/ddr/fsl/lc_common_dimm_params.c