⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sa-1100.h

📁 F:worksip2440a board可启动u-boot-like.tar.gz F:worksip2440a board可启动u-boot-like.tar.gz
💻 H
📖 第 1 页 / 共 5 页
字号:
#define HSCR0_TXE	0x00000008	/* Transmit Enable                 */#define HSCR0_RXE	0x00000010	/* Receive Enable                  */#define HSCR0_RIE	0x00000020	/* Receive FIFO 2/5-to-3/5-full or */					/* more Interrupt Enable           */#define HSCR0_TIE	0x00000040	/* Transmit FIFO 1/2-full or less  */					/* Interrupt Enable                */#define HSCR0_AME	0x00000080	/* Address Match Enable            */#define HSCR1_AMV	Fld (8, 0)	/* Address Match Value             */#define HSDR_DATA	Fld (8, 0)	/* receive/transmit DATA FIFOs     */#if 0           	        	/* Hidden receive FIFO bits        */#define HSDR_EOF	0x00000100	/*  receive End-Of-Frame (read)    */#define HSDR_CRE	0x00000200	/*  receive CRC Error (read)       */#define HSDR_ROR	0x00000400	/*  Receive FIFO Over-Run (read)   */#endif /* 0 */#define HSSR0_EIF	0x00000001	/* Error In FIFO (read)            */#define HSSR0_TUR	0x00000002	/* Transmit FIFO Under-Run         */#define HSSR0_RAB	0x00000004	/* Receive ABort                   */#define HSSR0_TFS	0x00000008	/* Transmit FIFO 1/2-full or less  */					/* Service request (read)          */#define HSSR0_RFS	0x00000010	/* Receive FIFO 2/5-to-3/5-full or */					/* more Service request (read)     */#define HSSR0_FRE	0x00000020	/* receive FRaming Error           */#define HSSR1_RSY	0x00000001	/* Receiver SYnchronized (read)    */#define HSSR1_TBY	0x00000002	/* Transmitter BusY (read)         */#define HSSR1_RNE	0x00000004	/* Receive FIFO Not Empty (read)   */#define HSSR1_TNF	0x00000008	/* Transmit FIFO Not Full (read)   */#define HSSR1_EOF	0x00000010	/* receive End-Of-Frame (read)     */#define HSSR1_CRE	0x00000020	/* receive CRC Error (read)        */#define HSSR1_ROR	0x00000040	/* Receive FIFO Over-Run (read)    */#define HSCR2_TXP	0x00040000	/* Transmit data Polarity (TXD_2)  */#define HSCR2_TrDataL	(HSCR2_TXP*0)	/*  Transmit Data active Low       */					/*  (inverted)                     */#define HSCR2_TrDataH	(HSCR2_TXP*1)	/*  Transmit Data active High      */					/*  (non-inverted)                 */#define HSCR2_RXP	0x00080000	/* Receive data Polarity (RXD_2)   */#define HSCR2_RcDataL	(HSCR2_RXP*0)	/*  Receive Data active Low        */					/*  (inverted)                     */#define HSCR2_RcDataH	(HSCR2_RXP*1)	/*  Receive Data active High       */					/*  (non-inverted)                 *//* * Multi-media Communications Port (MCP) control registers * * Registers *    Ser4MCCR0 	Serial port 4 Multi-media Communications Port (MCP) *              	Control Register 0 (read/write). *    Ser4MCDR0 	Serial port 4 Multi-media Communications Port (MCP) *              	Data Register 0 (audio, read/write). *    Ser4MCDR1 	Serial port 4 Multi-media Communications Port (MCP) *              	Data Register 1 (telecom, read/write). *    Ser4MCDR2 	Serial port 4 Multi-media Communications Port (MCP) *              	Data Register 2 (CODEC registers, read/write). *    Ser4MCSR  	Serial port 4 Multi-media Communications Port (MCP) *              	Status Register (read/write). *    Ser4MCCR1 	Serial port 4 Multi-media Communications Port (MCP) *              	Control Register 1 (read/write). *              	[The MCCR1 register is only implemented in *              	versions 2.0 (rev. = 8) and higher of the StrongARM *              	SA-1100.] * * Clocks *    fmc, Tmc  	Frequency, period of the MCP communication (10 MHz, *              	12 MHz, or GPIO [21]). *    faud, Taud	Frequency, period of the audio sampling. *    ftcm, Ttcm	Frequency, period of the telecom sampling. */#define _Ser4MCCR0	0x80060000	/* Ser. port 4 MCP Control Reg. 0  */#define _Ser4MCDR0	0x80060008	/* Ser. port 4 MCP Data Reg. 0     */					/* (audio)                         */#define _Ser4MCDR1	0x8006000C	/* Ser. port 4 MCP Data Reg. 1     */					/* (telecom)                       */#define _Ser4MCDR2	0x80060010	/* Ser. port 4 MCP Data Reg. 2     */					/* (CODEC reg.)                    */#define _Ser4MCSR	0x80060018	/* Ser. port 4 MCP Status Reg.     */#define _Ser4MCCR1	0x90060030	/* Ser. port 4 MCP Control Reg. 1  */#if LANGUAGE == C#define Ser4MCCR0	        	/* Ser. port 4 MCP Control Reg. 0  */ \			(*((volatile Word *) io_p2v (_Ser4MCCR0)))#define Ser4MCDR0	        	/* Ser. port 4 MCP Data Reg. 0     */ \					/* (audio)                         */ \			(*((volatile Word *) io_p2v (_Ser4MCDR0)))#define Ser4MCDR1	        	/* Ser. port 4 MCP Data Reg. 1     */ \					/* (telecom)                       */ \			(*((volatile Word *) io_p2v (_Ser4MCDR1)))#define Ser4MCDR2	        	/* Ser. port 4 MCP Data Reg. 2     */ \					/* (CODEC reg.)                    */ \			(*((volatile Word *) io_p2v (_Ser4MCDR2)))#define Ser4MCSR	        	/* Ser. port 4 MCP Status Reg.     */ \			(*((volatile Word *) io_p2v (_Ser4MCSR)))#define Ser4MCCR1	        	/* Ser. port 4 MCP Control Reg. 1  */ \			(*((volatile Word *) io_p2v (_Ser4MCCR1)))#endif /* LANGUAGE == C */#define MCCR0_ASD	Fld (7, 0)	/* Audio Sampling rate Divisor/32  */					/* [6..127]                        */					/* faud = fmc/(32*ASD)             */					/* Taud = 32*ASD*Tmc               */#define MCCR0_AudSmpDiv(Div)    	/*  Audio Sampling rate Divisor    */ \					/*  [192..4064]                    */ \			((Div)/32 << FShft (MCCR0_ASD))					/*  faud = fmc/(32*Floor (Div/32)) */					/*  Taud = 32*Floor (Div/32)*Tmc   */#define MCCR0_CeilAudSmpDiv(Div)	/*  Ceil. of AudSmpDiv [192..4064] */ \			(((Div) + 31)/32 << FShft (MCCR0_ASD))					/*  faud = fmc/(32*Ceil (Div/32))  */					/*  Taud = 32*Ceil (Div/32)*Tmc    */#define MCCR0_TSD	Fld (7, 8)	/* Telecom Sampling rate           */					/* Divisor/32 [16..127]            */					/* ftcm = fmc/(32*TSD)             */					/* Ttcm = 32*TSD*Tmc               */#define MCCR0_TcmSmpDiv(Div)    	/*  Telecom Sampling rate Divisor  */ \					/*  [512..4064]                    */ \			((Div)/32 << FShft (MCCR0_TSD))					/*  ftcm = fmc/(32*Floor (Div/32)) */					/*  Ttcm = 32*Floor (Div/32)*Tmc   */#define MCCR0_CeilTcmSmpDiv(Div)	/*  Ceil. of TcmSmpDiv [512..4064] */ \			(((Div) + 31)/32 << FShft (MCCR0_TSD))					/*  ftcm = fmc/(32*Ceil (Div/32))  */					/*  Ttcm = 32*Ceil (Div/32)*Tmc    */#define MCCR0_MCE	0x00010000	/* MCP Enable                      */#define MCCR0_ECS	0x00020000	/* External Clock Select           */#define MCCR0_IntClk	(MCCR0_ECS*0)	/*  Internal Clock (10 or 12 MHz)  */#define MCCR0_ExtClk	(MCCR0_ECS*1)	/*  External Clock (GPIO [21])     */#define MCCR0_ADM	0x00040000	/* A/D (audio/telecom) data        */					/* sampling/storing Mode           */#define MCCR0_VldBit	(MCCR0_ADM*0)	/*  Valid Bit storing mode         */#define MCCR0_SmpCnt	(MCCR0_ADM*1)	/*  Sampling Counter storing mode  */#define MCCR0_TTE	0x00080000	/* Telecom Transmit FIFO 1/2-full  */					/* or less interrupt Enable        */#define MCCR0_TRE	0x00100000	/* Telecom Receive FIFO 1/2-full   */					/* or more interrupt Enable        */#define MCCR0_ATE	0x00200000	/* Audio Transmit FIFO 1/2-full    */					/* or less interrupt Enable        */#define MCCR0_ARE	0x00400000	/* Audio Receive FIFO 1/2-full or  */					/* more interrupt Enable           */#define MCCR0_LBM	0x00800000	/* Look-Back Mode                  */#define MCCR0_ECP	Fld (2, 24)	/* External Clock Prescaler - 1    */#define MCCR0_ExtClkDiv(Div)    	/*  External Clock Divisor [1..4]  */ \			(((Div) - 1) << FShft (MCCR0_ECP))#define MCDR0_DATA	Fld (12, 4)	/* receive/transmit audio DATA     */					/* FIFOs                           */#define MCDR1_DATA	Fld (14, 2)	/* receive/transmit telecom DATA   */					/* FIFOs                           */					/* receive/transmit CODEC reg.     */					/* FIFOs:                          */#define MCDR2_DATA	Fld (16, 0)	/*  reg. DATA                      */#define MCDR2_RW	0x00010000	/*  reg. Read/Write (transmit)     */#define MCDR2_Rd	(MCDR2_RW*0)	/*   reg. Read                     */#define MCDR2_Wr	(MCDR2_RW*1)	/*   reg. Write                    */#define MCDR2_ADD	Fld (4, 17)	/*  reg. ADDress                   */#define MCSR_ATS	0x00000001	/* Audio Transmit FIFO 1/2-full    */					/* or less Service request (read)  */#define MCSR_ARS	0x00000002	/* Audio Receive FIFO 1/2-full or  */					/* more Service request (read)     */#define MCSR_TTS	0x00000004	/* Telecom Transmit FIFO 1/2-full  */					/* or less Service request (read)  */#define MCSR_TRS	0x00000008	/* Telecom Receive FIFO 1/2-full   */					/* or more Service request (read)  */#define MCSR_ATU	0x00000010	/* Audio Transmit FIFO Under-run   */#define MCSR_ARO	0x00000020	/* Audio Receive FIFO Over-run     */#define MCSR_TTU	0x00000040	/* Telecom Transmit FIFO Under-run */#define MCSR_TRO	0x00000080	/* Telecom Receive FIFO Over-run   */#define MCSR_ANF	0x00000100	/* Audio transmit FIFO Not Full    */					/* (read)                          */#define MCSR_ANE	0x00000200	/* Audio receive FIFO Not Empty    */					/* (read)                          */#define MCSR_TNF	0x00000400	/* Telecom transmit FIFO Not Full  */					/* (read)                          */#define MCSR_TNE	0x00000800	/* Telecom receive FIFO Not Empty  */					/* (read)                          */#define MCSR_CWC	0x00001000	/* CODEC register Write Completed  */					/* (read)                          */#define MCSR_CRC	0x00002000	/* CODEC register Read Completed   */					/* (read)                          */#define MCSR_ACE	0x00004000	/* Audio CODEC Enabled (read)      */#define MCSR_TCE	0x00008000	/* Telecom CODEC Enabled (read)    */#define MCCR1_CFS	0x00100000	/* Clock Freq. Select              */#define MCCR1_F12MHz	(MCCR1_CFS*0)	/*  Freq. (fmc) = ~ 12 MHz         */					/*  (11.981 MHz)                   */#define MCCR1_F10MHz	(MCCR1_CFS*1)	/*  Freq. (fmc) = ~ 10 MHz         */					/*  (9.585 MHz)                    *//* * Synchronous Serial Port (SSP) control registers * * Registers *    Ser4SSCR0 	Serial port 4 Synchronous Serial Port (SSP) Control *              	Register 0 (read/write). *    Ser4SSCR1 	Serial port 4 Synchronous Serial Port (SSP) Control *              	Register 1 (read/write). *              	[Bits SPO and SP are only implemented in versions 2.0 *              	(rev. = 8) and higher of the StrongARM SA-1100.] *    Ser4SSDR  	Serial port 4 Synchronous Serial Port (SSP) Data *              	Register (read/write). *    Ser4SSSR  	Serial port 4 Synchronous Serial Port (SSP) Status *              	Register (read/write). * * Clocks *    fxtl, Txtl	Frequency, period of the system crystal (3.6864 MHz *              	or 3.5795 MHz). *    fss, Tss  	Frequency, period of the SSP communication. */#define _Ser4SSCR0	0x80070060	/* Ser. port 4 SSP Control Reg. 0  */#define _Ser4SSCR1	0x80070064	/* Ser. port 4 SSP Control Reg. 1  */#define _Ser4SSDR	0x8007006C	/* Ser. port 4 SSP Data Reg.       */#define _Ser4SSSR	0x80070074	/* Ser. port 4 SSP Status Reg.     */#if LANGUAGE == C#define Ser4SSCR0	        	/* Ser. port 4 SSP Control Reg. 0  */ \			(*((volatile Word *) io_p2v (_Ser4SSCR0)))#define Ser4SSCR1	        	/* Ser. port 4 SSP Control Reg. 1  */ \			(*((volatile Word *) io_p2v (_Ser4SSCR1)))#define Ser4SSDR	        	/* Ser. port 4 SSP Data Reg.       */ \			(*((volatile Word *) io_p2v (_Ser4SSDR)))#define Ser4SSSR	        	/* Ser. port 4 SSP Status Reg.     */ \			(*((volatile Word *) io_p2v (_Ser4SSSR)))#endif /* LANGUAGE == C */#define SSCR0_DSS	Fld (4, 0)	/* Data Size - 1 Select [3..15]    */#define SSCR0_DataSize(Size)    	/*  Data Size Select [4..16]       */ \			(((Size) - 1) << FShft (SSCR0_DSS))#define SSCR0_FRF	Fld (2, 4)	/* FRame Format                    */#define SSCR0_Motorola	        	/*  Motorola Serial Peripheral     */ \					/*  Interface (SPI) format         */ \			(0 << FShft (SSCR0_FRF))#define SSCR0_TI	        	/*  Texas Instruments Synchronous  */ \					/*  Serial format                  */ \			(1 << FShft (SSCR0_FRF))#define SSCR0_National	        	/*  National Microwire format      */ \			(2 << FShft (SSCR0_FRF))#define SSCR0_SSE	0x00000080	/* SSP Enable                      */#define SSCR0_SCR	Fld (8, 8)	/* Serial Clock Rate divisor/2 - 1 */					/* fss = fxtl/(2*(SCR + 1))        */					/* Tss = 2*(SCR + 1)*Txtl          */#define SSCR0_SerClkDiv(Div)    	/*  Serial Clock Divisor [2..512]  */ \			(((Div) - 2)/2 << FShft (SSCR0_SCR))					/*  fss = fxtl/(2*Floor (Div/2))   */					/*  Tss = 2*Floor (Div/2)*Txtl     */#define SSCR0_CeilSerClkDiv(Div)	/*  Ceil. of SerClkDiv [2..512]    */ \			(((Div) - 1)/2 << FShft (SSCR0_SCR))					/*  fss = fxtl/(2*Ceil (Div/2))    */					/*  Tss = 2*Ceil (Div/2)*Txtl      */#define SSCR1_RIE	0x00000001	/* Receive FIFO 1/2-full or more   */					/* Interrupt Enable                */#define SSCR1_TIE	0x00000002	/* Transmit FIFO 1/2-full or less  */					/* Interrupt Enable                */#define SSCR1_LBM	0x00000004	/* Look-Back Mode                  */#define SSCR1_SPO	0x00000008	/* Sample clock (SCLK) POlarity    */#define SSCR1_SClkIactL	(SSCR1_SPO*0)	/*  Sample Clock Inactive Low      */#define SSCR1_SClkIactH	(SSCR1_SPO*1)	/*  Sample Clock Inactive High     */#define SSCR1_SP	0x00000010	/* Sample clock (SCLK) Phase       */#define SSCR1_SClk1P	(SSCR1_SP*0)	/*  Sample Clock active 1 Period   */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -