OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [ColdFire_MCF52221_CodeWarrior/] [headers/] [MCF52221_CLOCK.h] - Blame information for rev 867

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 jeremybenn
/* Coldfire C Header File
2
 * Copyright Freescale Semiconductor Inc
3
 * All rights reserved.
4
 *
5
 * 2008/05/23 Revision: 0.95
6
 *
7
 * (c) Copyright UNIS, a.s. 1997-2008
8
 * UNIS, a.s.
9
 * Jundrovska 33
10
 * 624 00 Brno
11
 * Czech Republic
12
 * http      : www.processorexpert.com
13
 * mail      : info@processorexpert.com
14
 */
15
 
16
#ifndef __MCF52221_CLOCK_H__
17
#define __MCF52221_CLOCK_H__
18
 
19
 
20
/*********************************************************************
21
*
22
* Clock Module (CLOCK)
23
*
24
*********************************************************************/
25
 
26
/* Register read/write macros */
27
#define MCF_CLOCK_SYNCR                      (*(vuint16*)(0x40120000))
28
#define MCF_CLOCK_SYNSR                      (*(vuint8 *)(0x40120002))
29
#define MCF_CLOCK_ROCR                       (*(vuint16*)(0x40120004))
30
#define MCF_CLOCK_LPDR                       (*(vuint8 *)(0x40120007))
31
#define MCF_CLOCK_CCHR                       (*(vuint8 *)(0x40120008))
32
#define MCF_CLOCK_CCLR                       (*(vuint8 *)(0x40120009))
33
#define MCF_CLOCK_OCHR                       (*(vuint8 *)(0x4012000A))
34
#define MCF_CLOCK_OCLR                       (*(vuint8 *)(0x4012000B))
35
#define MCF_CLOCK_RTCDR                      (*(vuint32*)(0x4012000C))
36
 
37
 
38
/* Bit definitions and macros for MCF_CLOCK_SYNCR */
39
#define MCF_CLOCK_SYNCR_PLLEN                (0x1)
40
#define MCF_CLOCK_SYNCR_PLLMODE              (0x2)
41
#define MCF_CLOCK_SYNCR_CLKSRC               (0x4)
42
#define MCF_CLOCK_SYNCR_FWKUP                (0x20)
43
#define MCF_CLOCK_SYNCR_DISCLK               (0x40)
44
#define MCF_CLOCK_SYNCR_LOCEN                (0x80)
45
#define MCF_CLOCK_SYNCR_RFD(x)               (((x)&0x7)<<0x8)
46
#define MCF_CLOCK_SYNCR_LOCRE                (0x800)
47
#define MCF_CLOCK_SYNCR_MFD(x)               (((x)&0x7)<<0xC)
48
#define MCF_CLOCK_SYNCR_LOLRE                (0x8000)
49
 
50
/* Bit definitions and macros for MCF_CLOCK_SYNSR */
51
#define MCF_CLOCK_SYNSR_LOCS                 (0x4)
52
#define MCF_CLOCK_SYNSR_LOCK                 (0x8)
53
#define MCF_CLOCK_SYNSR_LOCKS                (0x10)
54
#define MCF_CLOCK_SYNSR_CRYOSC               (0x20)
55
#define MCF_CLOCK_SYNSR_OCOSC                (0x40)
56
#define MCF_CLOCK_SYNSR_EXTOSC               (0x80)
57
 
58
/* Bit definitions and macros for MCF_CLOCK_ROCR */
59
#define MCF_CLOCK_ROCR_TRIM(x)               (((x)&0x3FF)<<0)
60
 
61
/* Bit definitions and macros for MCF_CLOCK_LPDR */
62
#define MCF_CLOCK_LPDR_LPD(x)                (((x)&0xF)<<0)
63
 
64
/* Bit definitions and macros for MCF_CLOCK_CCHR */
65
#define MCF_CLOCK_CCHR_CCHR(x)               (((x)&0x7)<<0)
66
 
67
/* Bit definitions and macros for MCF_CLOCK_CCLR */
68
#define MCF_CLOCK_CCLR_OSCSEL                (0x1)
69
 
70
/* Bit definitions and macros for MCF_CLOCK_OCHR */
71
#define MCF_CLOCK_OCHR_STBY                  (0x40)
72
#define MCF_CLOCK_OCHR_OCOEN                 (0x80)
73
 
74
/* Bit definitions and macros for MCF_CLOCK_OCLR */
75
#define MCF_CLOCK_OCLR_RANGE                 (0x10)
76
#define MCF_CLOCK_OCLR_LPEN                  (0x20)
77
#define MCF_CLOCK_OCLR_REFS                  (0x40)
78
#define MCF_CLOCK_OCLR_OSCEN                 (0x80)
79
 
80
/* Bit definitions and macros for MCF_CLOCK_RTCDR */
81
#define MCF_CLOCK_RTCDR_RTCDF(x)             (((x)&0xFFFFFFFF)<<0)
82
 
83
 
84
#endif /* __MCF52221_CLOCK_H__ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.