From patchwork Wed Jun 3 09:33:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Gmeiner X-Patchwork-Id: 479844 X-Patchwork-Delegate: sbabic@denx.de 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 5020B140280 for ; Wed, 3 Jun 2015 19:34:04 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=erUn7oLh; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id ECB5E4B8FD; Wed, 3 Jun 2015 11:33:58 +0200 (CEST) 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 xf7ejed9oQu9; Wed, 3 Jun 2015 11:33:58 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D7F824B915; Wed, 3 Jun 2015 11:33:55 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2106C4B8FC for ; Wed, 3 Jun 2015 11:33:50 +0200 (CEST) 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 eds4J05-GT16 for ; Wed, 3 Jun 2015 11:33:50 +0200 (CEST) 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-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176]) by theia.denx.de (Postfix) with ESMTPS id DF8CF4B8FB for ; Wed, 3 Jun 2015 11:33:47 +0200 (CEST) Received: by wifw1 with SMTP id w1so14525880wif.0 for ; Wed, 03 Jun 2015 02:33:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=5am4j0WsK0/k8xV5/gSbZNwpBi/+rF44Xf3Lc4JYNhQ=; b=erUn7oLh15CkWOxrid4VIus0nCD7OTH+JhaDUVDWkzLyN19lgKp/zkQ6RJEMdsuquv JrMgMvsYOIO27uvEV19W0WzTknOnnsS4oMO4WhacWnWwcaZidp0X9+HvCeeD5g0BA7dr GfYFe2LYxojgAbQ0Jus9ojvlX/J6u4BNce3kgU+Hhilw7nvdw5hNXZbJV761yGdmurmo JNQoxZQTt5hXSKHEs6e05CFzdgY3rfzImzVdFIXaww0EvoymT3M6zwxaa6M6zygmvkHP zfGx5liGliWbWvcZBRmI48rSOzBwg/jDgXefQLz+sMFnL3ks+/p7lXhoi9ofqHyDzovU AhEA== X-Received: by 10.194.63.16 with SMTP id c16mr46550803wjs.105.1433324027541; Wed, 03 Jun 2015 02:33:47 -0700 (PDT) Received: from chgm-pc.bachmann.at.bachmann.at (089144222240.atnat0031.highway.bob.at. [89.144.222.240]) by mx.google.com with ESMTPSA id z9sm25650150wiv.9.2015.06.03.02.33.46 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Jun 2015 02:33:46 -0700 (PDT) From: Christian Gmeiner To: u-boot@lists.denx.de Date: Wed, 3 Jun 2015 11:33:23 +0200 Message-Id: <1433324003-6884-2-git-send-email-christian.gmeiner@gmail.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1433324003-6884-1-git-send-email-christian.gmeiner@gmail.com> References: <1433324003-6884-1-git-send-email-christian.gmeiner@gmail.com> Subject: [U-Boot] [PATCH 2/2] ot1200: setup i2c bus 1 in setup_iomux_i2c() X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" On this bus there is a EEPROM containing EDID and ddr3 calibration information. Signed-off-by: Christian Gmeiner --- board/bachmann/ot1200/ot1200.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/board/bachmann/ot1200/ot1200.c b/board/bachmann/ot1200/ot1200.c index a33d496..2237b7a 100644 --- a/board/bachmann/ot1200/ot1200.c +++ b/board/bachmann/ot1200/ot1200.c @@ -122,6 +122,20 @@ static void setup_iomux_features(void) #define PC MUX_PAD_CTRL(I2C_PAD_CTRL) +/* I2C2 - EEPROM */ +static struct i2c_pads_info i2c_pad_info1 = { + .scl = { + .i2c_mode = MX6_PAD_EIM_EB2__I2C2_SCL | PC, + .gpio_mode = MX6_PAD_EIM_EB2__GPIO2_IO30 | PC, + .gp = IMX_GPIO_NR(2, 30) + }, + .sda = { + .i2c_mode = MX6_PAD_EIM_D16__I2C2_SDA | PC, + .gpio_mode = MX6_PAD_EIM_D16__GPIO3_IO16 | PC, + .gp = IMX_GPIO_NR(3, 16) + } +}; + /* I2C3 - IO expander */ static struct i2c_pads_info i2c_pad_info2 = { .scl = { @@ -138,6 +152,7 @@ static struct i2c_pads_info i2c_pad_info2 = { static void setup_iomux_i2c(void) { + setup_i2c(1, CONFIG_SYS_I2C_SPEED, 0x7f, &i2c_pad_info1); setup_i2c(2, CONFIG_SYS_I2C_SPEED, 0x7f, &i2c_pad_info2); }