From patchwork Mon Dec 6 18:03:37 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "clagix@gmail.com" X-Patchwork-Id: 74420 X-Patchwork-Delegate: info@emk-elektronik.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 0CCA4B70E3 for ; Tue, 7 Dec 2010 05:03:36 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 68A2F28166; Mon, 6 Dec 2010 19:03:34 +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 DfvCWCY+NKBu; Mon, 6 Dec 2010 19:03:34 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9A28928108; Mon, 6 Dec 2010 19:03:32 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 16C0F28108 for ; Mon, 6 Dec 2010 19:03:31 +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 5Fs2kHmIgy4f for ; Mon, 6 Dec 2010 19:03:29 +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-bw0-f44.google.com (mail-bw0-f44.google.com [209.85.214.44]) by theia.denx.de (Postfix) with ESMTP id 1531428107 for ; Mon, 6 Dec 2010 19:03:27 +0100 (CET) Received: by bwz12 with SMTP id 12so10896969bwz.3 for ; Mon, 06 Dec 2010 10:03:27 -0800 (PST) Received: by 10.223.89.142 with SMTP id e14mr5946344fam.143.1291658606809; Mon, 06 Dec 2010 10:03:26 -0800 (PST) Received: from localhost.swarco.com (p509928d0.dip0.t-ipconnect.de [80.153.40.208]) by mx.google.com with ESMTPS id g8sm2639523bkg.11.2010.12.06.10.03.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 06 Dec 2010 10:03:25 -0800 (PST) To: Reinhard Meyer References: <4CE5D0EA.8070306@gmail.com> <4CFB609F.9030307@emk-elektronik.de> From: Guido Classen Date: Mon, 06 Dec 2010 19:03:37 +0100 In-Reply-To: <4CFB609F.9030307@emk-elektronik.de> (Reinhard Meyer's message of "Sun\, 05 Dec 2010 10\:51\:27 +0100") Message-ID: <87wrnmhj7q.fsf@tux-mobil.weiss-electronic.de> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (gnu/linux) MIME-Version: 1.0 Cc: u-boot@lists.denx.de Subject: Re: [U-Boot] [PATCH] AT91RM9200: fix AT91_PMC_MCKR_MDIV_* defines for this CPU 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 Dear Reinhard Meyer, please find below the git-format-patch generated patch. Sorry, I can not see whose thread I hijacked. May you please explain? Best Regards Guido Signed-off-by: Guido Classen --- arch/arm/include/asm/arch-at91/at91_pmc.h | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm/include/asm/arch-at91/at91_pmc.h b/arch/arm/include/asm/arch-at91/at91_pmc.h index 2f9ad96..fb8bb17 100644 --- a/arch/arm/include/asm/arch-at91/at91_pmc.h +++ b/arch/arm/include/asm/arch-at91/at91_pmc.h @@ -91,10 +91,18 @@ typedef struct at91_pmc { #define AT91_PMC_MCKR_PRES_64 0x00000018 #define AT91_PMC_MCKR_PRES_MASK 0x0000001C +#ifdef CONFIG_AT91RM9200 +#define AT91_PMC_MCKR_MDIV_1 0x00000000 +#define AT91_PMC_MCKR_MDIV_2 0x00000100 +#define AT91_PMC_MCKR_MDIV_3 0x00000200 +#define AT91_PMC_MCKR_MDIV_4 0x00000300 +#define AT91_PMC_MCKR_MDIV_MASK 0x00000300 +#else #define AT91_PMC_MCKR_MDIV_1 0x00000000 #define AT91_PMC_MCKR_MDIV_2 0x00000100 #define AT91_PMC_MCKR_MDIV_4 0x00000200 #define AT91_PMC_MCKR_MDIV_MASK 0x00000300 +#endif #define AT91_PMC_MCKR_PLLADIV_1 0x00001000 #define AT91_PMC_MCKR_PLLADIV_2 0x00002000