From patchwork Thu Mar 14 11:55:05 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Horst Kronstorfer X-Patchwork-Id: 227638 X-Patchwork-Delegate: wd@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 A110A2C009C for ; Thu, 14 Mar 2013 23:06:15 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 82A0D4A16C; Thu, 14 Mar 2013 13:06:13 +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 RI7RQKewoF-g; Thu, 14 Mar 2013 13:06:13 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8D1E04A16D; Thu, 14 Mar 2013 13:06:11 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id AB2DD4A176 for ; Thu, 14 Mar 2013 13:06:08 +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 zuj6311kNYlj for ; Thu, 14 Mar 2013 13:06:08 +0100 (CET) X-Greylist: delayed 616 seconds by postgrey-1.27 at theia; Thu, 14 Mar 2013 13:06:00 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 mail1.frequentis.com (mail1.frequentis.com [195.20.158.50]) by theia.denx.de (Postfix) with ESMTPS id 1AA2E4A173 for ; Thu, 14 Mar 2013 13:06:00 +0100 (CET) X-IronPort-AV: E=Sophos;i="4.84,844,1355094000"; d="scan'208";a="15650413" Received: from vie190nt.frequentis.frq ([172.16.1.190]) by mail1.frequentis.com with ESMTP; 14 Mar 2013 12:55:38 +0100 Received: from ssg5ux.ssg.frequentis.frq (10.16.10.13) by VIE190NT.frequentis.frq (172.16.1.190) with Microsoft SMTP Server (TLS) id 14.2.328.9; Thu, 14 Mar 2013 12:55:38 +0100 Received: from hkronsto by ssg5ux.ssg.frequentis.frq with local (Exim 4.72) (envelope-from ) id 1UG6kz-00041A-R0; Thu, 14 Mar 2013 12:55:37 +0100 From: Horst Kronstorfer To: Date: Thu, 14 Mar 2013 12:55:05 +0100 Message-ID: <1363262105-15406-1-git-send-email-hkronsto@frequentis.com> X-Mailer: git-send-email 1.8.2 MIME-Version: 1.0 Subject: [U-Boot] [PATCH] powerpc: Add accessor macros for TCR[WPEXT] and TCR[FPEXT] 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 Information retrieved from EREF 2.0 (Rev.0 09/2011) pp.107-109. Signed-off-by: Horst Kronstorfer --- arch/powerpc/include/asm/processor.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/include/asm/processor.h b/arch/powerpc/include/asm/processor.h index 8c91f08..85bb9ed 100644 --- a/arch/powerpc/include/asm/processor.h +++ b/arch/powerpc/include/asm/processor.h @@ -399,6 +399,8 @@ #define FP_2_21 3 /* 2^21 clocks */ #define TCR_FIE 0x00800000 /* FIT Interrupt Enable */ #define TCR_ARE 0x00400000 /* Auto Reload Enable */ +#define TCR_WPEXT(x) (((x)&0xf)<<17) /* WDT Period Extension */ +#define TCR_FPEXT(x) (((x)&0xf)<<13) /* FIT Period Extension */ #define SPRN_THRM1 0x3FC /* Thermal Management Register 1 */ #define THRM1_TIN (1<<0) #define THRM1_TIV (1<<1)