This enables I2C on all Nvidia boards including Seaboard and
Harmony.

Signed-off-by: Simon Glass <s...@chromium.org>
---
 board/nvidia/common/board.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/board/nvidia/common/board.c b/board/nvidia/common/board.c
index a7c566d..63edfdb 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;
@@ -69,6 +70,9 @@ int board_init(void)
 #endif
        /* boot param addr */
        gd->bd->bi_boot_params = (NV_PA_SDRAM_BASE + 0x100);
+#ifdef CONFIG_TEGRA2_I2C
+       i2c_init_board();
+#endif
 
 #ifdef CONFIG_USB_EHCI_TEGRA
        /* For USB GPIO PD0. for now, since we have no pinmux in fdt */
-- 
1.7.3.1

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to