From patchwork Wed Feb 6 23:26:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Warren X-Patchwork-Id: 218802 X-Patchwork-Delegate: twarren@nvidia.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id B0E222C02F7 for ; Thu, 7 Feb 2013 10:27:49 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1E9CB4A127; Thu, 7 Feb 2013 00:27:42 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id U4sc2dV9KoGQ; Thu, 7 Feb 2013 00:27:41 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 672624A138; Thu, 7 Feb 2013 00:27:29 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 940364A0F5 for ; Thu, 7 Feb 2013 00:27:26 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bik9SJe-IrUV for ; Thu, 7 Feb 2013 00:27:25 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-da0-f44.google.com (mail-da0-f44.google.com [209.85.210.44]) by theia.denx.de (Postfix) with ESMTPS id 5AAA64A101 for ; Thu, 7 Feb 2013 00:27:19 +0100 (CET) Received: by mail-da0-f44.google.com with SMTP id z20so868246dae.31 for ; Wed, 06 Feb 2013 15:27:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-nvconfidentiality; bh=jNwsfUnGHJhjGYD8lSdTPe4wQXcikRM0ZDG7aCWXv7U=; b=yLilKrVXXl5LJFw9O8OTOU7vCBE59nwBVaKluVTbf/6O2sO/1wDJPl3xBtINP66a+X +JR73d7O6ePpzwOi1YHtMiHsZh/k2blqC3oS1FhW5uzxAPDKhjyepDlpYxlTWrwVSf2l 0F6C8pBVB/kC5OscKwK6c/LekFUe8ZVfZsQ0B8zmQi0MIJypjTRslcl5lOoIo830/twN RxYWcNZg/iQN8vazOc68NkPVFAMHUGmj4aZ19PRPoc+b70JWBjxKM0ruKYd9EnZFIxbO HHxxiSRk2WpCj53XosVYm187DRyVaLrzDEKtFxx7oRefrEx95Ehteo0kh2VQDeIr7Mdv j/+Q== X-Received: by 10.66.88.164 with SMTP id bh4mr79444020pab.41.1360193237360; Wed, 06 Feb 2013 15:27:17 -0800 (PST) Received: from localhost.localdomain (ip68-230-103-25.ph.ph.cox.net. [68.230.103.25]) by mx.google.com with ESMTPS id b3sm38402644pax.14.2013.02.06.15.27.14 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 06 Feb 2013 15:27:16 -0800 (PST) From: Tom Warren To: u-boot@lists.denx.de Date: Wed, 6 Feb 2013 16:26:48 -0700 Message-Id: <1360193208-16055-4-git-send-email-twarren@nvidia.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1360193208-16055-1-git-send-email-twarren@nvidia.com> References: <1360193208-16055-1-git-send-email-twarren@nvidia.com> X-NVConfidentiality: public Cc: twarren.nvidia@gmail.com, swarren@nvidia.com, Tom Warren , hs@denx.de Subject: [U-Boot] [PATCH v2 3/3] Tegra114: I2C: Enable I2C driver on Dalmore E1611 eval board X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Tested all 5 'buses', i2c probe enumerates device addresses on bus 1 and 2. Signed-off-by: Tom Warren Reviewed-by: Stephen Warren Acked-by: Laxman Dewangan --- v2: No change include/configs/dalmore.h | 9 +++++++++ include/configs/tegra114-common.h | 3 +++ 2 files changed, 12 insertions(+), 0 deletions(-) diff --git a/include/configs/dalmore.h b/include/configs/dalmore.h index ce32c80..b1a6e34 100644 --- a/include/configs/dalmore.h +++ b/include/configs/dalmore.h @@ -41,6 +41,15 @@ #define CONFIG_MACH_TYPE MACH_TYPE_DALMORE #define CONFIG_BOARD_EARLY_INIT_F + +/* I2C */ +#define CONFIG_TEGRA_I2C +#define CONFIG_SYS_I2C_INIT_BOARD +#define CONFIG_I2C_MULTI_BUS +#define CONFIG_SYS_MAX_I2C_BUS TEGRA_I2C_NUM_CONTROLLERS +#define CONFIG_SYS_I2C_SPEED 100000 +#define CONFIG_CMD_I2C + #define CONFIG_ENV_IS_NOWHERE #define MACH_TYPE_DALMORE 4304 /* not yet in mach-types.h */ diff --git a/include/configs/tegra114-common.h b/include/configs/tegra114-common.h index 0033530..c2986d8 100644 --- a/include/configs/tegra114-common.h +++ b/include/configs/tegra114-common.h @@ -76,4 +76,7 @@ #define CONFIG_SPL_LDSCRIPT "$(CPUDIR)/tegra114/u-boot-spl.lds" +/* Total I2C ports on Tegra114 */ +#define TEGRA_I2C_NUM_CONTROLLERS 5 + #endif /* _TEGRA114_COMMON_H_ */