linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 1/4] powerpc/fsl: add E6500 PVR and SPRN_PWRMGTCR0 define
@ 2013-10-15  9:21 Dongsheng Wang
  2013-10-15  9:21 ` [PATCH v5 2/4] powerpc/85xx: add hardware automatically enter altivec idle state Dongsheng Wang
                   ` (2 more replies)
  0 siblings, 3 replies; 34+ messages in thread
From: Dongsheng Wang @ 2013-10-15  9:21 UTC (permalink / raw)
  To: scottwood; +Cc: bharat.bhushan, linuxppc-dev, Wang Dongsheng

From: Wang Dongsheng <dongsheng.wang@freescale.com>

E6500 PVR and SPRN_PWRMGTCR0 will be used in subsequent pw20/altivec
idle patches.

Signed-off-by: Wang Dongsheng <dongsheng.wang@freescale.com>
---
*v3:
Add bit definitions for PWRMGTCR0.

 arch/powerpc/include/asm/reg.h       | 2 ++
 arch/powerpc/include/asm/reg_booke.h | 9 +++++++++
 2 files changed, 11 insertions(+)

diff --git a/arch/powerpc/include/asm/reg.h b/arch/powerpc/include/asm/reg.h
index 64264bf..d4160ca 100644
--- a/arch/powerpc/include/asm/reg.h
+++ b/arch/powerpc/include/asm/reg.h
@@ -1053,6 +1053,8 @@
 #define PVR_8560	0x80200000
 #define PVR_VER_E500V1	0x8020
 #define PVR_VER_E500V2	0x8021
+#define PVR_VER_E6500	0x8040
+
 /*
  * For the 8xx processors, all of them report the same PVR family for
  * the PowerPC core. The various versions of these processors must be
diff --git a/arch/powerpc/include/asm/reg_booke.h b/arch/powerpc/include/asm/reg_booke.h
index ed8f836..4a6457e 100644
--- a/arch/powerpc/include/asm/reg_booke.h
+++ b/arch/powerpc/include/asm/reg_booke.h
@@ -170,6 +170,7 @@
 #define SPRN_L2CSR1	0x3FA	/* L2 Data Cache Control and Status Register 1 */
 #define SPRN_DCCR	0x3FA	/* Data Cache Cacheability Register */
 #define SPRN_ICCR	0x3FB	/* Instruction Cache Cacheability Register */
+#define SPRN_PWRMGTCR0	0x3FB	/* Power management control register 0 */
 #define SPRN_SVR	0x3FF	/* System Version Register */
 
 /*
@@ -216,6 +217,14 @@
 #define	CCR1_DPC	0x00000100 /* Disable L1 I-Cache/D-Cache parity checking */
 #define	CCR1_TCS	0x00000080 /* Timer Clock Select */
 
+/* Bit definitions for PWRMGTCR0. */
+#define PWRMGTCR0_PW20_WAIT		(1 << 14) /* PW20 state enable bit */
+#define PWRMGTCR0_PW20_ENT_SHIFT	8
+#define PWRMGTCR0_PW20_ENT		0x3F00
+#define PWRMGTCR0_AV_IDLE_PD_EN		(1 << 22) /* Altivec idle enable */
+#define PWRMGTCR0_AV_IDLE_CNT_SHIFT	16
+#define PWRMGTCR0_AV_IDLE_CNT		0x3F0000
+
 /* Bit definitions for the MCSR. */
 #define MCSR_MCS	0x80000000 /* Machine Check Summary */
 #define MCSR_IB		0x40000000 /* Instruction PLB Error */
-- 
1.8.0

^ permalink raw reply related	[flat|nested] 34+ messages in thread

end of thread, other threads:[~2013-12-16 18:26 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-15  9:21 [PATCH v5 1/4] powerpc/fsl: add E6500 PVR and SPRN_PWRMGTCR0 define Dongsheng Wang
2013-10-15  9:21 ` [PATCH v5 2/4] powerpc/85xx: add hardware automatically enter altivec idle state Dongsheng Wang
2013-10-15  9:21 ` [PATCH v5 3/4] powerpc/85xx: add hardware automatically enter pw20 state Dongsheng Wang
2013-10-15  9:21 ` [PATCH v5 4/4] powerpc/85xx: add sysfs for pw20 state and altivec idle Dongsheng Wang
2013-10-16 17:01   ` Bhushan Bharat-R65777
2013-10-17  2:46     ` Wang Dongsheng-B40534
2013-10-17  3:19       ` Bhushan Bharat-R65777
2013-10-17  5:51         ` Wang Dongsheng-B40534
2013-10-17  6:00           ` Bhushan Bharat-R65777
2013-10-17  6:34             ` Wang Dongsheng-B40534
2013-10-17  6:45               ` Bhushan Bharat-R65777
2013-10-18  3:02                 ` Wang Dongsheng-B40534
2013-10-18 19:21                   ` Scott Wood
2013-10-18 19:24                     ` Bhushan Bharat-R65777
2013-10-21  3:10                     ` Wang Dongsheng-B40534
2013-11-04  4:04                     ` Dongsheng Wang
2013-11-04 21:51                       ` Scott Wood
2013-11-05  3:09                         ` Dongsheng Wang
2013-11-06  5:25                           ` Bharat Bhushan
2013-11-06  7:50                             ` Dongsheng Wang
2013-11-07  1:20                               ` Scott Wood
2013-11-07  2:17                                 ` Dongsheng Wang
2013-11-11  2:13                                 ` Dongsheng Wang
2013-11-11  4:11                                   ` Bharat Bhushan
2013-12-16  5:53                                     ` Dongsheng.Wang
2013-12-16 18:26                                       ` Scott Wood
2013-10-17 16:51           ` Scott Wood
2013-10-18  2:36             ` Wang Dongsheng-B40534
2013-10-18 17:49               ` Bhushan Bharat-R65777
2013-10-18 19:02                 ` Scott Wood
2013-10-18 19:23               ` Scott Wood
2013-10-21  3:27                 ` Wang Dongsheng-B40534
2013-11-04 23:47                   ` Scott Wood
2013-11-05  2:11                     ` Dongsheng Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).