i2c: meson: add support for txl

PD#168480: i2c: meson: add support for txl

Change-Id: I0c4fe9d2e6caec0cfa812af28476774db69a4e89
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
Signed-off-by: Bo Yang <bo.yang@amlogic.com>
This commit is contained in:
Jian Hu
2018-06-18 11:42:16 +08:00
committed by Yixun Lan
parent 821c9713cb
commit d049ab634b
2 changed files with 7 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ Required properties:
- compatible: must be "amlogic,meson6-i2c"
or "amlogic,meson-gx-i2c"
or "amlogic,meson-axg-i2c"
or "amlogic,meson-txl-i2c"
or "amlogic,meson-txlx-i2c"
or "amlogic,meson8b-i2c"
or "amlogic,meson-g12a-i2c"

View File

@@ -652,6 +652,11 @@ static const struct meson_i2c_data i2c_gx_data = {
.delay_ajust = 15,
};
static const struct meson_i2c_data i2c_txl_data = {
.div_factor = 4,
.delay_ajust = 15,
};
static const struct meson_i2c_data i2c_axg_data = {
.div_factor = 3,
.delay_ajust = 15,
@@ -671,6 +676,7 @@ static const struct of_device_id meson_i2c_match[] = {
{ .compatible = "amlogic,meson8b-i2c", .data = &i2c_meson8b_data },
{ .compatible = "amlogic,meson-gx-i2c", .data = &i2c_gx_data },
{ .compatible = "amlogic,meson-axg-i2c", .data = &i2c_axg_data },
{ .compatible = "amlogic,meson-txl-i2c", .data = &i2c_txl_data },
{ .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 },