Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] media: soc_camera: rcar_vin: Add preliminary R-Car M2 support

This adds R-Car M2 (R8A7791) VIN support. Both H2 and M2
variants look the same from the driver's point of view,
so use GEN2 id for both.

Signed-off-by: Valentine Barshak <valentine.barshak@cogentembedded.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
[g.liakhovetski@gmx.de: removed changelog from commit message]
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>

authored by

Valentine Barshak and committed by
Mauro Carvalho Chehab
2a9ecc17 9554b7db

+4 -3
+4 -3
drivers/media/platform/soc_camera/rcar_vin.c
··· 106 106 #define VIN_MAX_HEIGHT 2048 107 107 108 108 enum chip_id { 109 - RCAR_H2, 109 + RCAR_GEN2, 110 110 RCAR_H1, 111 111 RCAR_M1, 112 112 RCAR_E1, ··· 302 302 dmr = 0; 303 303 break; 304 304 case V4L2_PIX_FMT_RGB32: 305 - if (priv->chip == RCAR_H2 || priv->chip == RCAR_H1 || 305 + if (priv->chip == RCAR_GEN2 || priv->chip == RCAR_H1 || 306 306 priv->chip == RCAR_E1) { 307 307 dmr = VNDMR_EXRGB; 308 308 break; ··· 1384 1384 }; 1385 1385 1386 1386 static struct platform_device_id rcar_vin_id_table[] = { 1387 - { "r8a7790-vin", RCAR_H2 }, 1387 + { "r8a7791-vin", RCAR_GEN2 }, 1388 + { "r8a7790-vin", RCAR_GEN2 }, 1388 1389 { "r8a7779-vin", RCAR_H1 }, 1389 1390 { "r8a7778-vin", RCAR_M1 }, 1390 1391 { "uPD35004-vin", RCAR_E1 },