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_SCM.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.9
6
 */
7
 
8
#ifndef __MCF5282_SCM_H__
9
#define __MCF5282_SCM_H__
10
 
11
 
12
/*********************************************************************
13
*
14
* System Control Module (SCM)
15
*
16
*********************************************************************/
17
 
18
/* Register read/write macros */
19
#define MCF_SCM_RAMBAR                       (*(vuint32*)(&__IPSBAR[0x8]))
20
#define MCF_SCM_CRSR                         (*(vuint8 *)(&__IPSBAR[0x10]))
21
#define MCF_SCM_CWCR                         (*(vuint8 *)(&__IPSBAR[0x11]))
22
#define MCF_SCM_CWSR                         (*(vuint8 *)(&__IPSBAR[0x13]))
23
#define MCF_SCM_DMAREQC                      (*(vuint32*)(&__IPSBAR[0x14]))
24
#define MCF_SCM_MPARK                        (*(vuint32*)(&__IPSBAR[0x1C]))
25
#define MCF_SCM_MPR                          (*(vuint8 *)(&__IPSBAR[0x20]))
26
#define MCF_SCM_PACR0                        (*(vuint8 *)(&__IPSBAR[0x24]))
27
#define MCF_SCM_PACR1                        (*(vuint8 *)(&__IPSBAR[0x25]))
28
#define MCF_SCM_PACR2                        (*(vuint8 *)(&__IPSBAR[0x26]))
29
#define MCF_SCM_PACR3                        (*(vuint8 *)(&__IPSBAR[0x27]))
30
#define MCF_SCM_PACR4                        (*(vuint8 *)(&__IPSBAR[0x28]))
31
#define MCF_SCM_PACR5                        (*(vuint8 *)(&__IPSBAR[0x2A]))
32
#define MCF_SCM_PACR6                        (*(vuint8 *)(&__IPSBAR[0x2B]))
33
#define MCF_SCM_PACR7                        (*(vuint8 *)(&__IPSBAR[0x2C]))
34
#define MCF_SCM_PACR8                        (*(vuint8 *)(&__IPSBAR[0x2E]))
35
#define MCF_SCM_GPACR0                       (*(vuint8 *)(&__IPSBAR[0x30]))
36
#define MCF_SCM_GPACR1                       (*(vuint8 *)(&__IPSBAR[0x31]))
37
#define MCF_SCM_GPACR(x)                     (*(vuint8 *)(&__IPSBAR[0x30 + ((x)*0x1)]))
38
 
39
/* Other macros */
40
#define MCF_SCM_IPSBAR                       (*(vuint32*)(&__IPSBAR[0x0]))
41
#define MCF_SCM_IPSBAR_V                     (0x1)
42
#define MCF_SCM_IPSBAR_BA(x)                 ((x)&0xC0000000)
43
 
44
 
45
/* Bit definitions and macros for MCF_SCM_RAMBAR */
46
#define MCF_SCM_RAMBAR_BDE                   (0x200)
47
#define MCF_SCM_RAMBAR_BA(x)                 ((x)&0xFFFF0000)
48
 
49
/* Bit definitions and macros for MCF_SCM_CRSR */
50
#define MCF_SCM_CRSR_CWDR                    (0x20)
51
#define MCF_SCM_CRSR_EXT                     (0x80)
52
 
53
/* Bit definitions and macros for MCF_SCM_CWCR */
54
#define MCF_SCM_CWCR_CWTIF                   (0x1)
55
#define MCF_SCM_CWCR_CWTAVAL                 (0x2)
56
#define MCF_SCM_CWCR_CWTA                    (0x4)
57
#define MCF_SCM_CWCR_CWT(x)                  (((x)&0x7)<<0x3)
58
#define MCF_SCM_CWCR_CWT_2_9                 (0)
59
#define MCF_SCM_CWCR_CWT_2_11                (0x8)
60
#define MCF_SCM_CWCR_CWT_2_13                (0x10)
61
#define MCF_SCM_CWCR_CWT_2_15                (0x18)
62
#define MCF_SCM_CWCR_CWT_2_19                (0x20)
63
#define MCF_SCM_CWCR_CWT_2_23                (0x28)
64
#define MCF_SCM_CWCR_CWT_2_27                (0x30)
65
#define MCF_SCM_CWCR_CWT_2_31                (0x38)
66
#define MCF_SCM_CWCR_CWRI                    (0x40)
67
#define MCF_SCM_CWCR_CWE                     (0x80)
68
 
69
/* Bit definitions and macros for MCF_SCM_CWSR */
70
#define MCF_SCM_CWSR_CWSR(x)                 (((x)&0xFF)<<0)
71
 
72
/* Bit definitions and macros for MCF_SCM_DMAREQC */
73
#define MCF_SCM_DMAREQC_DMAC0(x)             (((x)&0xF)<<0)
74
#define MCF_SCM_DMAREQC_DMAC1(x)             (((x)&0xF)<<0x4)
75
#define MCF_SCM_DMAREQC_DMAC2(x)             (((x)&0xF)<<0x8)
76
#define MCF_SCM_DMAREQC_DMAC3(x)             (((x)&0xF)<<0xC)
77
 
