diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2013-08-22 16:28:26 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 13:42:37 -0700 |
commit | bdf94ef971868d90e3face5c023eefdb6713e0bd (patch) | |
tree | cbce52558acd256c91c5707cd25b779d69a01541 /drivers/i2c | |
parent | 96ab55e8d8a4f388b846287459079e34472db2d5 (diff) |
i2c: tegra: add compatible and platform id for Tegra124
Add compatible and platform id for T124 I2C and keeping
the HW chip specific paramter is same as T14x.
Change-Id: Ic222abf1c8835850b6ff1e794c4cb0e67ac34352
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/264891
Reviewed-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-by: Hayden Du <haydend@nvidia.com>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-tegra.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c index a69db1928618..356d5a0a0563 100644 --- a/drivers/i2c/busses/i2c-tegra.c +++ b/drivers/i2c/busses/i2c-tegra.c @@ -1300,8 +1300,11 @@ static struct tegra_i2c_chipdata tegra148_i2c_chipdata = { .has_config_load_reg = true, }; +#define tegra124_i2c_chipdata tegra148_i2c_chipdata + /* Match table for of_platform binding */ static const struct of_device_id tegra_i2c_of_match[] = { + { .compatible = "nvidia,tegra124-i2c", .data = &tegra124_i2c_chipdata, }, { .compatible = "nvidia,tegra148-i2c", .data = &tegra148_i2c_chipdata, }, { .compatible = "nvidia,tegra114-i2c", .data = &tegra114_i2c_chipdata, }, { .compatible = "nvidia,tegra30-i2c", .data = &tegra30_i2c_chipdata, }, @@ -1332,6 +1335,10 @@ static struct platform_device_id tegra_i2c_devtype[] = { .name = "tegra14-i2c", .driver_data = (unsigned long)&tegra148_i2c_chipdata, }, + { + .name = "tegra12-i2c", + .driver_data = (unsigned long)&tegra124_i2c_chipdata, + }, }; static int tegra_i2c_probe(struct platform_device *pdev) |