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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [ColdFire_MCF52233_Eclipse/] [RTOSDemo/] [MCF5223x/] [MCF52235_CLOCK.h] - Blame information for rev 578

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
 * 2007/03/19 Revision: 0.91
6
 */
7
 
8
#ifndef __MCF52235_CLOCK_H__
9
#define __MCF52235_CLOCK_H__
10
 
11
 
12
/*********************************************************************
13
*
14
* Clock Module (CLOCK)
15
*
16
*********************************************************************/
17
 
18
/* Register read/write macros */
19
#define MCF_CLOCK_SYNCR                      (*(vuint16*)(&__IPSBAR[0x120000]))
20
#define MCF_CLOCK_SYNSR                      (*(vuint8 *)(&__IPSBAR[0x120002]))
21
#define MCF_CLOCK_LPCR                       (*(vuint8 *)(&__IPSBAR[0x120007]))
22
#define MCF_CLOCK_CCHR                       (*(vuint8 *)(&__IPSBAR[0x120008]))
23
#define MCF_CLOCK_RTCDR                      (*(vuint32*)(&__IPSBAR[0x12000C]))
24
 
25
 
26
/* Bit definitions and macros for MCF_CLOCK_SYNCR */
27
#define MCF_CLOCK_SYNCR_PLLEN                (0x1)
28
#define MCF_CLOCK_SYNCR_PLLMODE              (0x2)
29
#define MCF_CLOCK_SYNCR_CLKSRC               (0x4)
30
#define MCF_CLOCK_SYNCR_FWKUP                (0x20)
31
#define MCF_CLOCK_SYNCR_DISCLK               (0x40)
32
#define MCF_CLOCK_SYNCR_LOCEN                (0x80)
33
#define MCF_CLOCK_SYNCR_RFD(x)               (((x)&0x7)<<0x8)
34
#define MCF_CLOCK_SYNCR_LOCRE                (0x800)
35
#define MCF_CLOCK_SYNCR_MFD(x)               (((x)&0x7)<<0xC)
36
#define MCF_CLOCK_SYNCR_LOLRE                (0x8000)
37
 
38
/* Bit definitions and macros for MCF_CLOCK_SYNSR */
39
#define MCF_CLOCK_SYNSR_LOCS                 (0x4)
40
#define MCF_CLOCK_SYNSR_LOCK                 (0x8)
41
#define MCF_CLOCK_SYNSR_LOCKS                (0x10)
42
#define MCF_CLOCK_SYNSR_EXTOSC               (0x80)
43
 
44
/* Bit definitions and macros for MCF_CLOCK_LPCR */
45
#define MCF_CLOCK_LPCR_LPD(x)                (((x)&0xF)<<0)
46
 
47
/* Bit definitions and macros for MCF_CLOCK_CCHR */
48
#define MCF_CLOCK_CCHR_CCHR(x)               (((x)&0x7)<<0)
49
 
50
/* Bit definitions and macros for MCF_CLOCK_RTCDR */
51
#define MCF_CLOCK_RTCDR_RTCDF(x)             (((x)&0xFFFFFFFF)<<0)
52
 
53
 
54
#endif /* __MCF52235_CLOCK_H__ */

powered by: WebSVN 2.1.0

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