From patchwork Thu Dec 6 10:04:19 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Armando Visconti X-Patchwork-Id: 204204 X-Patchwork-Delegate: hs@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 C94FF2C01E5 for ; Thu, 6 Dec 2012 21:04:45 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8FD504A183; Thu, 6 Dec 2012 11:04: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 KXNJEapddUeC; Thu, 6 Dec 2012 11:04:42 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E3B2F4A18B; Thu, 6 Dec 2012 11:04:32 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D379B4A19B for ; Thu, 6 Dec 2012 11:04:28 +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 jFIv2xe4jj8v for ; Thu, 6 Dec 2012 11:04:28 +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 eu1sys200aog117.obsmtp.com (eu1sys200aog117.obsmtp.com [207.126.144.143]) by theia.denx.de (Postfix) with ESMTPS id 670AC4A18B for ; Thu, 6 Dec 2012 11:04:24 +0100 (CET) Received: from beta.dmz-eu.st.com ([164.129.1.35]) (using TLSv1) by eu1sys200aob117.postini.com ([207.126.147.11]) with SMTP ID DSNKUMBtp0+SjFuID92y2fdEYA1bqd6w9jMA@postini.com; Thu, 06 Dec 2012 10:04:26 UTC Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id D86671E8; Thu, 6 Dec 2012 10:04:21 +0000 (GMT) Received: from Webmail-eu.st.com (safex1hubcas3.st.com [10.75.90.18]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id C97B72CF5; Thu, 6 Dec 2012 10:04:21 +0000 (GMT) Received: from localhost (10.51.110.123) by webmail-eu.st.com (10.75.90.13) with Microsoft SMTP Server (TLS) id 8.3.245.1; Thu, 6 Dec 2012 11:04:21 +0100 From: Armando Visconti To: , Date: Thu, 6 Dec 2012 11:04:19 +0100 Message-ID: <1354788259-32688-6-git-send-email-armando.visconti@st.com> X-Mailer: git-send-email 1.7.4.4 In-Reply-To: <1354788259-32688-1-git-send-email-armando.visconti@st.com> References: <1354788259-32688-1-git-send-email-armando.visconti@st.com> MIME-Version: 1.0 Cc: u-boot@lists.denx.de, spear-devel@list.st.com Subject: [U-Boot] [PATCH V2 5/5] designware_i2c.h: Define IC_CLK only if not already defined in config file 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: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Signed-off-by: Armando Visconti --- drivers/i2c/designware_i2c.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/i2c/designware_i2c.h b/drivers/i2c/designware_i2c.h index 0dc8884..2faf4a8 100644 --- a/drivers/i2c/designware_i2c.h +++ b/drivers/i2c/designware_i2c.h @@ -60,7 +60,9 @@ struct i2c_regs { u32 ic_tx_abrt_source; }; +#if !defined(IC_CLK) #define IC_CLK 166 +#endif #define NANO_TO_MICRO 1000 /* High and low times in different speed modes (in ns) */