1 /* Coldfire C Header File
\r
2 * Copyright Freescale Semiconductor Inc
\r
3 * All rights reserved.
\r
5 * 2008/04/17 Revision: 0.2
\r
7 * (c) Copyright UNIS, spol. s r.o. 1997-2008
\r
12 * http : www.processorexpert.com
\r
13 * mail : info@processorexpert.com
\r
16 #ifndef __MCF52259_CCM_H__
\r
17 #define __MCF52259_CCM_H__
\r
20 /*********************************************************************
\r
22 * Chip Configuration Module (CCM)
\r
24 *********************************************************************/
\r
26 /* Register read/write macros */
\r
27 #define MCF_CCM_CCR (*(vuint16*)(0x40110004))
\r
28 #define MCF_CCM_RCON (*(vuint16*)(0x40110008))
\r
29 #define MCF_CCM_CIR (*(vuint16*)(0x4011000A))
\r
30 #define MCF_CCM_CCE (*(vuint16*)(0x40110010))
\r
33 /* Bit definitions and macros for MCF_CCM_CCR */
\r
34 #define MCF_CCM_CCR_Mode(x) (((x)&0x7)<<0x8)
\r
35 #define MCF_CCM_CCR_MODE_SINGLECHIP (0x600)
\r
36 #define MCF_CCM_CCR_MODE_EZPORT (0x500)
\r
37 #define MCF_CCM_CCR_LOAD (0x8000)
\r
39 /* Bit definitions and macros for MCF_CCM_RCON */
\r
40 #define MCF_CCM_RCON_RLOAD (0x20)
\r
42 /* Bit definitions and macros for MCF_CCM_CIR */
\r
43 #define MCF_CCM_CIR_PRN(x) (((x)&0x3F)<<0)
\r
44 #define MCF_CCM_CIR_PIN(x) (((x)&0x3FF)<<0x6)
\r
46 /* Bit definitions and macros for MCF_CCM_CCE */
\r
47 #define MCF_CCM_CCE_USBEND (0x4000)
\r
48 #define MCF_CCM_CCE_MBMOD (0x8000)
\r
51 #endif /* __MCF52259_CCM_H__ */
\r