imx8ulp: ddr: Fix DDR frequency request issue
authorYe Li <ye.li@nxp.com>
Fri, 29 Oct 2021 01:46:34 +0000 (09:46 +0800)
committerStefano Babic <sbabic@denx.de>
Sat, 5 Feb 2022 12:38:39 +0000 (13:38 +0100)
commit01aa4cd8baacec1ac1135ba8ead9f5e968aef9ae
tree36c6c2964be77be493cdee15253c2479efcae9fb
parentb80ec768a3b27e245dbea3e4fac0a0d154e4b729
imx8ulp: ddr: Fix DDR frequency request issue

After acking the requested frequency, should wait the ack bit clear
by DDR controller and check the DFS interrupt for next request polling.
Otherwise, the next polling of request bit will get previous value
that DDR controller have not cleared it, so a wrong request frequency
is used.

Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/ddr/imx/imx8ulp/ddr_init.c