|
@@ -129,6 +129,16 @@ static struct mv64xxx_i2c_regs mv64xxx_i2c_regs_mv64xxx = {
|
|
|
.soft_reset = 0x1c,
|
|
|
};
|
|
|
|
|
|
+static struct mv64xxx_i2c_regs mv64xxx_i2c_regs_sun4i = {
|
|
|
+ .addr = 0x00,
|
|
|
+ .ext_addr = 0x04,
|
|
|
+ .data = 0x08,
|
|
|
+ .control = 0x0c,
|
|
|
+ .status = 0x10,
|
|
|
+ .clock = 0x14,
|
|
|
+ .soft_reset = 0x18,
|
|
|
+};
|
|
|
+
|
|
|
static void
|
|
|
mv64xxx_i2c_prepare_for_io(struct mv64xxx_i2c_data *drv_data,
|
|
|
struct i2c_msg *msg)
|
|
@@ -509,6 +519,7 @@ static const struct i2c_algorithm mv64xxx_i2c_algo = {
|
|
|
*****************************************************************************
|
|
|
*/
|
|
|
static const struct of_device_id mv64xxx_i2c_of_match_table[] = {
|
|
|
+ { .compatible = "allwinner,sun4i-i2c", .data = &mv64xxx_i2c_regs_sun4i},
|
|
|
{ .compatible = "marvell,mv64xxx-i2c", .data = &mv64xxx_i2c_regs_mv64xxx},
|
|
|
{}
|
|
|
};
|