i2c: rcar: add support for r8a7795 (R-Car H3)
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Wed, 5 Aug 2015 13:18:25 +0000 (15:18 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 20 Oct 2015 16:03:07 +0000 (18:03 +0200)
Enable the I2C core for this SoC. I add a new type because this version
has new features (e.g. DMA) which will be added somewhen later.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Tested-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Documentation/devicetree/bindings/i2c/i2c-rcar.txt
drivers/i2c/busses/i2c-rcar.c

index 16b3e07aa98fdd7b2795f783775f8e2501a6a443..ea406eb20fa5ad117b3590cd88c6f1fa13253c2a 100644 (file)
@@ -10,6 +10,7 @@ Required properties:
        "renesas,i2c-r8a7792"
        "renesas,i2c-r8a7793"
        "renesas,i2c-r8a7794"
+       "renesas,i2c-r8a7795"
 - reg: physical base address of the controller and length of memory mapped
   region.
 - interrupts: interrupt specifier.
index dbedbff48b594b0cd0a3fa25dc2a4aa3dc889c3f..1921294afc87ce11080f295011baf4e22b6e5509 100644 (file)
 enum rcar_i2c_type {
        I2C_RCAR_GEN1,
        I2C_RCAR_GEN2,
+       I2C_RCAR_GEN3,
 };
 
 struct rcar_i2c_priv {
@@ -176,6 +177,7 @@ static int rcar_i2c_clock_calculate(struct rcar_i2c_priv *priv,
                cdf_width = 2;
                break;
        case I2C_RCAR_GEN2:
+       case I2C_RCAR_GEN3:
                cdf_width = 3;
                break;
        default:
@@ -573,6 +575,7 @@ static const struct of_device_id rcar_i2c_dt_ids[] = {
        { .compatible = "renesas,i2c-r8a7792", .data = (void *)I2C_RCAR_GEN2 },
        { .compatible = "renesas,i2c-r8a7793", .data = (void *)I2C_RCAR_GEN2 },
        { .compatible = "renesas,i2c-r8a7794", .data = (void *)I2C_RCAR_GEN2 },
+       { .compatible = "renesas,i2c-r8a7795", .data = (void *)I2C_RCAR_GEN3 },
        {},
 };
 MODULE_DEVICE_TABLE(of, rcar_i2c_dt_ids);