]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: tegra: enable multi master mode for tegra210
authorShardar Shariff Md <smohammed@nvidia.com>
Mon, 14 Mar 2016 13:22:18 +0000 (18:52 +0530)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 12 Apr 2016 21:56:05 +0000 (23:56 +0200)
commitdfd3c6a5e102980ffdf2651724d2a9c4a94df8d2
tree62c5fb3e613b724571e10c1ded14decff88bf125
parent66b8f7799f7a085f2820f8478ac8eb72c186cd61
i2c: tegra: enable multi master mode for tegra210

Enable multi-master mode in I2C_CNFG reg based on hw features.
Using single/multi-master mode bit introduced for Tegra210,
whereas multi-master mode is enabled by default in HW for T124 and
earlier Tegra SOC. Enabling this bit doesn't explicitly start
treating the bus has having multiple masters, but will start
checking for arbitration lost and reporting when it occurs.

The Tegra210 I2C controller supports single/multi master mode.
Add chipdata for Tegra210 and its compatibility string so that
Tegra210 will select data that enables multi master mode correctly.

Do below prerequisites for multi-master bus if "multi-master"
dt property entry is added.
 1. Enable 1st level clock always set.
 2. Disable 2nd level clock gating (slcg which
    is supported from T124 SOC and later chips)

Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-tegra.c