drm/vc4: Fix ->clock_select setting for the VEC encoder
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Fri, 2 Dec 2016 13:48:07 +0000 (14:48 +0100)
committerRaspbian kernel package updater <root@raspbian.org>
Thu, 9 Mar 2017 17:52:39 +0000 (17:52 +0000)
commit4003585a9b6a1d5da22d8dc3d8a475bc1e7b76bb
treea6712847e33f1069e5e976b9690ed1f45823badf
parent0a9a2d88e32d1c142ba1ed626d70e9870545af96
drm/vc4: Fix ->clock_select setting for the VEC encoder

PV_CONTROL_CLK_SELECT_VEC is actually 2 and not 0. Fix the definition and
rework the vc4_set_crtc_possible_masks() to cover the full range of the
PV_CONTROL_CLK_SELECT field.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
(cherry picked from commit ab8df60e3a3b68420d0d4477c5f07c00fbfb078b)
drivers/gpu/drm/vc4/vc4_crtc.c
drivers/gpu/drm/vc4/vc4_drv.h
drivers/gpu/drm/vc4/vc4_regs.h