summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2012-02-03 15:13:57 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-03-29 08:12:50 +0200
commitcb445fb4ccd5f1b3e0bf416ca0bafd90a5b2a2b0 (patch)
tree58b5ab99048704cab0ac4f13c011a188a55f38d0
parent2e33559f3d4f111f969a7e0da29a264f41bae86a (diff)
downloadu-boot-imx-cb445fb4ccd5f1b3e0bf416ca0bafd90a5b2a2b0.zip
u-boot-imx-cb445fb4ccd5f1b3e0bf416ca0bafd90a5b2a2b0.tar.gz
u-boot-imx-cb445fb4ccd5f1b3e0bf416ca0bafd90a5b2a2b0.tar.bz2
tegra: i2c: Initialise I2C on Nvidia boards
This enables I2C on all Nvidia boards including Seaboard and Harmony. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Heiko Schocher <hs@denx.de> Signed-off-by: Tom Warren <twarren@nvidia.com>
-rw-r--r--board/nvidia/common/board.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/board/nvidia/common/board.c b/board/nvidia/common/board.c
index 72d8630..85dd359 100644
--- a/board/nvidia/common/board.c
+++ b/board/nvidia/common/board.c
@@ -34,6 +34,7 @@
#include <asm/arch/uart.h>
#include <spi.h>
#include <asm/arch/usb.h>
+#include <i2c.h>
#include "board.h"
DECLARE_GLOBAL_DATA_PTR;
@@ -75,6 +76,12 @@ int board_init(void)
#endif
/* boot param addr */
gd->bd->bi_boot_params = (NV_PA_SDRAM_BASE + 0x100);
+#ifdef CONFIG_TEGRA_I2C
+#ifndef CONFIG_SYS_I2C_INIT_BOARD
+#error "You must define CONFIG_SYS_I2C_INIT_BOARD to use i2c on Nvidia boards"
+#endif
+ i2c_init_board();
+#endif
#ifdef CONFIG_USB_EHCI_TEGRA
pin_mux_usb();