From patchwork Mon Nov 25 06:27:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sonic Zhang X-Patchwork-Id: 293824 X-Patchwork-Delegate: sonic.adi@gmail.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 ED2ED2C013B for ; Mon, 25 Nov 2013 17:28:29 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9969F4A8E4; Mon, 25 Nov 2013 07:28: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 6sLetrIaeFUd; Mon, 25 Nov 2013 07:28:28 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 201804A8E5; Mon, 25 Nov 2013 07:28:15 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7C0024A907 for ; Mon, 25 Nov 2013 07:28:06 +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 OMGOTrPl-tRK for ; Mon, 25 Nov 2013 07:28:01 +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-pd0-f180.google.com (mail-pd0-f180.google.com [209.85.192.180]) by theia.denx.de (Postfix) with ESMTPS id 198F84A8EB for ; Mon, 25 Nov 2013 07:27:45 +0100 (CET) Received: by mail-pd0-f180.google.com with SMTP id q10so4838537pdj.11 for ; Sun, 24 Nov 2013 22:27:43 -0800 (PST) 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=CtmoA6AyusMGFytYzNqSYvFgMixKChly8iiTadd41u4=; b=n7AyHZAvkSeNm3ozn00FASyzqfrVJ57euLtAZH/s7FdXqcBb4VwgDmJCN3RkMoWiz2 DFJZm6gIwW0QzFCwXldz+JWsTpGV2HehwOTlB2dFsJx+7TM9/gQ0mjPEDI+rgLlLAuhv t0AG6v7AzNVNeBCKWNzG9XMio9nkIRXPGZvKYwkL3vkBj72mOPEnbzOFtFTGIi+A8VhT e4x3/aQ/IJFxOPS7bkiseL34T/KeOssppFRa9tptailSgADXS/+KRVKxCc7biezzTewA zMS8CJUX9+PQjNS6jR3eYSrmcjEdpw1Paf4I9pKrKJQwKlKTefsb00t7NiNTJXBNMZeY Ut+A== X-Received: by 10.66.161.1 with SMTP id xo1mr1069326pab.146.1385360863833; Sun, 24 Nov 2013 22:27:43 -0800 (PST) Received: from localhost.localdomain ([114.91.244.100]) by mx.google.com with ESMTPSA id y9sm80111301pas.10.2013.11.24.22.27.39 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 24 Nov 2013 22:27:43 -0800 (PST) From: Sonic Zhang To: Masahiro Yamada , u-boot@lists.denx.de Date: Mon, 25 Nov 2013 14:27:13 +0800 Message-Id: <1385360833-26879-4-git-send-email-sonic.adi@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1385360833-26879-1-git-send-email-sonic.adi@gmail.com> References: <1385360833-26879-1-git-send-email-sonic.adi@gmail.com> Cc: Sonic Zhang , adi-u-boot-devel@lists.sourceforge.net Subject: [U-Boot] [PATCH 4/4 v2] blackfin: soft-i2c: No need to define blackfin specific soft i2c operations 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 From: Sonic Zhang Use default GPIO operations. Signed-off-by: Sonic Zhang Acked-by: Heiko Schocher --- include/configs/bf533-stamp.h | 29 ++--------------------------- 1 file changed, 2 insertions(+), 27 deletions(-) diff --git a/include/configs/bf533-stamp.h b/include/configs/bf533-stamp.h index a22c868..f5b9658 100644 --- a/include/configs/bf533-stamp.h +++ b/include/configs/bf533-stamp.h @@ -80,33 +80,8 @@ /* * Software (bit-bang) I2C driver configuration */ -#define PF_SCL PF3 -#define PF_SDA PF2 -#define I2C_INIT (*pFIO_DIR |= PF_SCL); asm("ssync;") -#define I2C_ACTIVE (*pFIO_DIR |= PF_SDA); \ - *pFIO_INEN &= ~PF_SDA; asm("ssync;") -#define I2C_TRISTATE (*pFIO_DIR &= ~PF_SDA); \ - *pFIO_INEN |= PF_SDA; asm("ssync;") -#define I2C_READ ((volatile)(*pFIO_FLAG_D & PF_SDA) != 0); \ - asm("ssync;") -#define I2C_SDA(bit) if (bit) { \ - *pFIO_FLAG_S = PF_SDA; \ - asm("ssync;"); \ - } \ - else { \ - *pFIO_FLAG_C = PF_SDA; \ - asm("ssync;"); \ - } -#define I2C_SCL(bit) if (bit) { \ - *pFIO_FLAG_S = PF_SCL; \ - asm("ssync;"); \ - } \ - else { \ - *pFIO_FLAG_C = PF_SCL; \ - asm("ssync;"); \ - } -#define I2C_DELAY udelay(5) /* 1/4 I2C clock duration */ - +#define CONFIG_SOFT_I2C_GPIO_SCL GPIO_PF3 +#define CONFIG_SOFT_I2C_GPIO_SDA GPIO_PF2 /* * Flash Settings