| 
					
				 | 
			
			
				@@ -828,3 +828,126 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  *              	(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        */ 
			 |