Skip to content

Commit 2b60c15

Browse files
Laurent Pinchartgregkh
authored andcommitted
drm: rcar-du: lvds: Fix PLL frequency-related configuration
commit 5e1ac3bdc6bbb4f378251b87625b8acfbfc4ae82 upstream. The frequency checks don't match the datasheet, fix them. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Thong Ho <thong.ho.px@rvc.renesas.com> Signed-off-by: Nhan Nguyen <nhan.nguyen.yb@renesas.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 3416ee4 commit 2b60c15

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/gpu/drm/rcar-du/rcar_du_lvdsenc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ static int rcar_du_lvdsenc_start(struct rcar_du_lvdsenc *lvds,
5656
return ret;
5757

5858
/* PLL clock configuration */
59-
if (freq <= 38000)
59+
if (freq < 39000)
6060
pllcr = LVDPLLCR_CEEN | LVDPLLCR_COSEL | LVDPLLCR_PLLDLYCNT_38M;
61-
else if (freq <= 60000)
61+
else if (freq < 61000)
6262
pllcr = LVDPLLCR_CEEN | LVDPLLCR_COSEL | LVDPLLCR_PLLDLYCNT_60M;
63-
else if (freq <= 121000)
63+
else if (freq < 121000)
6464
pllcr = LVDPLLCR_CEEN | LVDPLLCR_COSEL | LVDPLLCR_PLLDLYCNT_121M;
6565
else
6666
pllcr = LVDPLLCR_PLLDLYCNT_150M;

0 commit comments

Comments
 (0)