Skip to contentSkip to conversation

Add more register definitions for the MPC52xx PSC

PATCH New Jon Smirl 1 participant 1 message Jul 21, 2008

lore
Share & tools
lore

Jon Smirl

author
#0 lore raw

PATCH 1/1 Add more register definitions for the MPC52xx PSC

Add more register definitions for the MPC52xx PSC

---

 include/asm-powerpc/mpc52xx_psc.h |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
include/asm-powerpc/mpc52xx_psc.h +6 -2
index 0985dc8..4639598 100644
@@ -162,8 +162,12 @@ struct mpc52xx_psc {
 	u8		reserved5[3];
 	u8		ctlr;		/* PSC + 0x1c */
 	u8		reserved6[3];
-	u16		ccr;		/* PSC + 0x20 */
-	u8		reserved7[14];
+	/* BitClkDiv field of CCR is byte swapped in 
+	 * the hardware for mpc5200/b compatibility */
+	u32		ccr;		/* PSC + 0x20 */
+	u32		ac97_slots;	/* PSC + 0x24 */
+	u32		ac97_cmd;	/* PSC + 0x28 */
+	u32		ac97_data;	/* PSC + 0x2c */
 	u8		ivr;		/* PSC + 0x30 */
 	u8		reserved8[3];
 	u8		ip;		/* PSC + 0x34 */