| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137 | /* *	FILE    	SA-1100.h * *	Version 	1.2 *	Author  	Copyright (c) Marc A. Viredaz, 1998 *	        	DEC Western Research Laboratory, Palo Alto, CA *	Date    	January 1998 (April 1997) *	System  	StrongARM SA-1100 *	Language	C or ARM Assembly *	Purpose 	Definition of constants related to the StrongARM *	        	SA-1100 microprocessor (Advanced RISC Machine (ARM) *	        	architecture version 4). This file is based on the *	        	StrongARM SA-1100 data sheet version 2.2. * *//* Be sure that virtual mapping is defined right */#ifndef __ASM_ARCH_HARDWARE_H#error You must include hardware.h not SA-1100.h#endif#include "bitfield.h"/* * SA1100 CS line to physical address */#define SA1100_CS0_PHYS	0x00000000#define SA1100_CS1_PHYS	0x08000000#define SA1100_CS2_PHYS	0x10000000#define SA1100_CS3_PHYS	0x18000000#define SA1100_CS4_PHYS	0x40000000#define SA1100_CS5_PHYS	0x48000000/* * Personal Computer Memory Card International Association (PCMCIA) sockets */#define PCMCIAPrtSp	0x04000000	/* PCMCIA Partition Space [byte]   */#define PCMCIASp	(4*PCMCIAPrtSp)	/* PCMCIA Space [byte]             */#define PCMCIAIOSp	PCMCIAPrtSp	/* PCMCIA I/O Space [byte]         */#define PCMCIAAttrSp	PCMCIAPrtSp	/* PCMCIA Attribute Space [byte]   */#define PCMCIAMemSp	PCMCIAPrtSp	/* PCMCIA Memory Space [byte]      */#define PCMCIA0Sp	PCMCIASp	/* PCMCIA 0 Space [byte]           */#define PCMCIA0IOSp	PCMCIAIOSp	/* PCMCIA 0 I/O Space [byte]       */#define PCMCIA0AttrSp	PCMCIAAttrSp	/* PCMCIA 0 Attribute Space [byte] */#define PCMCIA0MemSp	PCMCIAMemSp	/* PCMCIA 0 Memory Space [byte]    */#define PCMCIA1Sp	PCMCIASp	/* PCMCIA 1 Space [byte]           */#define PCMCIA1IOSp	PCMCIAIOSp	/* PCMCIA 1 I/O Space [byte]       */#define PCMCIA1AttrSp	PCMCIAAttrSp	/* PCMCIA 1 Attribute Space [byte] */#define PCMCIA1MemSp	PCMCIAMemSp	/* PCMCIA 1 Memory Space [byte]    */#define _PCMCIA(Nb)	        	/* PCMCIA [0..1]                   */ \                	(0x20000000 + (Nb)*PCMCIASp)#define _PCMCIAIO(Nb)	_PCMCIA (Nb)	/* PCMCIA I/O [0..1]               */#define _PCMCIAAttr(Nb)	        	/* PCMCIA Attribute [0..1]         */ \                	(_PCMCIA (Nb) + 2*PCMCIAPrtSp)#define _PCMCIAMem(Nb)	        	/* PCMCIA Memory [0..1]            */ \                	(_PCMCIA (Nb) + 3*PCMCIAPrtSp)#define _PCMCIA0	_PCMCIA (0)	/* PCMCIA 0                        */#define _PCMCIA0IO	_PCMCIAIO (0)	/* PCMCIA 0 I/O                    */#define _PCMCIA0Attr	_PCMCIAAttr (0)	/* PCMCIA 0 Attribute              */#define _PCMCIA0Mem	_PCMCIAMem (0)	/* PCMCIA 0 Memory                 */#define _PCMCIA1	_PCMCIA (1)	/* PCMCIA 1                        */#define _PCMCIA1IO	_PCMCIAIO (1)	/* PCMCIA 1 I/O                    */#define _PCMCIA1Attr	_PCMCIAAttr (1)	/* PCMCIA 1 Attribute              */#define _PCMCIA1Mem	_PCMCIAMem (1)	/* PCMCIA 1 Memory                 *//* * Universal Serial Bus (USB) Device Controller (UDC) control registers * * Registers *    Ser0UDCCR 	Serial port 0 Universal Serial Bus (USB) Device *              	Controller (UDC) Control Register (read/write). *    Ser0UDCAR 	Serial port 0 Universal Serial Bus (USB) Device *              	Controller (UDC) Address Register (read/write). *    Ser0UDCOMP	Serial port 0 Universal Serial Bus (USB) Device *              	Controller (UDC) Output Maximum Packet size register *              	(read/write). *    Ser0UDCIMP	Serial port 0 Universal Serial Bus (USB) Device *              	Controller (UDC) Input Maximum Packet size register *              	(read/write). *    Ser0UDCCS0	Serial port 0 Universal Serial Bus (USB) Device *              	Controller (UDC) Control/Status register end-point 0 *              	(read/write). *    Ser0UDCCS1	Serial port 0 Universal Serial Bus (USB) Device *              	Controller (UDC) Control/Status register end-point 1 *              	(output, read/write). *    Ser0UDCCS2	Serial port 0 Universal Serial Bus (USB) Device *              	Controller (UDC) Control/Status register end-point 2 *              	(input, read/write). *    Ser0UDCD0 	Serial port 0 Universal Serial Bus (USB) Device *              	Controller (UDC) Data register end-point 0 *              	(read/write). *    Ser0UDCWC 	Serial port 0 Universal Serial Bus (USB) Device *              	Controller (UDC) Write Count register end-point 0 *              	(read). *    Ser0UDCDR 	Serial port 0 Universal Serial Bus (USB) Device *              	Controller (UDC) Data Register (read/write). *    Ser0UDCSR 	Serial port 0 Universal Serial Bus (USB) Device *              	Controller (UDC) Status Register (read/write). */#define Ser0UDCCR	__REG(0x80000000)  /* Ser. port 0 UDC Control Reg. */#define Ser0UDCAR	__REG(0x80000004)  /* Ser. port 0 UDC Address Reg. */#define Ser0UDCOMP	__REG(0x80000008)  /* Ser. port 0 UDC Output Maximum Packet size reg. */#define Ser0UDCIMP	__REG(0x8000000C)  /* Ser. port 0 UDC Input Maximum Packet size reg. */#define Ser0UDCCS0	__REG(0x80000010)  /* Ser. port 0 UDC Control/Status reg. end-point 0 */#define Ser0UDCCS1	__REG(0x80000014)  /* Ser. port 0 UDC Control/Status reg. end-point 1 (output) */#define Ser0UDCCS2	__REG(0x80000018)  /* Ser. port 0 UDC Control/Status reg. end-point 2 (input) */#define Ser0UDCD0	__REG(0x8000001C)  /* Ser. port 0 UDC Data reg. end-point 0 */#define Ser0UDCWC	__REG(0x80000020)  /* Ser. port 0 UDC Write Count reg. end-point 0 */#define Ser0UDCDR	__REG(0x80000028)  /* Ser. port 0 UDC Data Reg. */#define Ser0UDCSR	__REG(0x80000030)  /* Ser. port 0 UDC Status Reg. */#define UDCCR_UDD	0x00000001	/* UDC Disable                     */#define UDCCR_UDA	0x00000002	/* UDC Active (read)               */#define UDCCR_RESIM	0x00000004	/* Resume Interrupt Mask, per errata */#define UDCCR_EIM	0x00000008	/* End-point 0 Interrupt Mask      */                	        	/* (disable)                       */#define UDCCR_RIM	0x00000010	/* Receive Interrupt Mask          */                	        	/* (disable)                       */#define UDCCR_TIM	0x00000020	/* Transmit Interrupt Mask         */                	        	/* (disable)                       */#define UDCCR_SRM	0x00000040	/* Suspend/Resume interrupt Mask   */                	        	/* (disable)                       */#define UDCCR_SUSIM	UDCCR_SRM	/* Per errata, SRM just masks suspend */#define UDCCR_REM	0x00000080	/* REset interrupt Mask (disable)  */#define UDCAR_ADD	Fld (7, 0)	/* function ADDress                */#define UDCOMP_OUTMAXP	Fld (8, 0)	/* OUTput MAXimum Packet size - 1  */                	        	/* [byte]                          */#define UDCOMP_OutMaxPkt(Size)  	/* Output Maximum Packet size      */ \                	        	/* [1..256 byte]                   */ \                	(((Size) - 1) << FShft (UDCOMP_OUTMAXP))#define UDCIMP_INMAXP	Fld (8, 0)	/* INput MAXimum Packet size - 1   */                	        	/* [byte]                          */#define UDCIMP_InMaxPkt(Size)   	/* Input Maximum Packet size       */ \                	        	/* [1..256 byte]                   */ \                	(((Size) - 1) << FShft (UDCIMP_INMAXP))#define UDCCS0_OPR	0x00000001	/* Output Packet Ready (read)      */#define UDCCS0_IPR	0x00000002	/* Input Packet Ready              */#define UDCCS0_SST	0x00000004	/* Sent STall                      */#define UDCCS0_FST	0x00000008	/* Force STall                     */#define UDCCS0_DE	0x00000010	/* Data End                        */#define UDCCS0_SE	0x00000020	/* Setup End (read)                */#define UDCCS0_SO	0x00000040	/* Serviced Output packet ready    */                	        	/* (write)                         */#define UDCCS0_SSE	0x00000080	/* Serviced Setup End (write)      */#define UDCCS1_RFS	0x00000001	/* Receive FIFO 12-bytes or more   */                	        	/* Service request (read)          */#define UDCCS1_RPC	0x00000002	/* Receive Packet Complete         */#define UDCCS1_RPE	0x00000004	/* Receive Packet Error (read)     */#define UDCCS1_SST	0x00000008	/* Sent STall                      */#define UDCCS1_FST	0x00000010	/* Force STall                     */#define UDCCS1_RNE	0x00000020	/* Receive FIFO Not Empty (read)   */#define UDCCS2_TFS	0x00000001	/* Transmit FIFO 8-bytes or less   */                	        	/* Service request (read)          */#define UDCCS2_TPC	0x00000002	/* Transmit Packet Complete        */#define UDCCS2_TPE	0x00000004	/* Transmit Packet Error (read)    */#define UDCCS2_TUR	0x00000008	/* Transmit FIFO Under-Run         */#define UDCCS2_SST	0x00000010	/* Sent STall                      */#define UDCCS2_FST	0x00000020	/* Force STall                     */#define UDCD0_DATA	Fld (8, 0)	/* receive/transmit DATA FIFOs     */#define UDCWC_WC	Fld (4, 0)	/* Write Count                     */#define UDCDR_DATA	Fld (8, 0)	/* receive/transmit DATA FIFOs     */#define UDCSR_EIR	0x00000001	/* End-point 0 Interrupt Request   */#define UDCSR_RIR	0x00000002	/* Receive Interrupt Request       */#define UDCSR_TIR	0x00000004	/* Transmit Interrupt Request      */#define UDCSR_SUSIR	0x00000008	/* SUSpend Interrupt Request       */#define UDCSR_RESIR	0x00000010	/* RESume Interrupt Request        */#define UDCSR_RSTIR	0x00000020	/* ReSeT Interrupt Request         *//* * Universal Asynchronous Receiver/Transmitter (UART) control registers * * Registers *    Ser1UTCR0 	Serial port 1 Universal Asynchronous *              	Receiver/Transmitter (UART) Control Register 0 *              	(read/write). *    Ser1UTCR1 	Serial port 1 Universal Asynchronous *              	Receiver/Transmitter (UART) Control Register 1 *              	(read/write). *    Ser1UTCR2 	Serial port 1 Universal Asynchronous *              	Receiver/Transmitter (UART) Control Register 2 *              	(read/write). *    Ser1UTCR3 	Serial port 1 Universal Asynchronous *              	Receiver/Transmitter (UART) Control Register 3 *              	(read/write). *    Ser1UTDR  	Serial port 1 Universal Asynchronous *              	Receiver/Transmitter (UART) Data Register *              	(read/write). *    Ser1UTSR0 	Serial port 1 Universal Asynchronous *              	Receiver/Transmitter (UART) Status Register 0 *              	(read/write). *    Ser1UTSR1 	Serial port 1 Universal Asynchronous *              	Receiver/Transmitter (UART) Status Register 1 (read). * *    Ser2UTCR0 	Serial port 2 Universal Asynchronous *              	Receiver/Transmitter (UART) Control Register 0 *              	(read/write). *    Ser2UTCR1 	Serial port 2 Universal Asynchronous *              	Receiver/Transmitter (UART) Control Register 1 *              	(read/write). *    Ser2UTCR2 	Serial port 2 Universal Asynchronous *              	Receiver/Transmitter (UART) Control Register 2 *              	(read/write). *    Ser2UTCR3 	Serial port 2 Universal Asynchronous *              	Receiver/Transmitter (UART) Control Register 3 *              	(read/write). *    Ser2UTCR4 	Serial port 2 Universal Asynchronous *              	Receiver/Transmitter (UART) Control Register 4 *              	(read/write). *    Ser2UTDR  	Serial port 2 Universal Asynchronous *              	Receiver/Transmitter (UART) Data Register *              	(read/write). *    Ser2UTSR0 	Serial port 2 Universal Asynchronous *              	Receiver/Transmitter (UART) Status Register 0 *              	(read/write). *    Ser2UTSR1 	Serial port 2 Universal Asynchronous *              	Receiver/Transmitter (UART) Status Register 1 (read). * *    Ser3UTCR0 	Serial port 3 Universal Asynchronous *              	Receiver/Transmitter (UART) Control Register 0 *              	(read/write). *    Ser3UTCR1 	Serial port 3 Universal Asynchronous *              	Receiver/Transmitter (UART) Control Register 1 *              	(read/write). *    Ser3UTCR2 	Serial port 3 Universal Asynchronous *              	Receiver/Transmitter (UART) Control Register 2 *              	(read/write). *    Ser3UTCR3 	Serial port 3 Universal Asynchronous *              	Receiver/Transmitter (UART) Control Register 3 *              	(read/write). *    Ser3UTDR  	Serial port 3 Universal Asynchronous *              	Receiver/Transmitter (UART) Data Register *              	(read/write). *    Ser3UTSR0 	Serial port 3 Universal Asynchronous *              	Receiver/Transmitter (UART) Status Register 0 *              	(read/write). *    Ser3UTSR1 	Serial port 3 Universal Asynchronous *              	Receiver/Transmitter (UART) Status Register 1 (read). * * Clocks *    fxtl, Txtl	Frequency, period of the system crystal (3.6864 MHz *              	or 3.5795 MHz). *    fua, Tua  	Frequency, period of the UART communication. */#define _UTCR0(Nb)	__REG(0x80010000 + ((Nb) - 1)*0x00020000)  /* UART Control Reg. 0 [1..3] */#define _UTCR1(Nb)	__REG(0x80010004 + ((Nb) - 1)*0x00020000)  /* UART Control Reg. 1 [1..3] */#define _UTCR2(Nb)	__REG(0x80010008 + ((Nb) - 1)*0x00020000)  /* UART Control Reg. 2 [1..3] */#define _UTCR3(Nb)	__REG(0x8001000C + ((Nb) - 1)*0x00020000)  /* UART Control Reg. 3 [1..3] */#define _UTCR4(Nb)	__REG(0x80010010 + ((Nb) - 1)*0x00020000)  /* UART Control Reg. 4 [2] */#define _UTDR(Nb)	__REG(0x80010014 + ((Nb) - 1)*0x00020000)  /* UART Data Reg. [1..3] */#define _UTSR0(Nb)	__REG(0x8001001C + ((Nb) - 1)*0x00020000)  /* UART Status Reg. 0 [1..3] */#define _UTSR1(Nb)	__REG(0x80010020 + ((Nb) - 1)*0x00020000)  /* UART Status Reg. 1 [1..3] */#define Ser1UTCR0	_UTCR0 (1)	/* Ser. port 1 UART Control Reg. 0 */#define Ser1UTCR1	_UTCR1 (1)	/* Ser. port 1 UART Control Reg. 1 */#define Ser1UTCR2	_UTCR2 (1)	/* Ser. port 1 UART Control Reg. 2 */#define Ser1UTCR3	_UTCR3 (1)	/* Ser. port 1 UART Control Reg. 3 */#define Ser1UTDR	_UTDR (1)	/* Ser. port 1 UART Data Reg.      */#define Ser1UTSR0	_UTSR0 (1)	/* Ser. port 1 UART Status Reg. 0  */#define Ser1UTSR1	_UTSR1 (1)	/* Ser. port 1 UART Status Reg. 1  */#define Ser2UTCR0	_UTCR0 (2)	/* Ser. port 2 UART Control Reg. 0 */#define Ser2UTCR1	_UTCR1 (2)	/* Ser. port 2 UART Control Reg. 1 */#define Ser2UTCR2	_UTCR2 (2)	/* Ser. port 2 UART Control Reg. 2 */#define Ser2UTCR3	_UTCR3 (2)	/* Ser. port 2 UART Control Reg. 3 */#define Ser2UTCR4	_UTCR4 (2)	/* Ser. port 2 UART Control Reg. 4 */#define Ser2UTDR	_UTDR (2)	/* Ser. port 2 UART Data Reg.      */#define Ser2UTSR0	_UTSR0 (2)	/* Ser. port 2 UART Status Reg. 0  */#define Ser2UTSR1	_UTSR1 (2)	/* Ser. port 2 UART Status Reg. 1  */#define Ser3UTCR0	_UTCR0 (3)	/* Ser. port 3 UART Control Reg. 0 */#define Ser3UTCR1	_UTCR1 (3)	/* Ser. port 3 UART Control Reg. 1 */#define Ser3UTCR2	_UTCR2 (3)	/* Ser. port 3 UART Control Reg. 2 */#define Ser3UTCR3	_UTCR3 (3)	/* Ser. port 3 UART Control Reg. 3 */#define Ser3UTDR	_UTDR (3)	/* Ser. port 3 UART Data Reg.      */#define Ser3UTSR0	_UTSR0 (3)	/* Ser. port 3 UART Status Reg. 0  */#define Ser3UTSR1	_UTSR1 (3)	/* Ser. port 3 UART Status Reg. 1  *//* Those are still used in some places */#define _Ser1UTCR0	__PREG(Ser1UTCR0)#define _Ser2UTCR0	__PREG(Ser2UTCR0)#define _Ser3UTCR0	__PREG(Ser3UTCR0)/* Register offsets */#define UTCR0		0x00#define UTCR1		0x04#define UTCR2		0x08#define UTCR3		0x0c#define UTDR		0x14#define UTSR0		0x1c#define UTSR1		0x20#define UTCR0_PE	0x00000001	/* Parity Enable                   */#define UTCR0_OES	0x00000002	/* Odd/Even parity Select          */#define UTCR0_OddPar	(UTCR0_OES*0)	/*  Odd Parity                     */#define UTCR0_EvenPar	(UTCR0_OES*1)	/*  Even Parity                    */#define UTCR0_SBS	0x00000004	/* Stop Bit Select                 */#define UTCR0_1StpBit	(UTCR0_SBS*0)	/*  1 Stop Bit per frame           */#define UTCR0_2StpBit	(UTCR0_SBS*1)	/*  2 Stop Bits per frame          */#define UTCR0_DSS	0x00000008	/* Data Size Select                */#define UTCR0_7BitData	(UTCR0_DSS*0)	/*  7-Bit Data                     */#define UTCR0_8BitData	(UTCR0_DSS*1)	/*  8-Bit Data                     */#define UTCR0_SCE	0x00000010	/* Sample Clock Enable             */                	        	/* (ser. port 1: GPIO [18],        */                	        	/* ser. port 3: GPIO [20])         */#define UTCR0_RCE	0x00000020	/* Receive Clock Edge select       */#define UTCR0_RcRsEdg	(UTCR0_RCE*0)	/*  Receive clock Rising-Edge      */#define UTCR0_RcFlEdg	(UTCR0_RCE*1)	/*  Receive clock Falling-Edge     */#define UTCR0_TCE	0x00000040	/* Transmit Clock Edge select      */#define UTCR0_TrRsEdg	(UTCR0_TCE*0)	/*  Transmit clock Rising-Edge     */#define UTCR0_TrFlEdg	(UTCR0_TCE*1)	/*  Transmit clock Falling-Edge    */#define UTCR0_Ser2IrDA	        	/* Ser. port 2 IrDA settings       */ \                	(UTCR0_1StpBit + UTCR0_8BitData)#define UTCR1_BRD	Fld (4, 0)	/* Baud Rate Divisor/16 - 1 [11:8] */#define UTCR2_BRD	Fld (8, 0)	/* Baud Rate Divisor/16 - 1  [7:0] */                	        	/* fua = fxtl/(16*(BRD[11:0] + 1)) */                	        	/* Tua = 16*(BRD [11:0] + 1)*Txtl  */#define UTCR1_BdRtDiv(Div)      	/*  Baud Rate Divisor [16..65536]  */ \                	(((Div) - 16)/16 >> FSize (UTCR2_BRD) << \                	 FShft (UTCR1_BRD))#define UTCR2_BdRtDiv(Div)      	/*  Baud Rate Divisor [16..65536]  */ \                	(((Div) - 16)/16 & FAlnMsk (UTCR2_BRD) << \                	 FShft (UTCR2_BRD))                	        	/*  fua = fxtl/(16*Floor (Div/16)) */                	        	/*  Tua = 16*Floor (Div/16)*Txtl   */#define UTCR1_CeilBdRtDiv(Div)  	/*  Ceil. of BdRtDiv [16..65536]   */ \                	(((Div) - 1)/16 >> FSize (UTCR2_BRD) << \                	 FShft (UTCR1_BRD))#define UTCR2_CeilBdRtDiv(Div)  	/*  Ceil. of BdRtDiv [16..65536]   */ \                	(((Div) - 1)/16 & FAlnMsk (UTCR2_BRD) << \                	 FShft (UTCR2_BRD))                	        	/*  fua = fxtl/(16*Ceil (Div/16))  */                	        	/*  Tua = 16*Ceil (Div/16)*Txtl    */#define UTCR3_RXE	0x00000001	/* Receive Enable                  */#define UTCR3_TXE	0x00000002	/* Transmit Enable                 */#define UTCR3_BRK	0x00000004	/* BReaK mode                      */#define UTCR3_RIE	0x00000008	/* Receive FIFO 1/3-to-2/3-full or */                	        	/* more Interrupt Enable           */#define UTCR3_TIE	0x00000010	/* Transmit FIFO 1/2-full or less  */                	        	/* Interrupt Enable                */#define UTCR3_LBM	0x00000020	/* Look-Back Mode                  */#define UTCR3_Ser2IrDA	        	/* Ser. port 2 IrDA settings (RIE, */ \                	        	/* TIE, LBM can be set or cleared) */ \                	(UTCR3_RXE + UTCR3_TXE)#define UTCR4_HSE	0x00000001	/* Hewlett-Packard Serial InfraRed */                	        	/* (HP-SIR) modulation Enable      */#define UTCR4_NRZ	(UTCR4_HSE*0)	/*  Non-Return to Zero modulation  */#define UTCR4_HPSIR	(UTCR4_HSE*1)	/*  HP-SIR modulation              */#define UTCR4_LPM	0x00000002	/* Low-Power Mode                  */#define UTCR4_Z3_16Bit	(UTCR4_LPM*0)	/*  Zero pulse = 3/16 Bit time     */#define UTCR4_Z1_6us	(UTCR4_LPM*1)	/*  Zero pulse = 1.6 us            */#define UTDR_DATA	Fld (8, 0)	/* receive/transmit DATA FIFOs     */#if 0           	        	/* Hidden receive FIFO bits        */#define UTDR_PRE	0x00000100	/*  receive PaRity Error (read)    */#define UTDR_FRE	0x00000200	/*  receive FRaming Error (read)   */#define UTDR_ROR	0x00000400	/*  Receive FIFO Over-Run (read)   */#endif /* 0 */#define UTSR0_TFS	0x00000001	/* Transmit FIFO 1/2-full or less  */                	        	/* Service request (read)          */#define UTSR0_RFS	0x00000002	/* Receive FIFO 1/3-to-2/3-full or */                	        	/* more Service request (read)     */#define UTSR0_RID	0x00000004	/* Receiver IDle                   */#define UTSR0_RBB	0x00000008	/* Receive Beginning of Break      */#define UTSR0_REB	0x00000010	/* Receive End of Break            */#define UTSR0_EIF	0x00000020	/* Error In FIFO (read)            */#define UTSR1_TBY	0x00000001	/* Transmitter BusY (read)         */#define UTSR1_RNE	0x00000002	/* Receive FIFO Not Empty (read)   */#define UTSR1_TNF	0x00000004	/* Transmit FIFO Not Full (read)   */#define UTSR1_PRE	0x00000008	/* receive PaRity Error (read)     */#define UTSR1_FRE	0x00000010	/* receive FRaming Error (read)    */#define UTSR1_ROR	0x00000020	/* Receive FIFO Over-Run (read)    *//* * Synchronous Data Link Controller (SDLC) control registers * * Registers *    Ser1SDCR0 	Serial port 1 Synchronous Data Link Controller (SDLC) *              	Control Register 0 (read/write). *    Ser1SDCR1 	Serial port 1 Synchronous Data Link Controller (SDLC) *              	Control Register 1 (read/write). *    Ser1SDCR2 	Serial port 1 Synchronous Data Link Controller (SDLC) *              	Control Register 2 (read/write). *    Ser1SDCR3 	Serial port 1 Synchronous Data Link Controller (SDLC) *              	Control Register 3 (read/write). *    Ser1SDCR4 	Serial port 1 Synchronous Data Link Controller (SDLC) *              	Control Register 4 (read/write). *    Ser1SDDR  	Serial port 1 Synchronous Data Link Controller (SDLC) *              	Data Register (read/write). *    Ser1SDSR0 	Serial port 1 Synchronous Data Link Controller (SDLC) *              	Status Register 0 (read/write). *    Ser1SDSR1 	Serial port 1 Synchronous Data Link Controller (SDLC) *              	Status Register 1 (read/write). * * Clocks *    fxtl, Txtl	Frequency, period of the system crystal (3.6864 MHz *              	or 3.5795 MHz). *    fsd, Tsd  	Frequency, period of the SDLC communication. */#define Ser1SDCR0	__REG(0x80020060)  /* Ser. port 1 SDLC Control Reg. 0 */#define Ser1SDCR1	__REG(0x80020064)  /* Ser. port 1 SDLC Control Reg. 1 */#define Ser1SDCR2	__REG(0x80020068)  /* Ser. port 1 SDLC Control Reg. 2 */#define Ser1SDCR3	__REG(0x8002006C)  /* Ser. port 1 SDLC Control Reg. 3 */#define Ser1SDCR4	__REG(0x80020070)  /* Ser. port 1 SDLC Control Reg. 4 */#define Ser1SDDR	__REG(0x80020078)  /* Ser. port 1 SDLC Data Reg.      */#define Ser1SDSR0	__REG(0x80020080)  /* Ser. port 1 SDLC Status Reg. 0  */#define Ser1SDSR1	__REG(0x80020084)  /* Ser. port 1 SDLC Status Reg. 1  */#define SDCR0_SUS	0x00000001	/* SDLC/UART Select                */#define SDCR0_SDLC	(SDCR0_SUS*0)	/*  SDLC mode (TXD1 & RXD1)        */#define SDCR0_UART	(SDCR0_SUS*1)	/*  UART mode (TXD1 & RXD1)        */#define SDCR0_SDF	0x00000002	/* Single/Double start Flag select */#define SDCR0_SglFlg	(SDCR0_SDF*0)	/*  Single start Flag              */#define SDCR0_DblFlg	(SDCR0_SDF*1)	/*  Double start Flag              */#define SDCR0_LBM	0x00000004	/* Look-Back Mode                  */#define SDCR0_BMS	0x00000008	/* Bit Modulation Select           */#define SDCR0_FM0	(SDCR0_BMS*0)	/*  Freq. Modulation zero (0)      */#define SDCR0_NRZ	(SDCR0_BMS*1)	/*  Non-Return to Zero modulation  */#define SDCR0_SCE	0x00000010	/* Sample Clock Enable (GPIO [16]) */#define SDCR0_SCD	0x00000020	/* Sample Clock Direction select   */                	        	/* (GPIO [16])                     */#define SDCR0_SClkIn	(SDCR0_SCD*0)	/*  Sample Clock Input             */#define SDCR0_SClkOut	(SDCR0_SCD*1)	/*  Sample Clock Output            */#define SDCR0_RCE	0x00000040	/* Receive Clock Edge select       */#define SDCR0_RcRsEdg	(SDCR0_RCE*0)	/*  Receive clock Rising-Edge      */#define SDCR0_RcFlEdg	(SDCR0_RCE*1)	/*  Receive clock Falling-Edge     */#define SDCR0_TCE	0x00000080	/* Transmit Clock Edge select      */#define SDCR0_TrRsEdg	(SDCR0_TCE*0)	/*  Transmit clock Rising-Edge     */#define SDCR0_TrFlEdg	(SDCR0_TCE*1)	/*  Transmit clock Falling-Edge    */#define SDCR1_AAF	0x00000001	/* Abort After Frame enable        */                	        	/* (GPIO [17])                     */#define SDCR1_TXE	0x00000002	/* Transmit Enable                 */#define SDCR1_RXE	0x00000004	/* Receive Enable                  */#define SDCR1_RIE	0x00000008	/* Receive FIFO 1/3-to-2/3-full or */                	        	/* more Interrupt Enable           */#define SDCR1_TIE	0x00000010	/* Transmit FIFO 1/2-full or less  */                	        	/* Interrupt Enable                */#define SDCR1_AME	0x00000020	/* Address Match Enable            */#define SDCR1_TUS	0x00000040	/* Transmit FIFO Under-run Select  */#define SDCR1_EFrmURn	(SDCR1_TUS*0)	/*  End Frame on Under-Run         */#define SDCR1_AbortURn	(SDCR1_TUS*1)	/*  Abort on Under-Run             */#define SDCR1_RAE	0x00000080	/* Receive Abort interrupt Enable  */#define SDCR2_AMV	Fld (8, 0)	/* Address Match Value             */#define SDCR3_BRD	Fld (4, 0)	/* Baud Rate Divisor/16 - 1 [11:8] */#define SDCR4_BRD	Fld (8, 0)	/* Baud Rate Divisor/16 - 1  [7:0] */                	        	/* fsd = fxtl/(16*(BRD[11:0] + 1)) */                	        	/* Tsd = 16*(BRD[11:0] + 1)*Txtl   */#define SDCR3_BdRtDiv(Div)      	/*  Baud Rate Divisor [16..65536]  */ \                	(((Div) - 16)/16 >> FSize (SDCR4_BRD) << \                	 FShft (SDCR3_BRD))#define SDCR4_BdRtDiv(Div)      	/*  Baud Rate Divisor [16..65536]  */ \                	(((Div) - 16)/16 & FAlnMsk (SDCR4_BRD) << \                	 FShft (SDCR4_BRD))                	        	/*  fsd = fxtl/(16*Floor (Div/16)) */                	        	/*  Tsd = 16*Floor (Div/16)*Txtl   */#define SDCR3_CeilBdRtDiv(Div)  	/*  Ceil. of BdRtDiv [16..65536]   */ \                	(((Div) - 1)/16 >> FSize (SDCR4_BRD) << \                	 FShft (SDCR3_BRD))#define SDCR4_CeilBdRtDiv(Div)  	/*  Ceil. of BdRtDiv [16..65536]   */ \                	(((Div) - 1)/16 & FAlnMsk (SDCR4_BRD) << \                	 FShft (SDCR4_BRD))                	        	/*  fsd = fxtl/(16*Ceil (Div/16))  */                	        	/*  Tsd = 16*Ceil (Div/16)*Txtl    */#define SDDR_DATA	Fld (8, 0)	/* receive/transmit DATA FIFOs     */#if 0           	        	/* Hidden receive FIFO bits        */#define SDDR_EOF	0x00000100	/*  receive End-Of-Frame (read)    */#define SDDR_CRE	0x00000200	/*  receive CRC Error (read)       */#define SDDR_ROR	0x00000400	/*  Receive FIFO Over-Run (read)   */#endif /* 0 */#define SDSR0_EIF	0x00000001	/* Error In FIFO (read)            */#define SDSR0_TUR	0x00000002	/* Transmit FIFO Under-Run         */#define SDSR0_RAB	0x00000004	/* Receive ABort                   */#define SDSR0_TFS	0x00000008	/* Transmit FIFO 1/2-full or less  */                	        	/* Service request (read)          */#define SDSR0_RFS	0x00000010	/* Receive FIFO 1/3-to-2/3-full or */                	        	/* more Service request (read)     */#define SDSR1_RSY	0x00000001	/* Receiver SYnchronized (read)    */#define SDSR1_TBY	0x00000002	/* Transmitter BusY (read)         */#define SDSR1_RNE	0x00000004	/* Receive FIFO Not Empty (read)   */#define SDSR1_TNF	0x00000008	/* Transmit FIFO Not Full (read)   */#define SDSR1_RTD	0x00000010	/* Receive Transition Detected     */#define SDSR1_EOF	0x00000020	/* receive End-Of-Frame (read)     */#define SDSR1_CRE	0x00000040	/* receive CRC Error (read)        */#define SDSR1_ROR	0x00000080	/* Receive FIFO Over-Run (read)    *//* * High-Speed Serial to Parallel controller (HSSP) control registers * * Registers *    Ser2HSCR0 	Serial port 2 High-Speed Serial to Parallel *              	controller (HSSP) Control Register 0 (read/write). *    Ser2HSCR1 	Serial port 2 High-Speed Serial to Parallel *              	controller (HSSP) Control Register 1 (read/write). *    Ser2HSDR  	Serial port 2 High-Speed Serial to Parallel *              	controller (HSSP) Data Register (read/write). *    Ser2HSSR0 	Serial port 2 High-Speed Serial to Parallel *              	controller (HSSP) Status Register 0 (read/write). *    Ser2HSSR1 	Serial port 2 High-Speed Serial to Parallel *              	controller (HSSP) Status Register 1 (read). *    Ser2HSCR2 	Serial port 2 High-Speed Serial to Parallel *              	controller (HSSP) Control Register 2 (read/write). *              	[The HSCR2 register is only implemented in *              	versions 2.0 (rev. = 8) and higher of the StrongARM *              	SA-1100.] */#define Ser2HSCR0	__REG(0x80040060)  /* Ser. port 2 HSSP Control Reg. 0 */#define Ser2HSCR1	__REG(0x80040064)  /* Ser. port 2 HSSP Control Reg. 1 */#define Ser2HSDR	__REG(0x8004006C)  /* Ser. port 2 HSSP Data Reg.      */#define Ser2HSSR0	__REG(0x80040074)  /* Ser. port 2 HSSP Status Reg. 0  */#define Ser2HSSR1	__REG(0x80040078)  /* Ser. port 2 HSSP Status Reg. 1  */#define Ser2HSCR2	__REG(0x90060028)  /* Ser. port 2 HSSP Control Reg. 2 */#define HSCR0_ITR	0x00000001	/* IrDA Transmission Rate          */#define HSCR0_UART	(HSCR0_ITR*0)	/*  UART mode (115.2 kb/s if IrDA) */#define HSCR0_HSSP	(HSCR0_ITR*1)	/*  HSSP mode (4 Mb/s)             */#define HSCR0_LBM	0x00000002	/* Look-Back Mode                  */#define HSCR0_TUS	0x00000004	/* Transmit FIFO Under-run Select  */#define HSCR0_EFrmURn	(HSCR0_TUS*0)	/*  End Frame on Under-Run         */#define HSCR0_AbortURn	(HSCR0_TUS*1)	/*  Abort on Under-Run             */#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	__REG(0x80060000)  /* Ser. port 4 MCP Control Reg. 0 */#define Ser4MCDR0	__REG(0x80060008)  /* Ser. port 4 MCP Data Reg. 0 (audio) */#define Ser4MCDR1	__REG(0x8006000C)  /* Ser. port 4 MCP Data Reg. 1 (telecom) */#define Ser4MCDR2	__REG(0x80060010)  /* Ser. port 4 MCP Data Reg. 2 (CODEC reg.) */#define Ser4MCSR	__REG(0x80060018)  /* Ser. port 4 MCP Status Reg. */#define Ser4MCCR1	__REG(0x90060030)  /* Ser. port 4 MCP Control Reg. 1 */#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	__REG(0x80070060)  /* Ser. port 4 SSP Control Reg. 0 */#define Ser4SSCR1	__REG(0x80070064)  /* Ser. port 4 SSP Control Reg. 1 */#define Ser4SSDR	__REG(0x8007006C)  /* Ser. port 4 SSP Data Reg. */#define Ser4SSSR	__REG(0x80070074)  /* Ser. port 4 SSP Status Reg. */#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   */                	        	/*  after frame (SFRM, 1st edge)   */#define SSCR1_SClk1_2P	(SSCR1_SP*1)	/*  Sample Clock active 1/2 Period */                	        	/*  after frame (SFRM, 1st edge)   */#define SSCR1_ECS	0x00000020	/* External Clock Select           */#define SSCR1_IntClk	(SSCR1_ECS*0)	/*  Internal Clock                 */#define SSCR1_ExtClk	(SSCR1_ECS*1)	/*  External Clock (GPIO [19])     */#define SSDR_DATA	Fld (16, 0)	/* receive/transmit DATA FIFOs     */#define SSSR_TNF	0x00000002	/* Transmit FIFO Not Full (read)   */#define SSSR_RNE	0x00000004	/* Receive FIFO Not Empty (read)   */#define SSSR_BSY	0x00000008	/* SSP BuSY (read)                 */#define SSSR_TFS	0x00000010	/* Transmit FIFO 1/2-full or less  */                	        	/* Service request (read)          */#define SSSR_RFS	0x00000020	/* Receive FIFO 1/2-full or more   */                	        	/* Service request (read)          */#define SSSR_ROR	0x00000040	/* Receive FIFO Over-Run           *//* * Operating System (OS) timer control registers * * Registers *    OSMR0     	Operating System (OS) timer Match Register 0 *              	(read/write). *    OSMR1     	Operating System (OS) timer Match Register 1 *              	(read/write). *    OSMR2     	Operating System (OS) timer Match Register 2 *              	(read/write). *    OSMR3     	Operating System (OS) timer Match Register 3 *              	(read/write). *    OSCR      	Operating System (OS) timer Counter Register *              	(read/write). *    OSSR      	Operating System (OS) timer Status Register *              	(read/write). *    OWER      	Operating System (OS) timer Watch-dog Enable Register *              	(read/write). *    OIER      	Operating System (OS) timer Interrupt Enable Register *              	(read/write). */#define OSMR0  		io_p2v(0x90000000)  /* OS timer Match Reg. 0 */#define OSMR1  		io_p2v(0x90000004)  /* OS timer Match Reg. 1 */#define OSMR2  		io_p2v(0x90000008)  /* OS timer Match Reg. 2 */#define OSMR3  		io_p2v(0x9000000c)  /* OS timer Match Reg. 3 */#define OSCR   		io_p2v(0x90000010)  /* OS timer Counter Reg. */#define OSSR   		io_p2v(0x90000014)  /* OS timer Status Reg. */#define OWER   		io_p2v(0x90000018)  /* OS timer Watch-dog Enable Reg. */#define OIER  	 	io_p2v(0x9000001C)  /* OS timer Interrupt Enable Reg. */#define OSSR_M(Nb)	        	/* Match detected [0..3]           */ \                	(0x00000001 << (Nb))#define OSSR_M0 	OSSR_M (0)	/* Match detected 0                */#define OSSR_M1 	OSSR_M (1)	/* Match detected 1                */#define OSSR_M2 	OSSR_M (2)	/* Match detected 2                */#define OSSR_M3 	OSSR_M (3)	/* Match detected 3                */#define OWER_WME	0x00000001	/* Watch-dog Match Enable          */                	        	/* (set only)                      */#define OIER_E(Nb)	        	/* match interrupt Enable [0..3]   */ \                	(0x00000001 << (Nb))#define OIER_E0 	OIER_E (0)	/* match interrupt Enable 0        */#define OIER_E1 	OIER_E (1)	/* match interrupt Enable 1        */#define OIER_E2 	OIER_E (2)	/* match interrupt Enable 2        */#define OIER_E3 	OIER_E (3)	/* match interrupt Enable 3        *//* * Real-Time Clock (RTC) control registers * * Registers *    RTAR      	Real-Time Clock (RTC) Alarm Register (read/write). *    RCNR      	Real-Time Clock (RTC) CouNt Register (read/write). *    RTTR      	Real-Time Clock (RTC) Trim Register (read/write). *    RTSR      	Real-Time Clock (RTC) Status Register (read/write). * * Clocks *    frtx, Trtx	Frequency, period of the real-time clock crystal *              	(32.768 kHz nominal). *    frtc, Trtc	Frequency, period of the real-time clock counter *              	(1 Hz nominal). */#define RTAR		__REG(0x90010000)  /* RTC Alarm Reg. */#define RCNR		__REG(0x90010004)  /* RTC CouNt Reg. */#define RTTR		__REG(0x90010008)  /* RTC Trim Reg. */#define RTSR		__REG(0x90010010)  /* RTC Status Reg. */#define RTTR_C  	Fld (16, 0)	/* clock divider Count - 1         */#define RTTR_D  	Fld (10, 16)	/* trim Delete count               */                	        	/* frtc = (1023*(C + 1) - D)*frtx/ */                	        	/*        (1023*(C + 1)^2)         */                	        	/* Trtc = (1023*(C + 1)^2)*Trtx/   */                	        	/*        (1023*(C + 1) - D)       */#define RTSR_AL 	0x00000001	/* ALarm detected                  */#define RTSR_HZ 	0x00000002	/* 1 Hz clock detected             */#define RTSR_ALE	0x00000004	/* ALarm interrupt Enable          */#define RTSR_HZE	0x00000008	/* 1 Hz clock interrupt Enable     *//* * Power Manager (PM) control registers * * Registers *    PMCR      	Power Manager (PM) Control Register (read/write). *    PSSR      	Power Manager (PM) Sleep Status Register (read/write). *    PSPR      	Power Manager (PM) Scratch-Pad Register (read/write). *    PWER      	Power Manager (PM) Wake-up Enable Register *              	(read/write). *    PCFR      	Power Manager (PM) general ConFiguration Register *              	(read/write). *    PPCR      	Power Manager (PM) Phase-Locked Loop (PLL) *              	Configuration Register (read/write). *    PGSR      	Power Manager (PM) General-Purpose Input/Output (GPIO) *              	Sleep state Register (read/write, see GPIO pins). *    POSR      	Power Manager (PM) Oscillator Status Register (read). * * Clocks *    fxtl, Txtl	Frequency, period of the system crystal (3.6864 MHz *              	or 3.5795 MHz). *    fcpu, Tcpu	Frequency, period of the CPU core clock (CCLK). */#define PMCR		__REG(0x90020000)  /* PM Control Reg. */#define PSSR		__REG(0x90020004)  /* PM Sleep Status Reg. */#define PSPR		__REG(0x90020008)  /* PM Scratch-Pad Reg. */#define PWER		__REG(0x9002000C)  /* PM Wake-up Enable Reg. */#define PCFR		__REG(0x90020010)  /* PM general ConFiguration Reg. */#define PPCR		__REG(0x90020014)  /* PM PLL Configuration Reg. */#define PGSR		__REG(0x90020018)  /* PM GPIO Sleep state Reg. */#define POSR		__REG(0x9002001C)  /* PM Oscillator Status Reg. */#define PMCR_SF 	0x00000001	/* Sleep Force (set only)          */#define PSSR_SS 	0x00000001	/* Software Sleep                  */#define PSSR_BFS	0x00000002	/* Battery Fault Status            */                	        	/* (BATT_FAULT)                    */#define PSSR_VFS	0x00000004	/* Vdd Fault Status (VDD_FAULT)    */#define PSSR_DH 	0x00000008	/* DRAM control Hold               */#define PSSR_PH 	0x00000010	/* Peripheral control Hold         */#define PWER_GPIO(Nb)	GPIO_GPIO (Nb)	/* GPIO [0..27] wake-up enable     */#define PWER_GPIO0	PWER_GPIO (0)	/* GPIO  [0] wake-up enable        */#define PWER_GPIO1	PWER_GPIO (1)	/* GPIO  [1] wake-up enable        */#define PWER_GPIO2	PWER_GPIO (2)	/* GPIO  [2] wake-up enable        */#define PWER_GPIO3	PWER_GPIO (3)	/* GPIO  [3] wake-up enable        */#define PWER_GPIO4	PWER_GPIO (4)	/* GPIO  [4] wake-up enable        */#define PWER_GPIO5	PWER_GPIO (5)	/* GPIO  [5] wake-up enable        */#define PWER_GPIO6	PWER_GPIO (6)	/* GPIO  [6] wake-up enable        */#define PWER_GPIO7	PWER_GPIO (7)	/* GPIO  [7] wake-up enable        */#define PWER_GPIO8	PWER_GPIO (8)	/* GPIO  [8] wake-up enable        */#define PWER_GPIO9	PWER_GPIO (9)	/* GPIO  [9] wake-up enable        */#define PWER_GPIO10	PWER_GPIO (10)	/* GPIO [10] wake-up enable        */#define PWER_GPIO11	PWER_GPIO (11)	/* GPIO [11] wake-up enable        */#define PWER_GPIO12	PWER_GPIO (12)	/* GPIO [12] wake-up enable        */#define PWER_GPIO13	PWER_GPIO (13)	/* GPIO [13] wake-up enable        */#define PWER_GPIO14	PWER_GPIO (14)	/* GPIO [14] wake-up enable        */#define PWER_GPIO15	PWER_GPIO (15)	/* GPIO [15] wake-up enable        */#define PWER_GPIO16	PWER_GPIO (16)	/* GPIO [16] wake-up enable        */#define PWER_GPIO17	PWER_GPIO (17)	/* GPIO [17] wake-up enable        */#define PWER_GPIO18	PWER_GPIO (18)	/* GPIO [18] wake-up enable        */#define PWER_GPIO19	PWER_GPIO (19)	/* GPIO [19] wake-up enable        */#define PWER_GPIO20	PWER_GPIO (20)	/* GPIO [20] wake-up enable        */#define PWER_GPIO21	PWER_GPIO (21)	/* GPIO [21] wake-up enable        */#define PWER_GPIO22	PWER_GPIO (22)	/* GPIO [22] wake-up enable        */#define PWER_GPIO23	PWER_GPIO (23)	/* GPIO [23] wake-up enable        */#define PWER_GPIO24	PWER_GPIO (24)	/* GPIO [24] wake-up enable        */#define PWER_GPIO25	PWER_GPIO (25)	/* GPIO [25] wake-up enable        */#define PWER_GPIO26	PWER_GPIO (26)	/* GPIO [26] wake-up enable        */#define PWER_GPIO27	PWER_GPIO (27)	/* GPIO [27] wake-up enable        */#define PWER_RTC	0x80000000	/* RTC alarm wake-up enable        */#define PCFR_OPDE	0x00000001	/* Oscillator Power-Down Enable    */#define PCFR_ClkRun	(PCFR_OPDE*0)	/*  Clock Running in sleep mode    */#define PCFR_ClkStp	(PCFR_OPDE*1)	/*  Clock Stopped in sleep mode    */#define PCFR_FP 	0x00000002	/* Float PCMCIA pins               */#define PCFR_PCMCIANeg	(PCFR_FP*0)	/*  PCMCIA pins Negated (1)        */#define PCFR_PCMCIAFlt	(PCFR_FP*1)	/*  PCMCIA pins Floating           */#define PCFR_FS 	0x00000004	/* Float Static memory pins        */#define PCFR_StMemNeg	(PCFR_FS*0)	/*  Static Memory pins Negated (1) */#define PCFR_StMemFlt	(PCFR_FS*1)	/*  Static Memory pins Floating    */#define PCFR_FO 	0x00000008	/* Force RTC oscillator            */                	        	/* (32.768 kHz) enable On          */#define PPCR_CCF	Fld (5, 0)	/* CPU core Clock (CCLK) Freq.     */#define PPCR_Fx16	        	/*  Freq. x 16 (fcpu = 16*fxtl)    */ \                	(0x00 << FShft (PPCR_CCF))#define PPCR_Fx20	        	/*  Freq. x 20 (fcpu = 20*fxtl)    */ \                	(0x01 << FShft (PPCR_CCF))#define PPCR_Fx24	        	/*  Freq. x 24 (fcpu = 24*fxtl)    */ \                	(0x02 << FShft (PPCR_CCF))#define PPCR_Fx28	        	/*  Freq. x 28 (fcpu = 28*fxtl)    */ \                	(0x03 << FShft (PPCR_CCF))#define PPCR_Fx32	        	/*  Freq. x 32 (fcpu = 32*fxtl)    */ \                	(0x04 << FShft (PPCR_CCF))#define PPCR_Fx36	        	/*  Freq. x 36 (fcpu = 36*fxtl)    */ \                	(0x05 << FShft (PPCR_CCF))#define PPCR_Fx40	        	/*  Freq. x 40 (fcpu = 40*fxtl)    */ \                	(0x06 << FShft (PPCR_CCF))#define PPCR_Fx44	        	/*  Freq. x 44 (fcpu = 44*fxtl)    */ \                	(0x07 << FShft (PPCR_CCF))#define PPCR_Fx48	        	/*  Freq. x 48 (fcpu = 48*fxtl)    */ \                	(0x08 << FShft (PPCR_CCF))#define PPCR_Fx52	        	/*  Freq. x 52 (fcpu = 52*fxtl)    */ \                	(0x09 << FShft (PPCR_CCF))#define PPCR_Fx56	        	/*  Freq. x 56 (fcpu = 56*fxtl)    */ \                	(0x0A << FShft (PPCR_CCF))#define PPCR_Fx60	        	/*  Freq. x 60 (fcpu = 60*fxtl)    */ \                	(0x0B << FShft (PPCR_CCF))#define PPCR_Fx64	        	/*  Freq. x 64 (fcpu = 64*fxtl)    */ \                	(0x0C << FShft (PPCR_CCF))#define PPCR_Fx68	        	/*  Freq. x 68 (fcpu = 68*fxtl)    */ \                	(0x0D << FShft (PPCR_CCF))#define PPCR_Fx72	        	/*  Freq. x 72 (fcpu = 72*fxtl)    */ \                	(0x0E << FShft (PPCR_CCF))#define PPCR_Fx76	        	/*  Freq. x 76 (fcpu = 76*fxtl)    */ \                	(0x0F << FShft (PPCR_CCF))                	        	/*  3.6864 MHz crystal (fxtl):     */#define PPCR_F59_0MHz	PPCR_Fx16	/*   Freq. (fcpu) =  59.0 MHz      */#define PPCR_F73_7MHz	PPCR_Fx20	/*   Freq. (fcpu) =  73.7 MHz      */#define PPCR_F88_5MHz	PPCR_Fx24	/*   Freq. (fcpu) =  88.5 MHz      */#define PPCR_F103_2MHz	PPCR_Fx28	/*   Freq. (fcpu) = 103.2 MHz      */#define PPCR_F118_0MHz	PPCR_Fx32	/*   Freq. (fcpu) = 118.0 MHz      */#define PPCR_F132_7MHz	PPCR_Fx36	/*   Freq. (fcpu) = 132.7 MHz      */#define PPCR_F147_5MHz	PPCR_Fx40	/*   Freq. (fcpu) = 147.5 MHz      */#define PPCR_F162_2MHz	PPCR_Fx44	/*   Freq. (fcpu) = 162.2 MHz      */#define PPCR_F176_9MHz	PPCR_Fx48	/*   Freq. (fcpu) = 176.9 MHz      */#define PPCR_F191_7MHz	PPCR_Fx52	/*   Freq. (fcpu) = 191.7 MHz      */#define PPCR_F206_4MHz	PPCR_Fx56	/*   Freq. (fcpu) = 206.4 MHz      */#define PPCR_F221_2MHz	PPCR_Fx60	/*   Freq. (fcpu) = 221.2 MHz      */#define PPCR_F239_6MHz	PPCR_Fx64	/*   Freq. (fcpu) = 239.6 MHz      */#define PPCR_F250_7MHz	PPCR_Fx68	/*   Freq. (fcpu) = 250.7 MHz      */#define PPCR_F265_4MHz	PPCR_Fx72	/*   Freq. (fcpu) = 265.4 MHz      */#define PPCR_F280_2MHz	PPCR_Fx76	/*   Freq. (fcpu) = 280.2 MHz      */                	        	/*  3.5795 MHz crystal (fxtl):     */#define PPCR_F57_3MHz	PPCR_Fx16	/*   Freq. (fcpu) =  57.3 MHz      */#define PPCR_F71_6MHz	PPCR_Fx20	/*   Freq. (fcpu) =  71.6 MHz      */#define PPCR_F85_9MHz	PPCR_Fx24	/*   Freq. (fcpu) =  85.9 MHz      */#define PPCR_F100_2MHz	PPCR_Fx28	/*   Freq. (fcpu) = 100.2 MHz      */#define PPCR_F114_5MHz	PPCR_Fx32	/*   Freq. (fcpu) = 114.5 MHz      */#define PPCR_F128_9MHz	PPCR_Fx36	/*   Freq. (fcpu) = 128.9 MHz      */#define PPCR_F143_2MHz	PPCR_Fx40	/*   Freq. (fcpu) = 143.2 MHz      */#define PPCR_F157_5MHz	PPCR_Fx44	/*   Freq. (fcpu) = 157.5 MHz      */#define PPCR_F171_8MHz	PPCR_Fx48	/*   Freq. (fcpu) = 171.8 MHz      */#define PPCR_F186_1MHz	PPCR_Fx52	/*   Freq. (fcpu) = 186.1 MHz      */#define PPCR_F200_5MHz	PPCR_Fx56	/*   Freq. (fcpu) = 200.5 MHz      */#define PPCR_F214_8MHz	PPCR_Fx60	/*   Freq. (fcpu) = 214.8 MHz      */#define PPCR_F229_1MHz	PPCR_Fx64	/*   Freq. (fcpu) = 229.1 MHz      */#define PPCR_F243_4MHz	PPCR_Fx68	/*   Freq. (fcpu) = 243.4 MHz      */#define PPCR_F257_7MHz	PPCR_Fx72	/*   Freq. (fcpu) = 257.7 MHz      */#define PPCR_F272_0MHz	PPCR_Fx76	/*   Freq. (fcpu) = 272.0 MHz      */#define POSR_OOK	0x00000001	/* RTC Oscillator (32.768 kHz) OK  *//* * Reset Controller (RC) control registers * * Registers *    RSRR      	Reset Controller (RC) Software Reset Register *              	(read/write). *    RCSR      	Reset Controller (RC) Status Register (read/write). */#define RSRR		__REG(0x90030000)  /* RC Software Reset Reg. */#define RCSR		__REG(0x90030004)  /* RC Status Reg. */#define RSRR_SWR	0x00000001	/* SoftWare Reset (set only)       */#define RCSR_HWR	0x00000001	/* HardWare Reset                  */#define RCSR_SWR	0x00000002	/* SoftWare Reset                  */#define RCSR_WDR	0x00000004	/* Watch-Dog Reset                 */#define RCSR_SMR	0x00000008	/* Sleep-Mode Reset                *//* * Test unit control registers * * Registers *    TUCR      	Test Unit Control Register (read/write). */#define TUCR		__REG(0x90030008)  /* Test Unit Control Reg. */#define TUCR_TIC	0x00000040	/* TIC mode                        */#define TUCR_TTST	0x00000080	/* Trim TeST mode                  */#define TUCR_RCRC	0x00000100	/* Richard's Cyclic Redundancy     */                	        	/* Check                           */#define TUCR_PMD	0x00000200	/* Power Management Disable        */#define TUCR_MR 	0x00000400	/* Memory Request mode             */#define TUCR_NoMB	(TUCR_MR*0)	/*  No Memory Bus request & grant  */#define TUCR_MBGPIO	(TUCR_MR*1)	/*  Memory Bus request (MBREQ) &   */                	        	/*  grant (MBGNT) on GPIO [22:21]  */#define TUCR_CTB	Fld (3, 20)	/* Clock Test Bits                 */#define TUCR_FDC	0x00800000	/* RTC Force Delete Count          */#define TUCR_FMC	0x01000000	/* Force Michelle's Control mode   */#define TUCR_TMC	0x02000000	/* RTC Trimmer Multiplexer Control */#define TUCR_DPS	0x04000000	/* Disallow Pad Sleep              */#define TUCR_TSEL	Fld (3, 29)	/* clock Test SELect on GPIO [27]  */#define TUCR_32_768kHz	        	/*  32.768 kHz osc. on GPIO [27]   */ \                	(0 << FShft (TUCR_TSEL))#define TUCR_3_6864MHz	        	/*  3.6864 MHz osc. on GPIO [27]   */ \                	(1 << FShft (TUCR_TSEL))#define TUCR_VDD	        	/*  VDD ring osc./16 on GPIO [27]  */ \                	(2 << FShft (TUCR_TSEL))#define TUCR_96MHzPLL	        	/*  96 MHz PLL/4 on GPIO [27]      */ \                	(3 << FShft (TUCR_TSEL))#define TUCR_Clock	        	/*  internal (fcpu/2) & 32.768 kHz */ \                	        	/*  Clocks on GPIO [26:27]         */ \                	(4 << FShft (TUCR_TSEL))#define TUCR_3_6864MHzA	        	/*  3.6864 MHz osc. on GPIO [27]   */ \                	        	/*  (Alternative)                  */ \                	(5 << FShft (TUCR_TSEL))#define TUCR_MainPLL	        	/*  Main PLL/16 on GPIO [27]       */ \                	(6 << FShft (TUCR_TSEL))#define TUCR_VDDL	        	/*  VDDL ring osc./4 on GPIO [27]  */ \                	(7 << FShft (TUCR_TSEL))/* * General-Purpose Input/Output (GPIO) control registers * * Registers *    GPLR      	General-Purpose Input/Output (GPIO) Pin Level *              	Register (read). *    GPDR      	General-Purpose Input/Output (GPIO) Pin Direction *              	Register (read/write). *    GPSR      	General-Purpose Input/Output (GPIO) Pin output Set *              	Register (write). *    GPCR      	General-Purpose Input/Output (GPIO) Pin output Clear *              	Register (write). *    GRER      	General-Purpose Input/Output (GPIO) Rising-Edge *              	detect Register (read/write). *    GFER      	General-Purpose Input/Output (GPIO) Falling-Edge *              	detect Register (read/write). *    GEDR      	General-Purpose Input/Output (GPIO) Edge Detect *              	status Register (read/write). *    GAFR      	General-Purpose Input/Output (GPIO) Alternate *              	Function Register (read/write). * * Clock *    fcpu, Tcpu	Frequency, period of the CPU core clock (CCLK). */
 |