summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDario Binacchi <dariobin@libero.it>2021-02-16 21:22:25 +0100
committerJyri Sarha <jyri.sarha@iki.fi>2021-02-18 17:04:11 +0100
commitdef26cd4bae27efdfcf95559ddf64db91d65670f (patch)
tree155bf9ed1be9734769c233724e6b83b2d37a10c6
parentdrm/tilcdc: replace spin_lock_irqsave by spin_lock in hard IRQ (diff)
downloadlinux-def26cd4bae27efdfcf95559ddf64db91d65670f.tar.xz
linux-def26cd4bae27efdfcf95559ddf64db91d65670f.zip
drm/tilcdc: fix raster control register setting
The fdd property of the tilcdc_panel_info structure must set the reqdly bit field (bit 12 to 19) of the raster control register. The previous statement set the least significant bit instead. Signed-off-by: Dario Binacchi <dariobin@libero.it> Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> Reviewed-by: Jyri Sarha <jyri.sarha@iki.fi> Tested-by: Jyri Sarha <jyri.sarha@iki.fi> Signed-off-by: Jyri Sarha <jyri.sarha@iki.fi> Link: https://patchwork.freedesktop.org/patch/msgid/20210216202225.12861-1-dariobin@libero.it
-rw-r--r--drivers/gpu/drm/tilcdc/tilcdc_crtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c
index 783ae9d6781e..21e7b3d23c7d 100644
--- a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c
+++ b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c
@@ -393,7 +393,7 @@ static void tilcdc_crtc_set_mode(struct drm_crtc *crtc)
return;
}
}
- reg |= info->fdd < 12;
+ reg |= info->fdd << 12;
tilcdc_write(dev, LCDC_RASTER_CTRL_REG, reg);
if (info->invert_pxl_clk)