From patchwork Mon Jul 5 16:47:22 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Reinhard Meyer (-VC)" X-Patchwork-Id: 71796 X-Patchwork-Delegate: info@emk-elektronik.de Return-Path: X-Original-To: wd@gemini.denx.de Delivered-To: wd@gemini.denx.de Received: from diddl.denx.de (diddl.denx.de [10.0.0.6]) by gemini.denx.de (Postfix) with ESMTP id 0FB4EFA8F0 for ; Mon, 5 Jul 2010 18:49:16 +0200 (CEST) Received: from diddl.denx.de (localhost.localdomain [127.0.0.1]) by diddl.denx.de (Postfix) with ESMTP id EE69920006A4 for ; Mon, 5 Jul 2010 18:49:15 +0200 (CEST) Received: from pop.mnet-online.de by diddl.denx.de with POP3 (fetchmail-6.3.17) for (single-drop); Mon, 05 Jul 2010 18:49:15 +0200 (CEST) Received: from murder ([192.168.8.180]) by backend2 (Cyrus v2.2.12) with LMTPA; Mon, 05 Jul 2010 18:47:49 +0200 X-Sieve: CMU Sieve 2.2 Received: from mail.m-online.net (localhost [127.0.0.1]) by frontend1.mail.m-online.net (Cyrus v2.2.12) with LMTPA; Mon, 05 Jul 2010 18:47:49 +0200 Received: from scanner-3.m-online.net (unknown [192.168.6.168]) by mail.m-online.net (Postfix) with ESMTP id 8428C1C00102; Mon, 5 Jul 2010 18:47:49 +0200 (CEST) Received: from mxin-2.m-online.net ([192.168.1.21]) by scanner-3.m-online.net (scanner-3.m-online.net [192.168.6.168]) (amavisd-new, port 10026) with ESMTP id 15757-02-2; Mon, 5 Jul 2010 18:47:48 +0200 (CEST) Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by mxin-2.m-online.net (Postfix) with ESMTP id 23D5746AF17; Mon, 5 Jul 2010 18:47:48 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 590B8280D2; Mon, 5 Jul 2010 18:47:22 +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 5WYWj0usNohB; Mon, 5 Jul 2010 18:47:22 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 82DC7280D5; Mon, 5 Jul 2010 18:47:13 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 13B4B280B7 for ; Mon, 5 Jul 2010 18:47:12 +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 eExgT+8Tg74q for ; Mon, 5 Jul 2010 18:47:10 +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 moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.9]) by theia.denx.de (Postfix) with ESMTP id 0467C280C0 for ; Mon, 5 Jul 2010 18:47:04 +0200 (CEST) Received: from [127.0.0.1] (p5B20013C.dip0.t-ipconnect.de [91.32.1.60]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0LdIov-1OwfGL016f-00j3bN; Mon, 05 Jul 2010 18:47:04 +0200 Message-ID: <4C320C9A.5090905@emk-elektronik.de> Date: Mon, 05 Jul 2010 18:47:22 +0200 From: "Reinhard Meyer (-VC)" Organization: EMK Elektronik User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: u-boot X-Provags-ID: V02:K0:8fuRXXQDMLRAMh65OFGiRyT/MFYwNBxMOj8BEFzXY8B 1NTNwXerIby6PA2HllAPIWsLV+rxQJZoZeLGf1VUqrJnqmoH5M K1c0gxSi4w8W6ZDxpRqRyoIlBV3/I6xLct1wsgPlAdJ5gbGviG e45D1dhDlT9jqII4T84ir5P9LuBPBXriL6qh5ocViocpDqg6bF Hje/5NlFKPwSFQm4CgcleFEmlwb64AN4GMa61gjzFc= Subject: [U-Boot] [PATCH 2/3] AT91: update cpu.c to use GPBR definitions from at91_gpbr.h X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list Reply-To: reinhard.meyer@emk-elektronik.de 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 X-Virus-Scanned: by amavisd-new at m-online.net no functional change, just make use of at91_gpbr.h Signed-off-by: Reinhard Meyer --- arch/arm/cpu/arm926ejs/at91/cpu.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/cpu/arm926ejs/at91/cpu.c b/arch/arm/cpu/arm926ejs/at91/cpu.c index 141a7d1..1a7e99f 100644 --- a/arch/arm/cpu/arm926ejs/at91/cpu.c +++ b/arch/arm/cpu/arm926ejs/at91/cpu.c @@ -28,6 +28,7 @@ #include #include +#include #include #include @@ -36,11 +37,10 @@ #endif /* - * The at91sam9260 has 4 GPBR (0-3), we'll use the last one, nr 3, - * to keep track of the bootcount. + * The at91sam9260 has 4 GPBR (0-3). + * For their typical use see at91_gpbr.h ! */ -#define AT91_GPBR_BOOTCOUNT_REGISTER 3 -#define AT91_BOOTCOUNT_ADDRESS (AT91_GPBR + 4*AT91_GPBR_BOOTCOUNT_REGISTER) +#define AT91_BOOTCOUNT_ADDRESS (AT91_GPBR + 4*AT91_GPBR_INDEX_BOOTCOUNT) int arch_cpu_init(void) {