i2c: meson: add support for tl1
authorJian Hu <jian.hu@amlogic.com>
Thu, 20 Sep 2018 03:25:26 +0000 (11:25 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Sat, 29 Sep 2018 13:04:13 +0000 (06:04 -0700)
PD#172578: i2c: add support for tl1

Change-Id: I8c761aabfc0c701e2e31eb23e437c9f0e30cf3fd
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
drivers/amlogic/i2c/i2c-meson-master.c

index 26c4d6e..6d11198 100644 (file)
@@ -671,6 +671,13 @@ static const struct meson_i2c_data i2c_g12a_data = {
        .div_factor = 3,
        .delay_ajust = 15,
 };
+
+/* for the stable i2c controller, div_factor=3*/
+static const struct meson_i2c_data i2c_meson_data = {
+       .div_factor = 3,
+       .delay_ajust = 15,
+};
+
 static const struct of_device_id meson_i2c_match[] = {
        { .compatible = "amlogic,meson6-i2c", .data = &i2c_meson6_data },
        { .compatible = "amlogic,meson8b-i2c", .data = &i2c_meson8b_data },
@@ -680,6 +687,7 @@ static const struct of_device_id meson_i2c_match[] = {
        { .compatible = "amlogic,meson-txlx-i2c", .data = &i2c_txlx_data },
        { .compatible = "amlogic,meson-g12a-i2c", .data = &i2c_g12a_data },
        { .compatible = "amlogic,meson-g12b-i2c", .data = &i2c_g12a_data },
+       { .compatible = "amlogic,meson-i2c", .data = &i2c_meson_data },
        {},
 };
 MODULE_DEVICE_TABLE(of, meson_i2c_match);