Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm: rcar-du: lvds: Fix PLL frequency-related configuration

The frequency checks don't match the datasheet, fix them.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>

+3 -3
+3 -3
drivers/gpu/drm/rcar-du/rcar_du_lvdsenc.c
··· 56 56 return ret; 57 57 58 58 /* PLL clock configuration */ 59 - if (freq <= 38000) 59 + if (freq < 39000) 60 60 pllcr = LVDPLLCR_CEEN | LVDPLLCR_COSEL | LVDPLLCR_PLLDLYCNT_38M; 61 - else if (freq <= 60000) 61 + else if (freq < 61000) 62 62 pllcr = LVDPLLCR_CEEN | LVDPLLCR_COSEL | LVDPLLCR_PLLDLYCNT_60M; 63 - else if (freq <= 121000) 63 + else if (freq < 121000) 64 64 pllcr = LVDPLLCR_CEEN | LVDPLLCR_COSEL | LVDPLLCR_PLLDLYCNT_121M; 65 65 else 66 66 pllcr = LVDPLLCR_PLLDLYCNT_150M;