Commit 1dff3338 authored by Yoshihiko Mori's avatar Yoshihiko Mori Committed by Mauro Carvalho Chehab

[media] soc_camera: rcar_vin: Add R-Car Gen3 support

Add chip identification for R-Car Gen3.
Signed-off-by: default avatarYoshihiko Mori <yoshihiko.mori.nx@renesas.com>
Signed-off-by: default avatarYoshihiro Kaneko <ykaneko0929@gmail.com>
Signed-off-by: default avatarGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 3c97430d
...@@ -6,6 +6,7 @@ family of devices. The current blocks are always slaves and suppot one input ...@@ -6,6 +6,7 @@ family of devices. The current blocks are always slaves and suppot one input
channel which can be either RGB, YUYV or BT656. channel which can be either RGB, YUYV or BT656.
- compatible: Must be one of the following - compatible: Must be one of the following
- "renesas,vin-r8a7795" for the R8A7795 device
- "renesas,vin-r8a7794" for the R8A7794 device - "renesas,vin-r8a7794" for the R8A7794 device
- "renesas,vin-r8a7793" for the R8A7793 device - "renesas,vin-r8a7793" for the R8A7793 device
- "renesas,vin-r8a7791" for the R8A7791 device - "renesas,vin-r8a7791" for the R8A7791 device
......
...@@ -143,6 +143,7 @@ ...@@ -143,6 +143,7 @@
#define RCAR_VIN_BT656 (1 << 3) #define RCAR_VIN_BT656 (1 << 3)
enum chip_id { enum chip_id {
RCAR_GEN3,
RCAR_GEN2, RCAR_GEN2,
RCAR_H1, RCAR_H1,
RCAR_M1, RCAR_M1,
...@@ -1818,6 +1819,7 @@ static struct soc_camera_host_ops rcar_vin_host_ops = { ...@@ -1818,6 +1819,7 @@ static struct soc_camera_host_ops rcar_vin_host_ops = {
#ifdef CONFIG_OF #ifdef CONFIG_OF
static const struct of_device_id rcar_vin_of_table[] = { static const struct of_device_id rcar_vin_of_table[] = {
{ .compatible = "renesas,vin-r8a7795", .data = (void *)RCAR_GEN3 },
{ .compatible = "renesas,vin-r8a7794", .data = (void *)RCAR_GEN2 }, { .compatible = "renesas,vin-r8a7794", .data = (void *)RCAR_GEN2 },
{ .compatible = "renesas,vin-r8a7793", .data = (void *)RCAR_GEN2 }, { .compatible = "renesas,vin-r8a7793", .data = (void *)RCAR_GEN2 },
{ .compatible = "renesas,vin-r8a7791", .data = (void *)RCAR_GEN2 }, { .compatible = "renesas,vin-r8a7791", .data = (void *)RCAR_GEN2 },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment