ColdFire: MCF5329 header file clean up

Signed-off-by: TsiChungLiew <Tsi-Chung.Liew@freescale.com>
This commit is contained in:
TsiChungLiew 2007-08-15 15:40:20 -05:00 committed by John Rigby
parent ab77bc547b
commit 7171977fb8
1 changed files with 1213 additions and 1578 deletions

View File

@ -186,25 +186,6 @@
#define CFATR_MODE (0x02)
#define CFATR_TYPE (0x01)
/*********************************************************************
*
* Random Number Generator (RNG)
*
*********************************************************************/
/* Bit definitions and macros for RNG_RNGCR */
#define RNGCR_CI (0x00000008)
#define RNGCR_IM (0x00000004)
#define RNGCR_HA (0x00000002)
#define RNGCR_GO (0x00000001)
/* Bit definitions and macros for RNG_RNGSR */
#define RNGSR_OFS(x) (((x)&0xFF)<<16)
#define RNGSR_OFL(x) (((x)&0xFF)<<8)
#define RNGSR_EI (0x00000008)
#define RNGSR_FUF (0x00000004)
#define RNGSR_LRS (0x00000002)
#define RNGSR_SV (0x00000001)
/*********************************************************************
* FlexBus Chip Selects (FBCS)
*********************************************************************/
@ -415,8 +396,6 @@
/* 49 - 61 Reserved */
#define INT0_HI_SCM (62)
/*#define INT1_HI_ */
/* Bit definitions and macros for INTC_IPRH */
#define INTC_IPRH_INT63 (0x80000000)
#define INTC_IPRH_INT62 (0x40000000)
@ -512,38 +491,6 @@
/* Bit definitions and macros for INTC_ICR */
#define INTC_ICR_IL(x) ((x)&0x07)
/*********************************************************************
* I2C Module (I2C)
*********************************************************************/
/* Bit definitions and macros for I2C_AR */
#define I2C_AR_ADR(x) (((x)&0x7F)<<1)
/* Bit definitions and macros for I2C_FDR */
#define I2C_FDR_IC(x) ((x)&0x3F)
/* Bit definitions and macros for I2C_CR */
#define I2C_CR_IEN (0x80)
#define I2C_CR_IIEN (0x40)
#define I2C_CR_MSTA (0x20)
#define I2C_CR_MTX (0x10)
#define I2C_CR_TXAK (0x08)
#define I2C_CR_RSTA (0x04)
/* Bit definitions and macros for I2C_SR */
#define I2C_SR_ICF (0x80)
#define I2C_SR_IAAS (0x40)
#define I2C_SR_IBB (0x20)
#define I2C_SR_IAL (0x10)
#define I2C_SR_SRW (0x04)
#define I2C_SR_IIF (0x02)
#define I2C_SR_RXAK (0x01)
/* Bit definitions and macros for I2C_ICR */
#define I2C_ICR_BNBE (0x08)
#define I2C_ICR_TE (0x04)
#define I2C_ICR_RE (0x02)
#define I2C_ICR_IE (0x01)
/*********************************************************************
* Queued Serial Peripheral Interface (QSPI)
*********************************************************************/
@ -1515,318 +1462,6 @@
#define LCDC_LGWDCR_GWHM(x) (((x)&0x0000001F)<<16)
#define LCDC_LGWDCR_GWBT (0x80000000)
/* Bit definitions and macros for LCDC_BPLUT_BASE */
#define LCDC_BPLUT_BASE_BASE(x) (((x)&0xFFFFFFFF)<<0)
/* Bit definitions and macros for LCDC_GWLUT_BASE */
#define LCDC_GWLUT_BASE_BASE(x) (((x)&0xFFFFFFFF)<<0)
/* not done yet */
/*********************************************************************
* USB Controller (USB)
*********************************************************************/
/* Bit definitions and macros for USB_HCSPARAMS */
#define USB_HCSPARAMS_N_PORTS(x) ((x)&0x0000000F)
#define USB_HCSPARAMS_PPC (0x00000010)
#define USB_HCSPARAMS_N_PCC(x) (((x)&0x0000000F)<<8)
#define USB_HCSPARAMS_N_CC(x) (((x)&0x0000000F)<<12)
#define USB_HCSPARAMS_PI (0x00010000)
#define USB_HCSPARAMS_N_PTT(x) (((x)&0x0000000F)<<20)
#define USB_HCSPARAMS_N_TT(x) (((x)&0x0000000F)<<24)
/* Bit definitions and macros for USB_HCCPARAMS */
#define USB_HCCPARAMS_ADC (0x00000001)
#define USB_HCCPARAMS_PFL (0x00000002)
#define USB_HCCPARAMS_ASP (0x00000004)
#define USB_HCCPARAMS_IST(x) (((x)&0x0000000F)<<4)
#define USB_HCCPARAMS_EECP(x) (((x)&0x000000FF)<<8)
/* Bit definitions and macros for USB_DCIVERSION */
#define USB_DCIVERSION_DCIVERSION(x) (((x)&0xFFFF)<<0)
/* Bit definitions and macros for USB_DCCPARAMS */
#define USB_DCCPARAMS_DEN(x) (((x)&0x0000001F)<<0)
#define USB_DCCPARAMS_DC (0x00000080)
#define USB_DCCPARAMS_HC (0x00000100)
/* Bit definitions and macros for USB_USBCMD */
#define USB_USBCMD_RS (0x00000001)
#define USB_USBCMD_RST (0x00000002)
#define USB_USBCMD_FS0 (0x00000004)
#define USB_USBCMD_FS1 (0x00000008)
#define USB_USBCMD_PSE (0x00000010)
#define USB_USBCMD_ASE (0x00000020)
#define USB_USBCMD_IAA (0x00000040)
#define USB_USBCMD_LR (0x00000080)
#define USB_USBCMD_ASP(x) (((x)&0x00000003)<<8)
#define USB_USBCMD_ASPE (0x00000800)
#define USB_USBCMD_SUTW (0x00002000)
#define USB_USBCMD_ATDTW (0x00004000)
#define USB_USBCMD_FS2 (0x00008000)
#define USB_USBCMD_ITC(x) (((x)&0x000000FF)<<16)
#define USB_USBCMD_ITC_IMM (0x00000000)
#define USB_USBCMD_ITC_1 (0x00010000)
#define USB_USBCMD_ITC_2 (0x00020000)
#define USB_USBCMD_ITC_4 (0x00040000)
#define USB_USBCMD_ITC_8 (0x00080000)
#define USB_USBCMD_ITC_16 (0x00100000)
#define USB_USBCMD_ITC_32 (0x00200000)
#define USB_USBCMD_ITC_40 (0x00400000)
#define USB_USBCMD_FS_1024 (0x00000000)
#define USB_USBCMD_FS_512 (0x00000004)
#define USB_USBCMD_FS_256 (0x00000008)
#define USB_USBCMD_FS_128 (0x0000000C)
#define USB_USBCMD_FS_64 (0x00008000)
#define USB_USBCMD_FS_32 (0x00008004)
#define USB_USBCMD_FS_16 (0x00008008)
#define USB_USBCMD_FS_8 (0x0000800C)
/* Bit definitions and macros for USB_USBSTS */
#define USB_USBSTS_UI (0x00000001)
#define USB_USBSTS_UEI (0x00000002)
#define USB_USBSTS_PCI (0x00000004)
#define USB_USBSTS_FRI (0x00000008)
#define USB_USBSTS_SEI (0x00000010)
#define USB_USBSTS_AAI (0x00000020)
#define USB_USBSTS_URI (0x00000040)
#define USB_USBSTS_SRI (0x00000080)
#define USB_USBSTS_SLI (0x00000100)
#define USB_USBSTS_HCH (0x00001000)
#define USB_USBSTS_RCL (0x00002000)
#define USB_USBSTS_PS (0x00004000)
#define USB_USBSTS_AS (0x00008000)
/* Bit definitions and macros for USB_USBINTR */
#define USB_USBINTR_UE (0x00000001)
#define USB_USBINTR_UEE (0x00000002)
#define USB_USBINTR_PCE (0x00000004)
#define USB_USBINTR_FRE (0x00000008)
#define USB_USBINTR_SEE (0x00000010)
#define USB_USBINTR_AAE (0x00000020)
#define USB_USBINTR_URE (0x00000040)
#define USB_USBINTR_SRE (0x00000080)
#define USB_USBINTR_SLE (0x00000100)
/* Bit definitions and macros for USB_FRINDEX */
#define USB_FRINDEX_FRINDEX(x) (((x)&0x00003FFF)<<0)
/* Bit definitions and macros for USB_PERIODICLISTBASE */
#define USB_PERIODICLISTBASE_PERBASE(x) (((x)&0x000FFFFF)<<12)
/* Bit definitions and macros for USB_DEVICEADDR */
#define USB_DEVICEADDR_USBADR(x) (((x)&0x0000007F)<<25)
/* Bit definitions and macros for USB_ASYNCLISTADDR */
#define USB_ASYNCLISTADDR_ASYBASE(x) (((x)&0x07FFFFFF)<<5)
/* Bit definitions and macros for USB_EPLISTADDR */
#define USB_EPLISTADDR_EPBASE(x) (((x)&0x001FFFFF)<<11)
/* Bit definitions and macros for USB_ASNCTTSTS */
#define USB_ASNCTTSTS_TTAS (0x00000001)
#define USB_ASNCTTSTS_TTAC (0x00000002)
/* Bit definitions and macros for USB_BURSTSIZE */
#define USB_BURSTSIZE_RXPBURST(x) (((x)&0x000000FF)<<0)
#define USB_BURSTSIZE_TXPBURST(x) (((x)&0x000000FF)<<8)
/* Bit definitions and macros for USB_TXFILLTUNING */
#define USB_TXFILLTUNING_TXSCHOH(x) (((x)&0x000000FF)<<0)
#define USB_TXFILLTUNING_TXSCHHEALTH(x) (((x)&0x0000001F)<<8)
#define USB_TXFILLTUNING_TXFIFOTHRES(x) (((x)&0x0000003F)<<16)
/* Bit definitions and macros for USB_TXTTFILLTUNING */
#define USB_TXTTFILLTUNING_TXTTSCHOH(x) (((x)&0x0000001F)<<0)
#define USB_TXTTFILLTUNING_TXTTSCHHEALTH(x) (((x)&0x0000001F)<<8)
/* Bit definitions and macros for USB_ULPI_VIEWPORT */
#define USB_ULPI_VIEWPORT_ULPI_DATWR(x) (((x)&0x000000FF)<<0)
#define USB_ULPI_VIEWPORT_ULPI_DATRD(x) (((x)&0x000000FF)<<8)
#define USB_ULPI_VIEWPORT_ULPI_ADDR(x) (((x)&0x000000FF)<<16)
#define USB_ULPI_VIEWPORT_ULPI_PORT(x) (((x)&0x00000007)<<24)
#define USB_ULPI_VIEWPORT_ULPI_SS (0x08000000)
#define USB_ULPI_VIEWPORT_ULPI_RW (0x20000000)
#define USB_ULPI_VIEWPORT_ULPI_RUN (0x40000000)
#define USB_ULPI_VIEWPORT_ULPI_WU (0x80000000)
/* Bit definitions and macros for USB_CONFIGFLAG */
#define USB_CONFIGFLAG_CONFIGFLAG(x) (((x)&0xFFFFFFFF)<<0)
/* Bit definitions and macros for USB_PORTSC */
#define USB_PORTSC_CCS (0x00000001)
#define USB_PORTSC_CSC (0x00000002)
#define USB_PORTSC_PE (0x00000004)
#define USB_PORTSC_PEC (0x00000008)
#define USB_PORTSC_OCA (0x00000010)
#define USB_PORTSC_OCC (0x00000020)
#define USB_PORTSC_FPR (0x00000040)
#define USB_PORTSC_SUSP (0x00000080)
#define USB_PORTSC_PR (0x00000100)
#define USB_PORTSC_LS(x) (((x)&0x00000003)<<10)
#define USB_PORTSC_PP (0x00001000)
#define USB_PORTSC_PO (0x00002000)
#define USB_PORTSC_PIC(x) (((x)&0x00000003)<<14)
#define USB_PORTSC_PTC(x) (((x)&0x0000000F)<<16)
#define USB_PORTSC_WLCN (0x00100000)
#define USB_PORTSC_WKDS (0x00200000)
#define USB_PORTSC_WKOC (0x00400000)
#define USB_PORTSC_PHCD (0x00800000)
#define USB_PORTSC_PFSC (0x01000000)
#define USB_PORTSC_PSPD(x) (((x)&0x00000003)<<26)
#define USB_PORTSC_PTS(x) (((x)&0x00000003)<<30)
#define USB_PORTSC_PTS_ULPI (0x80000000)
#define USB_PORTSC_PTS_FS_LS (0xC0000000)
#define USB_PORTSC_PSPD_FULL (0x00000000)
#define USB_PORTSC_PSPD_LOW (0x04000000)
#define USB_PORTSC_PSPD_HIGH (0x08000000)
#define USB_PORTSC_PTC_DISBALE (0x00000000)
#define USB_PORTSC_PTC_JSTATE (0x00010000)
#define USB_PORTSC_PTC_KSTATE (0x00020000)
#define USB_PORTSC_PTC_SEQ_NAK (0x00030000)
#define USB_PORTSC_PTC_PACKET (0x00040000)
#define USB_PORTSC_PTC_FORCE_ENABLE (0x00050000)
#define USB_PORTSC_PIC_OFF (0x00000000)
#define USB_PORTSC_PIC_AMBER (0x00004000)
#define USB_PORTSC_PIC_GREEN (0x00008000)
#define USB_PORTSC_LS_SE0 (0x00000000)
#define USB_PORTSC_LS_JSTATE (0x00000400)
#define USB_PORTSC_LS_KSTATE (0x00000800)
/* Bit definitions and macros for USB_OTGSC */
#define USB_OTGSC_VD (0x00000001)
#define USB_OTGSC_VC (0x00000002)
#define USB_OTGSC_OT (0x00000008)
#define USB_OTGSC_DP (0x00000010)
#define USB_OTGSC_ID (0x00000100)
#define USB_OTGSC_AVV (0x00000200)
#define USB_OTGSC_ASV (0x00000400)
#define USB_OTGSC_BSV (0x00000800)
#define USB_OTGSC_BSE (0x00001000)
#define USB_OTGSC_1MST (0x00002000)
#define USB_OTGSC_DPS (0x00004000)
#define USB_OTGSC_IDIS (0x00010000)
#define USB_OTGSC_AVVIS (0x00020000)
#define USB_OTGSC_ASVIS (0x00040000)
#define USB_OTGSC_BSVIS (0x00080000)
#define USB_OTGSC_BSEIS (0x00100000)
#define USB_OTGSC_1MSS (0x00200000)
#define USB_OTGSC_DPIS (0x00400000)
#define USB_OTGSC_IDIE (0x01000000)
#define USB_OTGSC_AVVIE (0x02000000)
#define USB_OTGSC_ASVIE (0x04000000)
#define USB_OTGSC_BSVIE (0x08000000)
#define USB_OTGSC_BSEIE (0x10000000)
#define USB_OTGSC_1MSE (0x20000000)
#define USB_OTGSC_DPIE (0x40000000)
#define USB_OTGSC_CLEAR (0x007F0000)
#define USB_OTGSC_ENABLE_ALL (0x7F000000)
/* Bit definitions and macros for USB_USBMODE */
#define USB_USBMODE_CM(x) (((x)&0x00000003)<<0)
#define USB_USBMODE_SLOM (0x00000008)
#define USB_USBMODE_SDIS (0x00000010)
#define USB_USBMODE_CM_IDLE (0x00000000)
#define USB_USBMODE_CM_DEVICE (0x00000002)
#define USB_USBMODE_CM_HOST (0x00000003)
#define USB_USBMODE_ES (0x00000004)
/* Bit definitions and macros for USB_EPSETUPSR */
#define USB_EPSETUPSR_EPSETUPSTAT(x) (((x)&0x0000003F)<<0)
/* Bit definitions and macros for USB_EPPRIME */
#define USB_EPPRIME_PERB(x) (((x)&0x0000003F)<<0)
#define USB_EPPRIME_PETB(x) (((x)&0x0000003F)<<16)
#define USB_EPPRIME_PETB0 (0x00010000)
#define USB_EPPRIME_PETB1 (0x00020000)
#define USB_EPPRIME_PETB2 (0x00040000)
#define USB_EPPRIME_PETB3 (0x00080000)
#define USB_EPPRIME_PETB4 (0x00100000)
#define USB_EPPRIME_PETB5 (0x00200000)
#define USB_EPPRIME_PERB0 (0x00000001)
#define USB_EPPRIME_PERB1 (0x00000002)
#define USB_EPPRIME_PERB2 (0x00000004)
#define USB_EPPRIME_PERB3 (0x00000008)
#define USB_EPPRIME_PERB4 (0x00000010)
#define USB_EPPRIME_PERB5 (0x00000020)
/* Bit definitions and macros for USB_EPFLUSH */
#define USB_EPFLUSH_FERB(x) (((x)&0x0000003F)<<0)
#define USB_EPFLUSH_FETB(x) (((x)&0x0000003F)<<16)
#define USB_EPFLUSH_FETB0 (0x00010000)
#define USB_EPFLUSH_FETB1 (0x00020000)
#define USB_EPFLUSH_FETB2 (0x00040000)
#define USB_EPFLUSH_FETB3 (0x00080000)
#define USB_EPFLUSH_FETB4 (0x00100000)
#define USB_EPFLUSH_FETB5 (0x00200000)
#define USB_EPFLUSH_FERB0 (0x00000001)
#define USB_EPFLUSH_FERB1 (0x00000002)
#define USB_EPFLUSH_FERB2 (0x00000004)
#define USB_EPFLUSH_FERB3 (0x00000008)
#define USB_EPFLUSH_FERB4 (0x00000010)
#define USB_EPFLUSH_FERB5 (0x00000020)
/* Bit definitions and macros for USB_EPSR */
#define USB_EPSR_ERBR(x) (((x)&0x0000003F)<<0)
#define USB_EPSR_ETBR(x) (((x)&0x0000003F)<<16)
#define USB_EPSR_ETBR0 (0x00010000)
#define USB_EPSR_ETBR1 (0x00020000)
#define USB_EPSR_ETBR2 (0x00040000)
#define USB_EPSR_ETBR3 (0x00080000)
#define USB_EPSR_ETBR4 (0x00100000)
#define USB_EPSR_ETBR5 (0x00200000)
#define USB_EPSR_ERBR0 (0x00000001)
#define USB_EPSR_ERBR1 (0x00000002)
#define USB_EPSR_ERBR2 (0x00000004)
#define USB_EPSR_ERBR3 (0x00000008)
#define USB_EPSR_ERBR4 (0x00000010)
#define USB_EPSR_ERBR5 (0x00000020)
/* Bit definitions and macros for USB_EPCOMPLETE */
#define USB_EPCOMPLETE_ERCE(x) (((x)&0x0000003F)<<0)
#define USB_EPCOMPLETE_ETCE(x) (((x)&0x0000003F)<<16)
#define USB_EPCOMPLETE_ETCE0 (0x00010000)
#define USB_EPCOMPLETE_ETCE1 (0x00020000)
#define USB_EPCOMPLETE_ETCE2 (0x00040000)
#define USB_EPCOMPLETE_ETCE3 (0x00080000)
#define USB_EPCOMPLETE_ETCE4 (0x00100000)
#define USB_EPCOMPLETE_ETCE5 (0x00200000)
#define USB_EPCOMPLETE_ERCE0 (0x00000001)
#define USB_EPCOMPLETE_ERCE1 (0x00000002)
#define USB_EPCOMPLETE_ERCE2 (0x00000004)
#define USB_EPCOMPLETE_ERCE3 (0x00000008)
#define USB_EPCOMPLETE_ERCE4 (0x00000010)
#define USB_EPCOMPLETE_ERCE5 (0x00000020)
/* Bit definitions and macros for USB_EPCR0 */
#define USB_EPCR0_RXS (0x00000001)
#define USB_EPCR0_RXT(x) (((x)&0x00000003)<<2)
#define USB_EPCR0_RXE (0x00000080)
#define USB_EPCR0_TXS (0x00010000)
#define USB_EPCR0_TXT(x) (((x)&0x00000003)<<18)
#define USB_EPCR0_TXE (0x00800000)
/* Bit definitions and macros for USB_EPCR */
#define USB_EPCR_RXS (0x00000001)
#define USB_EPCR_RXD (0x00000002)
#define USB_EPCR_RXT(x) (((x)&0x00000003)<<2)
#define USB_EPCR_RXI (0x00000020)
#define USB_EPCR_RXR (0x00000040)
#define USB_EPCR_RXE (0x00000080)
#define USB_EPCR_TXS (0x00010000)
#define USB_EPCR_TXD (0x00020000)
#define USB_EPCR_TXT(x) (((x)&0x00000003)<<18)
#define USB_EPCR_TXI (0x00200000)
#define USB_EPCR_TXR (0x00400000)
#define USB_EPCR_TXE (0x00800000)
#define USB_EPCR_TXT_CONTROL (0x00000000)
#define USB_EPCR_TXT_ISO (0x00040000)
#define USB_EPCR_TXT_BULK (0x00080000)
#define USB_EPCR_TXT_INT (0x000C0000)
#define USB_EPCR_RXT_CONTROL (0x00000000)
#define USB_EPCR_RXT_ISO (0x00000004)
#define USB_EPCR_RXT_BULK (0x00000008)
#define USB_EPCR_RXT_INT (0x0000000C)
/*********************************************************************
* SDRAM Controller (SDRAMC)
*********************************************************************/