drm: rcar-du: Replace EXT_CTRL_REGS feature flag with generation check
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Sat, 24 Nov 2018 17:57:17 +0000 (19:57 +0200)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Mon, 14 Jan 2019 01:51:24 +0000 (03:51 +0200)
commitcef0d9cfe4e5b6c756c268c1b7dda7fa257336fc
tree8fba970806f0399ff260ea3d1b39631de8c07f95
parentf41cb153e6faf0d1f4bbe0b0f15aa20de1e43e90
drm: rcar-du: Replace EXT_CTRL_REGS feature flag with generation check

The RCAR_DU_FEATURE_EXT_CTRL_REGS feature flag is missing for H1 only,
which is a first generation device, not a second generation device as
reported in the device information table. Fix the H1 generation and use
generation checks to replace the feature flag.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
drivers/gpu/drm/rcar-du/rcar_du_drv.c
drivers/gpu/drm/rcar-du/rcar_du_drv.h
drivers/gpu/drm/rcar-du/rcar_du_group.c