]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
i2c: rcar_i2c: Add R-Car Gen4 support
authorHai Pham <hai.pham.ud@renesas.com>
Tue, 28 Feb 2023 21:25:51 +0000 (22:25 +0100)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Fri, 7 Apr 2023 15:13:27 +0000 (17:13 +0200)
Add support for R-Car Gen4 SoCs into the driver.

While I2C on R-Car Gen4 does support some extra features (Slave Clock
Stretch Select), for now it is treated the same as I2C on R-Car Gen3,
which let us share the same driver.

Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Signed-off-by: Hai Pham <hai.pham.ud@renesas.com>
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org> # Use RCAR_64 Kconfig
Reviewed-by: Heiko Schocher <hs@denx.de>
drivers/i2c/Kconfig
drivers/i2c/rcar_i2c.c

index 2eae33cd54c09d3b8fc3a571084cf2f030d5d771..05b14d2451c6445d42b3d9d1e3893695f238792d 100644 (file)
@@ -496,7 +496,7 @@ config SYS_I2C_OMAP24XX
 
 config SYS_I2C_RCAR_I2C
        bool "Renesas RCar I2C driver"
-       depends on (RCAR_GEN2 || RCAR_GEN3) && DM_I2C
+       depends on (RCAR_GEN2 || RCAR_64) && DM_I2C
        help
          Support for Renesas RCar I2C controller.
 
index d9ece5e3a8006af5222a7db0ff65a3400e20d44a..ff9a2d80dda1c1b606cf9b7de325ae27e6a76031 100644 (file)
@@ -369,6 +369,7 @@ static const struct dm_i2c_ops rcar_i2c_ops = {
 static const struct udevice_id rcar_i2c_ids[] = {
        { .compatible = "renesas,rcar-gen2-i2c", .data = RCAR_I2C_TYPE_GEN2 },
        { .compatible = "renesas,rcar-gen3-i2c", .data = RCAR_I2C_TYPE_GEN3 },
+       { .compatible = "renesas,rcar-gen4-i2c", .data = RCAR_I2C_TYPE_GEN3 },
        { }
 };