Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 175765
b: refs/heads/master
c: 8095298
h: refs/heads/master
i:
  175763: ae2cf63
v: v3
  • Loading branch information
Anton Vorontsov authored and Kumar Gala committed Nov 12, 2009
1 parent 8d5a7a8 commit 8033383
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 644b2a680ccc51a9ec4d6beb12e9d47d2dee98e2
refs/heads/master: 80952988a2c6f0aa73e9ec6554084446da8d8791
22 changes: 22 additions & 0 deletions trunk/arch/powerpc/include/asm/cpm.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,28 @@
#include <linux/types.h>
#include <linux/of.h>

/*
* USB Controller pram common to QE and CPM.
*/
struct usb_ctlr {
u8 usb_usmod;
u8 usb_usadr;
u8 usb_uscom;
u8 res1[1];
__be16 usb_usep[4];
u8 res2[4];
__be16 usb_usber;
u8 res3[2];
__be16 usb_usbmr;
u8 res4[1];
u8 usb_usbs;
/* Fields down below are QE-only */
__be16 usb_ussft;
u8 res5[2];
__be16 usb_usfrn;
u8 res6[0x22];
} __attribute__ ((packed));

/* Opcodes common to CPM1 and CPM2
*/
#define CPM_CR_INIT_TRX ((ushort)0x0000)
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/powerpc/include/asm/immap_cpm2.h
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ typedef struct comm_proc {

/* USB Controller.
*/
typedef struct usb_ctlr {
typedef struct cpm_usb_ctlr {
u8 usb_usmod;
u8 usb_usadr;
u8 usb_uscom;
Expand Down
8 changes: 4 additions & 4 deletions trunk/arch/powerpc/include/asm/immap_qe.h
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ struct sir {
} __attribute__ ((packed));

/* USB Controller */
struct usb_ctlr {
struct qe_usb_ctlr {
u8 usb_usmod;
u8 usb_usadr;
u8 usb_uscom;
Expand All @@ -229,7 +229,7 @@ struct usb_ctlr {
} __attribute__ ((packed));

/* MCC */
struct mcc {
struct qe_mcc {
__be32 mcce; /* MCC event register */
__be32 mccm; /* MCC mask register */
__be32 mccf; /* MCC configuration register */
Expand Down Expand Up @@ -431,9 +431,9 @@ struct qe_immap {
struct qe_mux qmx; /* QE Multiplexer */
struct qe_timers qet; /* QE Timers */
struct spi spi[0x2]; /* spi */
struct mcc mcc; /* mcc */
struct qe_mcc mcc; /* mcc */
struct qe_brg brg; /* brg */
struct usb_ctlr usb; /* USB */
struct qe_usb_ctlr usb; /* USB */
struct si1 si1; /* SI */
u8 res11[0x800];
struct sir sir; /* SI Routing Tables */
Expand Down

0 comments on commit 8033383

Please sign in to comment.