2 * These files are taken from the MCF523X source code example package
\r
3 * which is available on the Freescale website. Freescale explicitly
\r
4 * grants the redistribution and modification of these source files.
\r
5 * The complete licensing information is available in the file
\r
6 * LICENSE_FREESCALE.TXT.
\r
8 * File: mcf523x_ccm.h
\r
9 * Purpose: Register and bit definitions for the MCF523X
\r
15 #ifndef __MCF523X_CCM_H__
\r
16 #define __MCF523X_CCM_H__
\r
18 /*********************************************************************
\r
20 * Chip Configuration Module (CCM)
\r
22 *********************************************************************/
\r
24 /* Register read/write macros */
\r
25 #define MCF_CCM_CCR (*(vuint16*)(void*)(&__IPSBAR[0x110004]))
\r
26 #define MCF_CCM_LPCR (*(vuint8 *)(void*)(&__IPSBAR[0x110007]))
\r
27 #define MCF_CCM_CIR (*(vuint16*)(void*)(&__IPSBAR[0x11000A]))
\r
28 #define MCF_CCM_RCON (*(vuint16*)(void*)(&__IPSBAR[0x110008]))
\r
30 /* Bit definitions and macros for MCF_CCM_CCR */
\r
31 #define MCF_CCM_CCR_BMT(x) (((x)&0x0007)<<0)
\r
32 #define MCF_CCM_CCR_BME (0x0008)
\r
33 #define MCF_CCM_CCR_SZEN (0x0040)
\r
34 #define MCF_CCM_CCR_MODE(x) (((x)&0x0007)<<8)
\r
36 /* Bit definitions and macros for MCF_CCM_LPCR */
\r
37 #define MCF_CCM_LPCR_STPMD(x) (((x)&0x03)<<3)
\r
38 #define MCF_CCM_LPCR_LPMD(x) (((x)&0x03)<<6)
\r
39 #define MCF_CCM_LPCR_LPMD_STOP (0xC0)
\r
40 #define MCF_CCM_LPCR_LPMD_WAIT (0x80)
\r
41 #define MCF_CCM_LPCR_LPMD_DOZE (0x40)
\r
42 #define MCF_CCM_LPCR_LPMD_RUN (0x00)
\r
44 /* Bit definitions and macros for MCF_CCM_CIR */
\r
45 #define MCF_CCM_CIR_PRN(x) (((x)&0x003F)<<0)
\r
46 #define MCF_CCM_CIR_PIN(x) (((x)&0x03FF)<<6)
\r
48 /* Bit definitions and macros for MCF_CCM_RCON */
\r
49 #define MCF_CCM_RCON_MODE (0x0001)
\r
50 #define MCF_CCM_RCON_BOOTPS(x) (((x)&0x0003)<<3)
\r
51 #define MCF_CCM_RCON_RLOAD (0x0020)
\r
52 #define MCF_CCM_RCON_RCSC(x) (((x)&0x0003)<<8)
\r
54 /********************************************************************/
\r
56 #endif /* __MCF523X_CCM_H__ */
\r