linux/drivers/gpu/drm/rcar-du
Kieran Bingham 5361cc7f8e drm: rcar-du: Split CRTC handling to support hardware indexing
The DU CRTC driver does not support distinguishing between a hardware
index, and a software (CRTC) index in the event that a DU channel might
not be populated by the hardware.

Support this by adapting the rcar_du_device_info structure to store a
bitmask of available channels rather than a count of CRTCs. The count
can then be obtained by determining the hamming weight of the bitmask.

This allows the rcar_du_crtc_create() function to distinguish between
both index types, and non-populated DU channels will be skipped without
leaving a gap in the software CRTC indexes.

Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
2018-05-05 17:11:19 +03:00
..
Kconfig drm: rcar-du: Convert LVDS encoder code to bridge driver 2018-03-07 18:06:49 +02:00
Makefile drm: rcar-du: Convert LVDS encoder code to bridge driver 2018-03-07 18:06:49 +02:00
rcar_du_crtc.c drm: rcar-du: Split CRTC handling to support hardware indexing 2018-05-05 17:11:19 +03:00
rcar_du_crtc.h drm: rcar-du: Split CRTC handling to support hardware indexing 2018-05-05 17:11:19 +03:00
rcar_du_drv.c drm: rcar-du: Split CRTC handling to support hardware indexing 2018-05-05 17:11:19 +03:00
rcar_du_drv.h drm: rcar-du: Split CRTC handling to support hardware indexing 2018-05-05 17:11:19 +03:00
rcar_du_encoder.c drm: rcar-du: Convert LVDS encoder code to bridge driver 2018-03-07 18:06:49 +02:00
rcar_du_encoder.h drm: rcar-du: Convert LVDS encoder code to bridge driver 2018-03-07 18:06:49 +02:00
rcar_du_group.c drm: rcar-du: Use the correct naming for ODPM fields in DEFR6 2018-05-05 17:11:18 +03:00
rcar_du_group.h drm: rcar-du: Restart the DU group when a plane source changes 2016-02-20 02:58:55 +02:00
rcar_du_kms.c drm: rcar-du: Split CRTC handling to support hardware indexing 2018-05-05 17:11:19 +03:00
rcar_du_kms.h drm/rcar-du: Update copyright notice 2014-09-15 11:34:06 +03:00
rcar_du_of_lvds_r8a7790.dts drm: rcar-du: Fix legacy DT to create LVDS encoder nodes 2018-03-07 18:06:41 +02:00
rcar_du_of_lvds_r8a7791.dts drm: rcar-du: Fix legacy DT to create LVDS encoder nodes 2018-03-07 18:06:41 +02:00
rcar_du_of_lvds_r8a7793.dts drm: rcar-du: Fix legacy DT to create LVDS encoder nodes 2018-03-07 18:06:41 +02:00
rcar_du_of_lvds_r8a7795.dts drm: rcar-du: Fix legacy DT to create LVDS encoder nodes 2018-03-07 18:06:41 +02:00
rcar_du_of_lvds_r8a7796.dts drm: rcar-du: Fix legacy DT to create LVDS encoder nodes 2018-03-07 18:06:41 +02:00
rcar_du_of.c drm: rcar-du: of: Include header to define prototypes 2018-05-05 17:11:15 +03:00
rcar_du_of.h drm: rcar-du: Fix legacy DT to create LVDS encoder nodes 2018-03-07 18:06:41 +02:00
rcar_du_plane.c drm: Don't pass clip to drm_atomic_helper_check_plane_state() 2018-03-05 20:48:25 +02:00
rcar_du_plane.h drm: rcar-du: Share plane atomic check code between Gen2 and Gen3 2017-12-04 13:04:11 +02:00
rcar_du_regs.h drm: rcar-du: Use the correct naming for ODPM fields in DEFR6 2018-05-05 17:11:18 +03:00
rcar_du_vsp.c drm: rcar-du: Zero-out sg_tables when duplicating plane state 2018-04-26 13:48:22 +03:00
rcar_du_vsp.h drm: rcar-du: Remove zpos field from rcar_du_vsp_plane_state structure 2018-02-14 18:05:24 +02:00
rcar_dw_hdmi.c drm/rcar-du: dw-hdmi: Fix compilation 2018-02-16 19:04:54 +01:00
rcar_lvds_regs.h drm: rcar-du: lvds: Fix LVDCR1 for R-Car gen3 2018-02-14 18:17:02 +02:00
rcar_lvds.c drm: rcar-du: lvds: Add R8A77970 support 2018-03-07 19:30:06 +02:00