1 /* Coldfire C Header File
\r
2 * Copyright Freescale Semiconductor Inc
\r
3 * All rights reserved.
\r
5 * 2008/05/23 Revision: 0.95
\r
7 * (c) Copyright UNIS, a.s. 1997-2008
\r
12 * http : www.processorexpert.com
\r
13 * mail : info@processorexpert.com
\r
16 #ifndef __MCF52221_PMM_H__
\r
17 #define __MCF52221_PMM_H__
\r
20 /*********************************************************************
\r
22 * Power Management (PMM)
\r
24 *********************************************************************/
\r
26 /* Register read/write macros */
\r
27 #define MCF_PMM_LPICR (*(vuint8 *)(0x40000012))
\r
28 #define MCF_PMM_LPCR (*(vuint8 *)(0x40110007))
\r
31 /* Bit definitions and macros for MCF_PMM_LPICR */
\r
32 #define MCF_PMM_LPICR_XLPM_IPL(x) (((x)&0x7)<<0x4)
\r
33 #define MCF_PMM_LPICR_ENBSTOP (0x80)
\r
35 /* Bit definitions and macros for MCF_PMM_LPCR */
\r
36 #define MCF_PMM_LPCR_STPMD (0x8)
\r
37 #define MCF_PMM_LPCR_LPMD(x) (((x)&0x3)<<0x6)
\r
38 #define MCF_PMM_LPCR_LPMD_RUN (0)
\r
39 #define MCF_PMM_LPCR_LPMD_DOZE (0x40)
\r
40 #define MCF_PMM_LPCR_LPMD_WAIT (0x80)
\r
41 #define MCF_PMM_LPCR_LPMD_STOP (0xC0)
\r
44 #endif /* __MCF52221_PMM_H__ */
\r