i2c: tegra: add standardized clk/reset API support
authorBryan Wu <pengw@nvidia.com>
Fri, 5 Aug 2016 22:10:35 +0000 (16:10 -0600)
committerTom Warren <twarren@nvidia.com>
Mon, 15 Aug 2016 17:26:13 +0000 (10:26 -0700)
commit3c27fa2193f761e93d64e3c538c6931e6172adef
tree8deb803bea8303f10d25377d7ec9088f25c40b66
parentbbc5b36b2519d5aaa267a2bffba4b3e44dc8f51c
i2c: tegra: add standardized clk/reset API support

clk/reset API was tested on T186 platform and previous chip like
T210/T124 will still use the old APIs.

Signed-off-by: Bryan Wu <pengw@nvidia.com>
(swarren, simplified some ifdefs, removed indent level inside an ifdef)
(swarren, added comment about the ifdefs)
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Tom Warren <twarren@nvidia.com>
drivers/i2c/tegra_i2c.c