Commit 9edf73fe authored by Lad Prabhakar's avatar Lad Prabhakar Committed by Laurent Pinchart
Browse files

drm: rcar-du: Add r8a7742 support



Add direct support for the r8a7742 (RZ/G1H).

The RZ/G1H shares a common, compatible configuration with the r8a7790
(R-Car H2) so that device info structure is reused, the only difference
being TCON is unsupported on RZ/G1H (Currently unsupported by the driver).

Signed-off-by: default avatarLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: default avatarMarian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
parent c3415d91
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -216,8 +216,9 @@ static const struct rcar_du_device_info rcar_du_r8a7790_info = {
	.channels_mask = BIT(2) | BIT(1) | BIT(0),
	.channels_mask = BIT(2) | BIT(1) | BIT(0),
	.routes = {
	.routes = {
		/*
		/*
		 * R8A7790 has one RGB output, two LVDS outputs and one
		 * R8A7742 and R8A7790 each have one RGB output and two LVDS
		 * (currently unsupported) TCON output.
		 * outputs. Additionally R8A7790 supports one TCON output
		 * (currently unsupported by the driver).
		 */
		 */
		[RCAR_DU_OUTPUT_DPAD0] = {
		[RCAR_DU_OUTPUT_DPAD0] = {
			.possible_crtcs = BIT(2) | BIT(1) | BIT(0),
			.possible_crtcs = BIT(2) | BIT(1) | BIT(0),
@@ -443,6 +444,7 @@ static const struct rcar_du_device_info rcar_du_r8a7799x_info = {
};
};


static const struct of_device_id rcar_du_of_table[] = {
static const struct of_device_id rcar_du_of_table[] = {
	{ .compatible = "renesas,du-r8a7742", .data = &rcar_du_r8a7790_info },
	{ .compatible = "renesas,du-r8a7743", .data = &rzg1_du_r8a7743_info },
	{ .compatible = "renesas,du-r8a7743", .data = &rzg1_du_r8a7743_info },
	{ .compatible = "renesas,du-r8a7744", .data = &rzg1_du_r8a7743_info },
	{ .compatible = "renesas,du-r8a7744", .data = &rzg1_du_r8a7743_info },
	{ .compatible = "renesas,du-r8a7745", .data = &rzg1_du_r8a7745_info },
	{ .compatible = "renesas,du-r8a7745", .data = &rzg1_du_r8a7745_info },