From cb445fb4ccd5f1b3e0bf416ca0bafd90a5b2a2b0 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Fri, 3 Feb 2012 15:13:57 +0000 Subject: [PATCH] tegra: i2c: Initialise I2C on Nvidia boards This enables I2C on all Nvidia boards including Seaboard and Harmony. Signed-off-by: Simon Glass Acked-by: Heiko Schocher Signed-off-by: Tom Warren --- board/nvidia/common/board.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/board/nvidia/common/board.c b/board/nvidia/common/board.c index 72d8630024..85dd359ec9 100644 --- a/board/nvidia/common/board.c +++ b/board/nvidia/common/board.c @@ -34,6 +34,7 @@ #include #include #include +#include #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(); -- 2.30.2