]> git.baikalelectronics.ru Git - uboot.git/commit
arm: imx: imx8mm: correct unrecognized fracpll frequency
authorAndrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
Mon, 3 May 2021 07:59:17 +0000 (09:59 +0200)
committerStefano Babic <sbabic@denx.de>
Wed, 9 Jun 2021 11:34:01 +0000 (13:34 +0200)
commit4e61826cd384dd42f02d6a9a5956df4efd84c8a5
treeb1f1e82ce60882fa9db068f75ce25495b3b3ff66
parentbdcccd17069e92f3ccc10347d7d374360740523b
arm: imx: imx8mm: correct unrecognized fracpll frequency

Frequency requested by ddrphy_init_set_dfi_clk from fracpll uses MHZ()
macro, which expands the value provided to the Hz range without taking into
account the precise Hz setting. This causes the frequency of 266 MHz not ot
be found in the imx8mm_fracpll_tbl, since it is entered there with a
precise Hz value. This in turn causes the boot hang in SPL, as proper DDR
fracpll frequency cannot be determined.

Correct the value in imx8mm_fracpll_tbl to match the one expanded by
MHZ(266) macro, rounding it down to MHz range only.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: "NXP i.MX U-Boot Team" <uboot-imx@nxp.com>
Cc: Peng Fan <peng.fan@nxp.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Ye Li <ye.li@nxp.com>
Fixes: 8804bcd5db ("driver: ddr: Refine the ddr init driver on imx8m")
Reviewed-by: Fabio Estevam <festevam@gmail.com>
arch/arm/mach-imx/imx8m/clock_imx8mm.c