From: Wolfgang Denk Date: Thu, 14 Mar 2013 13:33:26 +0100 Subject: [U-Boot] [PATCH] powerpc: Add accessor macros for TCR[WPEXT] and TCR[FPEXT] In-Reply-To: <1363262105-15406-1-git-send-email-hkronsto@frequentis.com> References: <1363262105-15406-1-git-send-email-hkronsto@frequentis.com> Message-ID: <20130314123326.9E58C2005BB@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Horst Kronstorfer, In message <1363262105-15406-1-git-send-email-hkronsto@frequentis.com> you wrote: > 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 */ Are these defines actually used anywhere, or are you just adding dead code? Probably the latter, as I don't remember any compile errors with such names? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de Backed up the system lately?