tegra: i2c: Add function to find DVC bus
authorSimon Glass <sjg@chromium.org>
Mon, 2 Apr 2012 13:19:01 +0000 (13:19 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Tue, 15 May 2012 06:31:39 +0000 (08:31 +0200)
commite31c1e50ac8d85ede3f62c438034397ba54734d7
treea79cb7e9ffb14902c2b8a017949598384da807bc
parent1f47efa87a00dd98d61937c7040c8d2590d8b16f
tegra: i2c: Add function to find DVC bus

Add tegra_i2c_get_dvc_bus_num() to obtain the I2C bus number of DVC bus.
This allows us to talk to the PMU.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Warren <twarren@nvidia.com>
arch/arm/include/asm/arch-tegra2/tegra_i2c.h
drivers/i2c/tegra_i2c.c