u-boot/arch/arm/mach-imx/imx8m
Andrey Zhizhikin 6ac4d44806 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: 825ab6b406 ("driver: ddr: Refine the ddr init driver on imx8m")
Reviewed-by: Fabio Estevam <festevam@gmail.com>
2021-06-09 13:34:01 +02:00
..
clock_imx8mm.c arm: imx: imx8mm: correct unrecognized fracpll frequency 2021-06-09 13:34:01 +02:00
clock_imx8mq.c iMX8M: Add support to enable CONFIG_IMX_HAB 2021-04-08 09:18:29 +02:00
clock_slice.c imx8m: update clock root and fix core_sel 2020-05-01 13:46:21 +02:00
imximage-8mm-lpddr4.cfg imx8m: add image cfg for i.MX8MM lpddr4 2019-10-08 16:36:36 +02:00
imximage-8mn-ddr4.cfg imx8m: add i.MX8MN ddr4 image cfg file 2019-11-05 10:27:18 +01:00
imximage-8mn-lpddr4.cfg ARM: imx: add i.MX8MN lpddr4 image cfg file 2021-01-23 14:01:59 +01:00
imximage-8mp-lpddr4.cfg imx: imx8m: add imximage-8mp-lpddr4.cfg 2020-01-08 13:20:09 +01:00
imximage.cfg imx: imx8m: introduce imximage cfg file 2019-01-01 14:12:18 +01:00
Kconfig ARM:imx:imx8mq-cm: Add support for Ronetix iMX8MQ-CM 2021-05-02 12:46:54 +02:00
lowlevel_init.S imx8m: lowlevel_init: tune alignment 2021-01-23 11:30:31 +01:00
Makefile imx: imx8mp: add basic clock 2020-01-08 13:20:08 +01:00
soc.c ARM: make gd a function call for LTO and set via set_gd() 2021-05-24 14:21:30 -04:00