diff mbox

[v3,8/9] tegra: i2c: Select number of controllers for Tegra2 boards

Message ID 1328318041-10943-9-git-send-email-sjg@chromium.org
State Not Applicable, archived
Headers show

Commit Message

Simon Glass Feb. 4, 2012, 1:13 a.m. UTC
The Tegra 2x SOC has four ports, so define TEGRA_I2C_NUM_CONTROLLERS
in the shared config file.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 include/configs/tegra2-common.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

Comments

Heiko Schocher Feb. 10, 2012, 6:30 a.m. UTC | #1
Hello Simon,

Simon Glass wrote:
> The Tegra 2x SOC has four ports, so define TEGRA_I2C_NUM_CONTROLLERS
> in the shared config file.
> 
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
> 
>  include/configs/tegra2-common.h |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)

Acked-by: Heiko Schocher <hs@denx.de>

bye,
Heiko
diff mbox

Patch

diff --git a/include/configs/tegra2-common.h b/include/configs/tegra2-common.h
index 266d0e5..837f859 100644
--- a/include/configs/tegra2-common.h
+++ b/include/configs/tegra2-common.h
@@ -94,6 +94,9 @@ 
 #define CONFIG_EHCI_IS_TDI
 #define CONFIG_EHCI_DCACHE
 
+/* Total I2C ports on Tegra2 */
+#define TEGRA_I2C_NUM_CONTROLLERS	4
+
 /* include default commands */
 #include <config_cmd_default.h>