powerpc: Add accessor macros for TCR[WPEXT] and TCR[FPEXT]
PATCH 1/1 powerpc: Add accessor macros for TCR[WPEXT] and TCR[FPEXT]
Information retrieved from EREF 2.0 (Rev.0 09/2011) pp.107-109.
--- arch/powerpc/include/asm/processor.h | 2 ++ 1 file changed, 2 insertions(+)
arch/powerpc/include/asm/processor.h +2 -0
@@ -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)
Signature · 1 line
1.8.2
PATCH 1/1 powerpc: Add accessor macros for TCR[WPEXT] and TCR[FPEXT]
Dear Horst Kronstorfer,
Quoted 12 lines · In message <[email protected]> you…
Information retrieved from EREF 2.0 (Rev.0 09/2011) pp.107-109.
Signed-off-by Horst Kronstorfer <[email protected]>--- arch/powerpc/include/asm/processor.h | 2 ++ 1 file changed, 2 insertions(+)arch/powerpc/include/asm/processor.h +0
-0
arch/powerpc/include/asm/processor.h line 403
Quoted 5 lines
arch/powerpc/include/asm/processor.h +2
-0@@ -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
Signature · 4 lines
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: [email protected] Backed up the system lately?
A message that is not in the archive (sent off-list or not yet received): 024FE3275EF7814D9B07390F28C0832C704F57D8@vie196nt
PATCH 1/1 powerpc: Add accessor macros for TCR[WPEXT] and TCR[FPEXT]
Dear KRONSTORFER Horst,
Quoted 9 lines · In message <024FE3275EF7814D9B07390F28C0832C704F57D8@vie196nt> you wrote:
Quoted 6 lines
arch/powerpc/include/asm/processor.h line 403
Quoted 3 lines
arch/powerpc/include/asm/processor.h +2
-0+#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?
i'm currently working on setting up/enabling the e500 wdt ... probably should have sent it in the according series.
Indeed.
[And please don't full-quote].
Thanks.
Wolfgang Denk
Signature · 4 lines
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 God is real, unless declared integer.