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)
committerEric Anholt <eric@anholt.net>
Fri, 9 Dec 2016 23:26:29 +0000 (15:26 -0800)
commitab8df60e3a3b68420d0d4477c5f07c00fbfb078b
treeb5281dcc2b7968f2a4985ac7613cfd757ca5a6e8
parent26fc78f6fef39b9d7a15def5e7e9826ff68303f4
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>
drivers/gpu/drm/vc4/vc4_crtc.c
drivers/gpu/drm/vc4/vc4_drv.h
drivers/gpu/drm/vc4/vc4_regs.h