diff options
| author | Dario Binacchi <[email protected]> | 2021-02-16 20:22:25 +0000 |
|---|---|---|
| committer | Jyri Sarha <[email protected]> | 2021-02-18 16:04:11 +0000 |
| commit | def26cd4bae27efdfcf95559ddf64db91d65670f (patch) | |
| tree | 155bf9ed1be9734769c233724e6b83b2d37a10c6 | |
| parent | drm/tilcdc: replace spin_lock_irqsave by spin_lock in hard IRQ (diff) | |
| download | kernel-def26cd4bae27efdfcf95559ddf64db91d65670f.tar.gz kernel-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 <[email protected]>
Reviewed-by: Tomi Valkeinen <[email protected]>
Reviewed-by: Jyri Sarha <[email protected]>
Tested-by: Jyri Sarha <[email protected]>
Signed-off-by: Jyri Sarha <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
| -rw-r--r-- | drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 2 |
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) |
