Skip to content

Commit 814a322

Browse files
tlebWolfram Sang
authored andcommitted
i2c: nomadik: support Mobileye EyeQ6H I2C controller
Add EyeQ6H support to the nmk-i2c AMBA driver. It shares the same quirk as EyeQ5: the memory bus only supports 32-bit accesses. Avoid writeb() and readb() by reusing the same `priv->has_32b_bus` flag. It does NOT need to write speed-mode specific value into a register; therefore it does not depend on the mobileye,olb DT property. Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com> Signed-off-by: Andi Shyti <andi.shyti@kernel.org> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
1 parent a0d15cc commit 814a322

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

drivers/i2c/busses/i2c-nomadik.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
* I2C master mode controller driver, used in Nomadik 8815
77
* and Ux500 platforms.
88
*
9-
* The Mobileye EyeQ5 platform is also supported; it uses
9+
* The Mobileye EyeQ5 and EyeQ6H platforms are also supported; they use
1010
* the same Ux500/DB8500 IP block with two quirks:
1111
* - The memory bus only supports 32-bit accesses.
12-
* - A register must be configured for the I2C speed mode;
12+
* - (only EyeQ5) A register must be configured for the I2C speed mode;
1313
* it is located in a shared register region called OLB.
1414
*
1515
* Author: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com>
@@ -1075,6 +1075,10 @@ static const struct of_device_id nmk_i2c_eyeq_match_table[] = {
10751075
.compatible = "mobileye,eyeq5-i2c",
10761076
.data = (void *)(NMK_I2C_EYEQ_FLAG_32B_BUS | NMK_I2C_EYEQ_FLAG_IS_EYEQ5),
10771077
},
1078+
{
1079+
.compatible = "mobileye,eyeq6h-i2c",
1080+
.data = (void *)NMK_I2C_EYEQ_FLAG_32B_BUS,
1081+
},
10781082
};
10791083

10801084
static int nmk_i2c_probe(struct amba_device *adev, const struct amba_id *id)

0 commit comments

Comments
 (0)