78
/* Bit definitions and macros for MCF_SCM_MPARK */
79
#define MCF_SCM_MPARK_LCKOUT_TIME(x)         (((x)&0xF)<<0x8)
80
#define MCF_SCM_MPARK_PRKLAST                (0x1000)
81
#define MCF_SCM_MPARK_TIMEOUT                (0x2000)
82
#define MCF_SCM_MPARK_FIXED                  (0x4000)
83
#define MCF_SCM_MPARK_M1_PRTY(x)             (((x)&0x3)<<0x10)
84
#define MCF_SCM_MPARK_M0_PRTY(x)             (((x)&0x3)<<0x12)
85
#define MCF_SCM_MPARK_M2_PRTY(x)             (((x)&0x3)<<0x14)
86
#define MCF_SCM_MPARK_M3_PRTY(x)             (((x)&0x3)<<0x16)
87
#define MCF_SCM_MPARK_BCR24BIT               (0x1000000)
88
#define MCF_SCM_MPARK_M2_P_EN                (0x2000000)
89
 
90
/* Bit definitions and macros for MCF_SCM_MPR */
91
#define MCF_SCM_MPR_MPR(x)                   (((x)&0xF)<<0)
92
 
93
/* Bit definitions and macros for MCF_SCM_PACR0 */
94
#define MCF_SCM_PACR0_ACCESS_CTRL0(x)        (((x)&0x7)<<0)
95
#define MCF_SCM_PACR0_LOCK0                  (0x8)
96
#define MCF_SCM_PACR0_ACCESS_CTRL1(x)        (((x)&0x7)<<0x4)
97
#define MCF_SCM_PACR0_LOCK1                  (0x80)
98
 
99
/* Bit definitions and macros for MCF_SCM_PACR1 */
100
#define MCF_SCM_PACR1_ACCESS_CTRL0(x)        (((x)&0x7)<<0)
101
#define MCF_SCM_PACR1_LOCK0                  (0x8)
102
#define MCF_SCM_PACR1_ACCESS_CTRL1(x)        (((x)&0x7)<<0x4)
103
#define MCF_SCM_PACR1_LOCK1                  (0x80)
104
 
105
/* Bit definitions and macros for MCF_SCM_PACR2 */
106
#define MCF_SCM_PACR2_ACCESS_CTRL0(x)        (((x)&0x7)<<0)
107
#define MCF_SCM_PACR2_LOCK0                  (0x8)
108
#define MCF_SCM_PACR2_ACCESS_CTRL1(x)        (((x)&0x7)<<0x4)
109
#define MCF_SCM_PACR2_LOCK1                  (0x80)
110
 
111
/* Bit definitions and macros for MCF_SCM_PACR3 */
112
#define MCF_SCM_PACR3_ACCESS_CTRL0(x)        (((x)&0x7)<<0)
113
#define MCF_SCM_PACR3_LOCK0                  (0x8)
114
#define MCF_SCM_PACR3_ACCESS_CTRL1(x)        (((x)&0x7)<<0x4)
115
#define MCF_SCM_PACR3_LOCK1                  (0x80)
116
 
117
/* Bit definitions and macros for MCF_SCM_PACR4 */
118
#define MCF_SCM_PACR4_ACCESS_CTRL0(x)        (((x)&0x7)<<0)
119
#define MCF_SCM_PACR4_LOCK0                  (0x8)
120
#define MCF_SCM_PACR4_ACCESS_CTRL1(x)        (((x)&0x7)<<0x4)
121
#define MCF_SCM_PACR4_LOCK1                  (0x80)
122
 
123
/* Bit definitions and macros for MCF_SCM_PACR5 */
124
#define MCF_SCM_PACR5_ACCESS_CTRL0(x)        (((x)&0x7)<<0)
125
#define MCF_SCM_PACR5_LOCK0                  (0x8)
126
#define MCF_SCM_PACR5_ACCESS_CTRL1(x)        (((x)&0x7)<<0x4)
127
#define MCF_SCM_PACR5_LOCK1                  (0x80)
128
 
129
/* Bit definitions and macros for MCF_SCM_PACR6 */
130
#define MCF_SCM_PACR6_ACCESS_CTRL0(x)        (((x)&0x7)<<0)
131
#define MCF_SCM_PACR6_LOCK0                  (0x8)
132
#define MCF_SCM_PACR6_ACCESS_CTRL1(x)        (((x)&0x7)<<0x4)
133
#define MCF_SCM_PACR6_LOCK1                  (0x80)
134
 
135
/* Bit definitions and macros for MCF_SCM_PACR7 */
136
#define MCF_SCM_PACR7_ACCESS_CTRL0(x)        (((x)&0x7)<<0)
137
#define MCF_SCM_PACR7_LOCK0                  (0x8)
138
#define MCF_SCM_PACR7_ACCESS_CTRL1(x)        (((x)&0x7)<<0x4)
139
#define MCF_SCM_PACR7_LOCK1                  (0x80)
140
 
141
/* Bit definitions and macros for MCF_SCM_PACR8 */
142
#define MCF_SCM_PACR8_ACCESS_CTRL0(x)        (((x)&0x7)<<0)
143
#define MCF_SCM_PACR8_LOCK0                  (0x8)
144
#define MCF_SCM_PACR8_ACCESS_CTRL1(x)        (((x)&0x7)<<0x4)
145
#define MCF_SCM_PACR8_LOCK1                  (0x80)
146
 
147
/* Bit definitions and macros for MCF_SCM_GPACR */
148
#define MCF_SCM_GPACR_ACCESS_CTRL(x)         (((x)&0xF)<<0)
149
#define MCF_SCM_GPACR_LOCK                   (0x80)
150
 
151
 
152
#endif /* __MCF5282_SCM_H__ */

powered by: WebSVN 2.1.0

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