media: rc: sunxi: Add A31 compatible
authorClément Péron <peron.clem@gmail.com>
Fri, 7 Jun 2019 23:10:50 +0000 (20:10 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Sun, 4 Aug 2019 09:35:22 +0000 (06:35 -0300)
Allwiner A31 has a different memory mapping so add the compatible
we will need it later.

Signed-off-by: Clément Péron <peron.clem@gmail.com>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/rc/sunxi-cir.c

index 29fe152fd9bc50aa97a51d3ef691a59bc4d24bd2..e9b9c582f818e1197c78f85302023cbc8a7b9174 100644 (file)
@@ -333,6 +333,11 @@ static const struct sunxi_ir_quirks sun5i_a13_ir_quirks = {
        .fifo_size = 64,
 };
 
+static const struct sunxi_ir_quirks sun6i_a31_ir_quirks = {
+       .has_reset = true,
+       .fifo_size = 64,
+};
+
 static const struct of_device_id sunxi_ir_match[] = {
        {
                .compatible = "allwinner,sun4i-a10-ir",
@@ -342,6 +347,10 @@ static const struct of_device_id sunxi_ir_match[] = {
                .compatible = "allwinner,sun5i-a13-ir",
                .data = &sun5i_a13_ir_quirks,
        },
+       {
+               .compatible = "allwinner,sun6i-a31-ir",
+               .data = &sun6i_a31_ir_quirks,
+       },
        {}
 };
 MODULE_DEVICE_TABLE(of, sunxi_ir_match);