1 /* Coldfire C Header File
2 * Copyright Freescale Semiconductor Inc
5 * 2008/05/23 Revision: 0.95
7 * (c) Copyright UNIS, a.s. 1997-2008
12 * http : www.processorexpert.com
13 * mail : info@processorexpert.com
16 #ifndef __MCF52221_CCM_H__
17 #define __MCF52221_CCM_H__
20 /*********************************************************************
22 * Chip Configuration Module (CCM)
24 *********************************************************************/
26 /* Register read/write macros */
27 #define MCF_CCM_CCR (*(vuint16*)(0x40110004))
28 #define MCF_CCM_RCON (*(vuint16*)(0x40110008))
29 #define MCF_CCM_CIR (*(vuint16*)(0x4011000A))
32 /* Bit definitions and macros for MCF_CCM_CCR */
33 #define MCF_CCM_CCR_Mode(x) (((x)&0x7)<<0x8)
34 #define MCF_CCM_CCR_MODE_SINGLECHIP (0x600)
35 #define MCF_CCM_CCR_MODE_EZPORT (0x500)
37 /* Bit definitions and macros for MCF_CCM_RCON */
38 #define MCF_CCM_RCON_MODE (0x1)
39 #define MCF_CCM_RCON_RLOAD (0x20)
41 /* Bit definitions and macros for MCF_CCM_CIR */
42 #define MCF_CCM_CIR_PRN(x) (((x)&0x3F)<<0)
43 #define MCF_CCM_CIR_PIN(x) (((x)&0x3FF)<<0x6)
46 #endif /* __MCF52221_CCM_H__ */