From patchwork Thu Feb 10 10:30:04 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_Bie=C3=9Fmann?= X-Patchwork-Id: 82591 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 0A97CB70E9 for ; Thu, 10 Feb 2011 21:30:19 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4F833282C2; Thu, 10 Feb 2011 11:30:17 +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 Ofnbe5XMUGzs; Thu, 10 Feb 2011 11:30:17 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 80600282A4; Thu, 10 Feb 2011 11:30:14 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 147A5282A4 for ; Thu, 10 Feb 2011 11:30:12 +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 7DZmGr3wMNsE for ; Thu, 10 Feb 2011 11:30:10 +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 moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.10]) by theia.denx.de (Postfix) with ESMTP id 105A2282A1 for ; Thu, 10 Feb 2011 11:30:08 +0100 (CET) Received: from corscience.de (DSL01.212.114.252.242.ip-pool.NEFkom.net [212.114.252.242]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0LupVN-1QDV9D2OAb-010Qkx; Thu, 10 Feb 2011 11:30:06 +0100 Received: from azuregos.CS.local (unknown [192.168.102.9]) by corscience.de (Postfix) with ESMTP id 0BBCC51B9B; Thu, 10 Feb 2011 11:30:06 +0100 (CET) From: =?UTF-8?q?Andreas=20Bie=C3=9Fmann?= To: u-boot@lists.denx.de Date: Thu, 10 Feb 2011 11:30:04 +0100 Message-Id: <1297333804-11677-1-git-send-email-biessmann@corscience.de> X-Mailer: git-send-email 1.7.2.3 MIME-Version: 1.0 X-Provags-ID: V02:K0:7TlRev+piGXD+8j24O57DuRHu7pyi8IIKosRV5PzEGp zpmF/6BQxZSibSxMUisHXJqm+4EBoE7kjDYBjfaFFBxAXkuzaq m6fsYxlKg2A9Okkmi4AWC+WmHPph5gS/3STSQEF4Wdrh8RGrwT 5BCJiObMc+VPwIPCXrifoIYzwTNqnLBF7ll/zvY8gUc63TvRWA nVRqJ2ZL1e/t4qOJPlvkA== Cc: =?UTF-8?q?Andreas=20Bie=C3=9Fmann?= Subject: [U-Boot] [PATCH] soft_i2c: add necessary includes for AVR32 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 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: Andreas Bießmann --- This patch could also go through AT91/AVR32 rework branch. Currently no in-tree board uses soft-i2c. But when using soft-i2c and including portmux.h in board header imximage.o complains about double definition of sync() (once in asm/io.h and once in system unistd.h). drivers/i2c/soft_i2c.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/i2c/soft_i2c.c b/drivers/i2c/soft_i2c.c index 69b5f42..e62978a 100644 --- a/drivers/i2c/soft_i2c.c +++ b/drivers/i2c/soft_i2c.c @@ -30,6 +30,9 @@ #include #include #endif +#if defined(CONFIG_AVR32) +#include +#endif #if defined(CONFIG_AT91FAMILY) #include #include