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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [ColdFire_MCF5282_Eclipse/] [RTOSDemo/] [MCF5282/] [MCF5282_CCM.h] - Blame information for rev 587

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
 * 2007/03/19 Revision: 0.9
6
 */
7
 
8
#ifndef __MCF5282_CCM_H__
9
#define __MCF5282_CCM_H__
10
 
11
 
12
/*********************************************************************
13
*
14
* Chip Configuration Module (CCM)
15
*
16
*********************************************************************/
17
 
18
/* Register read/write macros */
19
#define MCF_CCM_CCR                          (*(vuint16*)(&__IPSBAR[0x110004]))
20
#define MCF_CCM_RCON                         (*(vuint16*)(&__IPSBAR[0x110008]))
21
#define MCF_CCM_CIR                          (*(vuint16*)(&__IPSBAR[0x11000A]))
22
 
23
 
24
/* Bit definitions and macros for MCF_CCM_CCR */
25
#define MCF_CCM_CCR_BMT(x)                   (((x)&0x7)<<0)
26
#define MCF_CCM_CCR_BMT_65536                (0)
27
#define MCF_CCM_CCR_BMT_32768                (0x1)
28
#define MCF_CCM_CCR_BMT_16384                (0x2)
29
#define MCF_CCM_CCR_BMT_8192                 (0x3)
30
#define MCF_CCM_CCR_BMT_4096                 (0x4)
31
#define MCF_CCM_CCR_BMT_2048                 (0x5)
32
#define MCF_CCM_CCR_BMT_1024                 (0x6)
33
#define MCF_CCM_CCR_BMT_512                  (0x7)
34
#define MCF_CCM_CCR_BME                      (0x8)
35
#define MCF_CCM_CCR_PSTEN                    (0x20)
36
#define MCF_CCM_CCR_SZEN                     (0x40)
37
#define MCF_CCM_CCR_MODE(x)                  (((x)&0x7)<<0x8)
38
#define MCF_CCM_CCR_LOAD                     (0x8000)
39
 
40
/* Bit definitions and macros for MCF_CCM_RCON */
41
#define MCF_CCM_RCON_MODE                    (0x1)
42
#define MCF_CCM_RCON_BOOTSEL                 (0x4)
43
#define MCF_CCM_RCON_BOOTPS(x)               (((x)&0x3)<<0x3)
44
#define MCF_CCM_RCON_RLOAD                   (0x20)
45
#define MCF_CCM_RCON_RPLLREF                 (0x40)
46
#define MCF_CCM_RCON_RPLLSEL                 (0x80)
47
#define MCF_CCM_RCON_RCSC(x)                 (((x)&0x3)<<0x8)
48
 
49
/* Bit definitions and macros for MCF_CCM_CIR */
50
#define MCF_CCM_CIR_PRN(x)                   (((x)&0xFF)<<0)
51
#define MCF_CCM_CIR_PIN(x)                   (((x)&0xFF)<<0x8)
52
 
53
 
54
#endif /* __MCF5282_CCM_H__ */

powered by: WebSVN 2.1.0

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