From: Sylvain Munaut <tnt@246tNt.com>
To: Paul Mackerras <paulus@samba.org>
Cc: Grant Likely <glikely@gmail.com>, Sylvain Munaut <tnt@246tNt.com>,
PowerPC dev list <Linuxppc-dev@ozlabs.org>
Subject: [PATCH 3/7] powerpc/ppc32: Update mpc52xx_psc structure with B revision changes
Date: Sun, 16 Sep 2007 12:53:26 +0200 [thread overview]
Message-ID: <11899400113868-git-send-email-tnt@246tNt.com> (raw)
In-Reply-To: <11899400103383-git-send-email-tnt@246tNt.com>
On the mpc5200b the ccr register is 32 bits wide while on the
mpc5200 it's only 16 bits. It's up to the driver to use the
correct format depending on the chip it's running on.
The 5200b also offers some more registers & status in AC97
mode. Again, if not running on a 5200b the driver should not
use those.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
---
include/asm-ppc/mpc52xx_psc.h | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/include/asm-ppc/mpc52xx_psc.h b/include/asm-ppc/mpc52xx_psc.h
index 9d850b2..c82b8d4 100644
--- a/include/asm-ppc/mpc52xx_psc.h
+++ b/include/asm-ppc/mpc52xx_psc.h
@@ -28,6 +28,10 @@
#define MPC52xx_PSC_MAXNUM 6
/* Programmable Serial Controller (PSC) status register bits */
+#define MPC52xx_PSC_SR_UNEX_RX 0x0001
+#define MPC52xx_PSC_SR_DATA_VAL 0x0002
+#define MPC52xx_PSC_SR_DATA_OVR 0x0004
+#define MPC52xx_PSC_SR_CMDSEND 0x0008
#define MPC52xx_PSC_SR_CDE 0x0080
#define MPC52xx_PSC_SR_RXRDY 0x0100
#define MPC52xx_PSC_SR_RXFULL 0x0200
@@ -132,8 +136,10 @@ struct mpc52xx_psc {
u8 reserved5[3];
u8 ctlr; /* PSC + 0x1c */
u8 reserved6[3];
- u16 ccr; /* PSC + 0x20 */
- u8 reserved7[14];
+ 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 */
--
1.5.3
next prev parent reply other threads:[~2007-09-16 10:53 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-16 10:53 [PATCH 0/7] MPC52xx Bestcomm submission for 2.6.24 Sylvain Munaut
2007-09-16 10:53 ` [PATCH 1/7] powerpc: exports rheap symbol to modules Sylvain Munaut
2007-09-16 10:53 ` [PATCH 2/7] powerpc: Changes the config mechanism for rheap Sylvain Munaut
2007-09-16 15:59 ` Kumar Gala
2007-09-16 10:53 ` Sylvain Munaut [this message]
2007-09-16 10:53 ` [PATCH 4/7] powerpc: BestComm core support for Freescale MPC5200 Sylvain Munaut
2007-09-16 12:31 ` Stephen Rothwell
2007-09-16 16:07 ` Kumar Gala
2007-09-17 8:57 ` Matt Sealey
2007-09-16 10:53 ` [PATCH 5/7] powerpc: BestComm ATA task support Sylvain Munaut
2007-09-16 10:53 ` [PATCH 6/7] powerpc: BestComm FEC " Sylvain Munaut
2007-09-16 10:53 ` [PATCH 7/7] powerpc: BestComm GenBD " Sylvain Munaut
2007-09-18 2:15 ` [PATCH 0/7] MPC52xx Bestcomm submission for 2.6.24 Jon Smirl
2007-09-18 4:29 ` tnt
2007-09-18 14:11 ` Kumar Gala
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=11899400113868-git-send-email-tnt@246tNt.com \
--to=tnt@246tnt.com \
--cc=Linuxppc-dev@ozlabs.org \
--cc=glikely@gmail.com \
--cc=paulus@samba.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).