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

Horst Kronstorfer hkronsto at frequentis.com
Thu Mar 14 12:55:05 CET 2013


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 */
 #define SPRN_THRM1	0x3FC	/* Thermal Management Register 1 */
 #define   THRM1_TIN		(1<<0)
 #define   THRM1_TIV		(1<<1)
-- 
1.8.2



More information about the U-Boot mailing list