video: mmp: fix dfc wrong rate restore issue

When dfc call DIP_END to restore original rate, it may cause wrong rate
set.
For example, if original rate is from PLL4, whose rate is 450.66666M, the
value software saved from clk_get is 450M, then when DIP_END comes, it
will set rate 450M, which will cause set rate to 442M, rather than
450.6666M.
To fix the float issue, we need to round up the original rate, it ensure
restore to the right rate for original rate from PLL1 and PLL4.

Change-Id: Ie1ae0c737bc0b89dfd3d2ac2d7839ad60b79a9a3
Signed-off-by: Qing Zhu <qzhu@marvell.com>
1 file changed