mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
rockchip: video: mipi: Fix phy frequency setting
There was an incorrect check when looping and finding the first fast enough frequency in the freq_rang table. The code did actually return the first that was either exactly correct or too slow. Signed-off-by: Richard Röjfors <richard@puffinpack.se> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
This commit is contained in:
parent
d57720a5fc
commit
4c2808fd06
1 changed files with 1 additions and 1 deletions
|
@ -241,7 +241,7 @@ int rk_mipi_phy_enable(struct udevice *dev)
|
|||
|
||||
/* select the suitable value for fsfreqrang reg */
|
||||
for (i = 0; i < ARRAY_SIZE(freq_rang); i++) {
|
||||
if (ddr_clk / (MHz) >= freq_rang[i][0])
|
||||
if (ddr_clk / (MHz) <= freq_rang[i][0])
|
||||
break;
|
||||
}
|
||||
if (i == ARRAY_SIZE(freq_rang)) {
|
||||
|
|
Loading…
Reference in a new issue