From patchwork Mon Jul 6 15:28:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yegor Yefremov X-Patchwork-Id: 491679 X-Patchwork-Delegate: trini@ti.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 1F0CE140781 for ; Tue, 7 Jul 2015 01:29:07 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=googlemail.com header.i=@googlemail.com header.b=uAhOSq1U; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 32B4A4B716; Mon, 6 Jul 2015 17:29:05 +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 l5ITM5dry-oq; Mon, 6 Jul 2015 17:29:05 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C86724B6F4; Mon, 6 Jul 2015 17:29:04 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9B8864B72F for ; Mon, 6 Jul 2015 17:29:02 +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 SWbSiACZK2FU for ; Mon, 6 Jul 2015 17:29:02 +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-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by theia.denx.de (Postfix) with ESMTPS id 1B7494B715 for ; Mon, 6 Jul 2015 17:28:55 +0200 (CEST) Received: by wiclp1 with SMTP id lp1so24841126wic.0 for ; Mon, 06 Jul 2015 08:28:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=clac8DrFBVpZjr1mYcYB9sUeyl9wtWkvkH0P9cmkkDg=; b=uAhOSq1UstWfTcS1pL+rVNXcURm3IF3o/AJel7DypNN1Q5wlKnZR4uSiGBl/j8PWY/ DthdSGjblD2BswDbEvzXpaThCt9dpUGiRv96Q0IcVq4UjvEP1V6ZjHI7yUnzXb6eEZtQ puMS18jxdTYy+g1owhhAZtfkAuqislSrQgCBojobOA4AYf5vc6lz1T26XGGkWqsqlPoz LudxbjXQhIj5D5WWBmWtxJ5HVEskkuzub61eZVre0OMdCQmMgcgijEEw0h0UM+valbZZ YIN4EoTF3UHxKl0u+wnbKf+24n/Ny6bLRYibkV5u3Pqo3uvfuqGI4tgRaZhLL6A4dwqi tgiQ== X-Received: by 10.194.93.3 with SMTP id cq3mr48950975wjb.20.1436196535397; Mon, 06 Jul 2015 08:28:55 -0700 (PDT) Received: from user-SATELLITE-L50-B.localdomain (x2f0a6c8.dyn.telefonica.de. [2.240.166.200]) by mx.google.com with ESMTPSA id ea2sm39499086wib.22.2015.07.06.08.28.54 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 06 Jul 2015 08:28:54 -0700 (PDT) From: Yegor Yefremov To: u-boot@lists.denx.de Date: Mon, 6 Jul 2015 17:28:35 +0200 Message-Id: <1436196516-4719-2-git-send-email-yegorslists@googlemail.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1436196516-4719-1-git-send-email-yegorslists@googlemail.com> References: <1436196516-4719-1-git-send-email-yegorslists@googlemail.com> Cc: trini@konsulko.com Subject: [U-Boot] [PATCH 2/3] arm: baltos: drop I2C speed to 1000 Hz 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" This action is need to make I2C communication with PMIC stable for low temperature. Print current I2C speed in SPL for visual control. Signed-off-by: Yegor Yefremov --- board/vscom/baltos/board.c | 2 ++ include/configs/baltos.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/board/vscom/baltos/board.c b/board/vscom/baltos/board.c index 99ca60e..09bc8c6 100644 --- a/board/vscom/baltos/board.c +++ b/board/vscom/baltos/board.c @@ -184,6 +184,8 @@ void am33xx_spl_board_init(void) */ i2c_set_bus_num(1); + printf("I2C speed: %d Hz\n", CONFIG_SYS_OMAP24_I2C_SPEED); + if (i2c_probe(TPS65910_CTRL_I2C_ADDR)) { puts("i2c: cannot access TPS65910\n"); return; diff --git a/include/configs/baltos.h b/include/configs/baltos.h index 632523e..31de97f 100644 --- a/include/configs/baltos.h +++ b/include/configs/baltos.h @@ -52,7 +52,7 @@ /* I2C configuration */ #undef CONFIG_SYS_OMAP24_I2C_SPEED -#define CONFIG_SYS_OMAP24_I2C_SPEED 10000 +#define CONFIG_SYS_OMAP24_I2C_SPEED 1000 #ifdef CONFIG_NAND #define CONFIG_SYS_NAND_U_BOOT_OFFS 0x000c0000