From patchwork Tue Dec 20 16:05:30 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "esw@bus-elektronik.de" X-Patchwork-Id: 132507 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 7A785B7056 for ; Wed, 21 Dec 2011 06:13:58 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id F38AB2810B; Tue, 20 Dec 2011 20:13:56 +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 mMJBqmGMVEQp; Tue, 20 Dec 2011 20:13:56 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1DFA52811D; Tue, 20 Dec 2011 20:13:55 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 329742814B for ; Tue, 20 Dec 2011 17:11:48 +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 xDDvfcVNdTmj for ; Tue, 20 Dec 2011 17:11:47 +0100 (CET) X-Greylist: delayed 352 seconds by postgrey-1.27 at theia; Tue, 20 Dec 2011 17:11:47 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 smtp.bus-elektronik.net (smtp.bus-elektronik.de [212.144.119.5]) by theia.denx.de (Postfix) with ESMTPS id 7E3252813C for ; Tue, 20 Dec 2011 17:11:47 +0100 (CET) Received: from CAS1.busriesa.bus (192.168.30.80) by Edge-Transport.busriesa.bus (192.168.30.20) with Microsoft SMTP Server (TLS) id 14.1.355.2; Tue, 20 Dec 2011 17:05:31 +0100 Received: from [10.0.0.1] (10.0.0.1) by CAS1.busriesa.bus (192.168.53.173) with Microsoft SMTP Server (TLS) id 14.1.355.2; Tue, 20 Dec 2011 17:05:30 +0100 Message-ID: <4EF0B24A.7020805@bus-elektronik.de> Date: Tue, 20 Dec 2011 17:05:30 +0100 From: Organization: BuS Elektronik GmbH & Co. KG User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: "u-boot@lists.denx.de" X-Enigmail-Version: 1.3.4 X-Mailman-Approved-At: Tue, 20 Dec 2011 20:13:53 +0100 Cc: Jens Scharsig , hs@denx.de Subject: [U-Boot] [PATCH I2C] fix: error ATMEL_FIO_BASE undeclared, if use I2C_Soft on AT91 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 * Since AT91 name schema was changed to ATMEL_BASE_xxx, I2C_SOFT on AT91 devices fails with 'error: ATMEL_FIO_BASE undeclared' * change ATMEL_PIO_BASE to ATMEL_BASE_PIOA will fix this Signed-off-by: Jens Scharsig --- include/i2c.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/i2c.h b/include/i2c.h index ee31034..1f35acf 100644 --- a/include/i2c.h +++ b/include/i2c.h @@ -78,7 +78,7 @@ # elif (defined(CONFIG_AT91RM9200) || \ defined(CONFIG_AT91SAM9260) || defined(CONFIG_AT91SAM9261) || \ defined(CONFIG_AT91SAM9263)) && !defined(CONFIG_AT91_LEGACY) -# define I2C_SOFT_DECLARATIONS at91_pio_t *pio = (at91_pio_t *) AT91_PIO_BASE; +# define I2C_SOFT_DECLARATIONS at91_pio_t *pio = (at91_pio_t *) ATMEL_BASE_PIOA; # else # define I2C_SOFT_DECLARATIONS # endif