[U-Boot] [PATCH] powerpc: Add accessor macros for TCR[WPEXT] and TCR[FPEXT]

Wolfgang Denk wd at denx.de
Thu Mar 14 13:33:26 CET 2013


Dear Horst Kronstorfer,

In message <1363262105-15406-1-git-send-email-hkronsto at frequentis.com> you wrote:
> Information retrieved from EREF 2.0 (Rev.0 09/2011) pp.107-109.
> 
> Signed-off-by: Horst Kronstorfer <hkronsto at frequentis.com>
> ---
>  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 at denx.de
Backed up the system lately?


More information about the U-Boot mailing list