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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [ColdFire_MCF52259_CodeWarrior/] [Freescale_Headers/] [MCF52259_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
 * 2008/04/17 Revision: 0.2
6
 *
7
 * (c) Copyright UNIS, spol. s r.o. 1997-2008
8
 * UNIS, spol. s r.o.
9
 * Jundrovska 33
10
 * 624 00 Brno
11
 * Czech Republic
12
 * http      : www.processorexpert.com
13
 * mail      : info@processorexpert.com
14
 */
15
 
16
#ifndef __MCF52259_SCM_H__
17
#define __MCF52259_SCM_H__
18
 
19
 
20
/*********************************************************************
21
*
22
* System Control Module (SCM)
23
*
24
*********************************************************************/
25
 
26
/* Register read/write macros */
27
#define MCF_SCM_RAMBAR                       (*(vuint32*)(&__IPSBAR[0x8]))
28
#define MCF_SCM_PPMRH                        (*(vuint32*)(&__IPSBAR[0xC]))
29
#define MCF_SCM_CRSR                         (*(vuint8 *)(&__IPSBAR[0x10]))
30
#define MCF_SCM_CWCR                         (*(vuint8 *)(&__IPSBAR[0x11]))
31
#define MCF_SCM_CWSR                         (*(vuint8 *)(&__IPSBAR[0x13]))
32
#define MCF_SCM_DMAREQC                      (*(vuint32*)(&__IPSBAR[0x14]))
33
#define MCF_SCM_PPMRL                        (*(vuint32*)(&__IPSBAR[0x18]))
34
#define MCF_SCM_MPARK                        (*(vuint32*)(&__IPSBAR[0x1C]))
35
#define MCF_SCM_MPR                          (*(vuint8 *)(&__IPSBAR[0x20]))
36
#define MCF_SCM_PPMRS                        (*(vuint8 *)(&__IPSBAR[0x21]))
37
#define MCF_SCM_PPMRC                        (*(vuint8 *)(&__IPSBAR[0x22]))
38
#define MCF_SCM_IPSBMT                       (*(vuint8 *)(&__IPSBAR[0x23]))
39
#define MCF_SCM_PACR0                        (*(vuint8 *)(&__IPSBAR[0x24]))
40
#define MCF_SCM_PACR1                        (*(vuint8 *)(&__IPSBAR[0x25]))
41
#define MCF_SCM_PACR2                        (*(vuint8 *)(&__IPSBAR[0x26]))
42
#define MCF_SCM_PACR3                        (*(vuint8 *)(&__IPSBAR[0x27]))
43
#define MCF_SCM_PACR4                        (*(vuint8 *)(&__IPSBAR[0x28]))
44
#define MCF_SCM_PACR5                        (*(vuint8 *)(&__IPSBAR[0x29]))
45
#define MCF_SCM_PACR6                        (*(vuint8 *)(&__IPSBAR[0x2A]))
46
#define MCF_SCM_PACR7                        (*(vuint8 *)(&__IPSBAR[0x2B]))
47
#define MCF_SCM_PACR8                        (*(vuint8 *)(&__IPSBAR[0x2C]))
48
#define MCF_SCM_PACR10                       (*(vuint8 *)(&__IPSBAR[0x2E]))
49
#define MCF_SCM_GPACR0                       (*(vuint8 *)(&__IPSBAR[0x30]))
50
#define MCF_SCM_GPACR1                       (*(vuint8 *)(&__IPSBAR[0x31]))
51
#define MCF_SCM_PACR(x)                      (*(vuint8 *)(&__IPSBAR[0x24 + ((x)*0x1)]))
52
#define MCF_SCM_GPACR(x)                     (*(vuint8 *)(&__IPSBAR[0x30 + ((x)*0x1)]))
53
 
54
/* Other macros */
55
#define MCF_SCM_IPSBAR                       (*(vuint32*)(&__IPSBAR[0x0]))
56
#define MCF_SCM_IPSBAR_V                     (0x1)
57
#define MCF_SCM_IPSBAR_BA(x)                 ((x)&0xC0000000)
58
 
59
 
60
/* Bit definitions and macros for MCF_SCM_RAMBAR */
61
#define MCF_SCM_RAMBAR_BDE                   (0x200)
62
#define MCF_SCM_RAMBAR_BA(x)                 ((x)&0xFFFF0000)
63
 
64
/* Bit definitions and macros for MCF_SCM_PPMRH */
65
#define MCF_SCM_PPMRH_CDGPIO                 (0x1)
66
#define MCF_SCM_PPMRH_CDEPORT                (0x2)
67
#define MCF_SCM_PPMRH_CDPIT0                 (0x8)
68
#define MCF_SCM_PPMRH_CDPIT1                 (0x10)
69
#define MCF_SCM_PPMRH_CDADC                  (0x80)
70
#define MCF_SCM_PPMRH_CDGPT                  (0x100)
71
#define MCF_SCM_PPMRH_CDPWM                  (0x200)
72
#define MCF_SCM_PPMRH_CDCFM                  (0x800)
73
#define MCF_SCM_PPMRH_CDUSB                  (0x1000)
74
 
75
/* Bit definitions and macros for MCF_SCM_CRSR */
76
#define MCF_SCM_CRSR_EXT                     (0x80)
77
 
78
/* Bit definitions and macros for MCF_SCM_CWCR */
79
#define MCF_SCM_CWCR_CWTIF                   (0x1)
80
#define MCF_SCM_CWCR_CWTAVAL                 (0x2)
81
#define MCF_SCM_CWCR_CWTA                    (0x4)
82
#define MCF_SCM_CWCR_CWT(x)                  (((x)&0x7)<<0x3)
83
#define MCF_SCM_CWCR_CWT_2_9                 (0)
84
#define MCF_SCM_CWCR_CWT_2_11                (0x8)
85
#define MCF_SCM_CWCR_CWT_2_13                (0x10)
86
#define MCF_SCM_CWCR_CWT_2_15                (0x18)
87
#define MCF_SCM_CWCR_CWT_2_19                (0x20)
88
#define MCF_SCM_CWCR_CWT_2_23                (0x28)
89
#define MCF_SCM_CWCR_CWT_2_27                (0x30)
90
#define MCF_SCM_CWCR_CWT_2_31                (0x38)
91
#define MCF_SCM_CWCR_CWRI                    (0x40)
92
#define MCF_SCM_CWCR_CWE                     (0x80)
93
 
94
/* Bit definitions and macros for MCF_SCM_CWSR */
95
#define MCF_SCM_CWSR_CWSR(x)                 (((x)&0xFF)<<0)
96
 
97
/* Bit definitions and macros for MCF_SCM_DMAREQC */
98
#define MCF_SCM_DMAREQC_DMAC0(x)             (((x)&0xF)<<0)
99
#define MCF_SCM_DMAREQC_DMAC1(x)             (((x)&0xF)<<0x4)
100
#define MCF_SCM_DMAREQC_DMAC2(x)             (((x)&0xF)<<0x8)
101
#define MCF_SCM_DMAREQC_DMAC3(x)             (((x)&0xF)<<0xC)
102
 
103
/* Bit definitions and macros for MCF_SCM_PPMRL */
104
#define MCF_SCM_PPMRL_CDG                    (0x2)
105
#define MCF_SCM_PPMRL_CDMINIBUS              (0x8)
106
#define MCF_SCM_PPMRL_CDDMA                  (0x10)
107
#define MCF_SCM_PPMRL_CDUART0                (0x20)
108
#define MCF_SCM_PPMRL_CDUART1                (0x40)
109
#define MCF_SCM_PPMRL_CDUART2                (0x80)
110
#define MCF_SCM_PPMRL_CDI2C0                 (0x200)
111
#define MCF_SCM_PPMRL_CDQSPI                 (0x400)
112
#define MCF_SCM_PPMRL_CDI2C1                 (0x800)
113
#define MCF_SCM_PPMRL_CDDTIM0                (0x2000)
114
#define MCF_SCM_PPMRL_CDDTIM1                (0x4000)
115
#define MCF_SCM_PPMRL_CDDTIM2                (0x8000)
116
#define MCF_SCM_PPMRL_CDDTIM3                (0x10000)
117
#define MCF_SCM_PPMRL_CDINTC0                (0x20000)
118
#define MCF_SCM_PPMRL_CDINTC1                (0x40000)
119
#define MCF_SCM_PPMRL_CDFEC                  (0x200000)
120
 
121
/* Bit definitions and macros for MCF_SCM_MPARK */
122
#define MCF_SCM_MPARK_LCKOUT_TIME(x)         (((x)&0xF)<<0x8)
123
#define MCF_SCM_MPARK_PRKLAST                (0x1000)
124
#define MCF_SCM_MPARK_TIMEOUT                (0x2000)
125
#define MCF_SCM_MPARK_FIXED                  (0x4000)
126
#define MCF_SCM_MPARK_M1_PRTY(x)             (((x)&0x3)<<0x10)
127
#define MCF_SCM_MPARK_M0_PRTY(x)             (((x)&0x3)<<0x12)
128
#define MCF_SCM_MPARK_M2_PRTY(x)             (((x)&0x3)<<0x14)
129
#define MCF_SCM_MPARK_M3_PRTY(x)             (((x)&0x3)<<0x16)
130
#define MCF_SCM_MPARK_BCR24BIT               (0x1000000)
131
#define MCF_SCM_MPARK_M2_P_EN                (0x2000000)
132
 
133
/* Bit definitions and macros for MCF_SCM_MPR */
134
#define MCF_SCM_MPR_MPR(x)                   (((x)&0xF)<<0)
135
 
136
/* Bit definitions and macros for MCF_SCM_PPMRS */
137
#define MCF_SCM_PPMRS_PPMRS(x)               (((x)&0x7F)<<0)
138
#define MCF_SCM_PPMRS_DISABLE_ALL            (0x40)
139
#define MCF_SCM_PPMRS_DISABLE_CFM            (0x2B)
140
#define MCF_SCM_PPMRS_DISABLE_CAN            (0x2A)
141
#define MCF_SCM_PPMRS_DISABLE_PWM            (0x29)
142
#define MCF_SCM_PPMRS_DISABLE_GPT            (0x28)
143
#define MCF_SCM_PPMRS_DISABLE_ADC            (0x27)
144
#define MCF_SCM_PPMRS_DISABLE_PIT1           (0x24)
145
#define MCF_SCM_PPMRS_DISABLE_PIT0           (0x23)
146
#define MCF_SCM_PPMRS_DISABLE_EPORT          (0x21)
147
#define MCF_SCM_PPMRS_DISABLE_PORTS          (0x20)
148
#define MCF_SCM_PPMRS_DISABLE_INTC           (0x11)
149
#define MCF_SCM_PPMRS_DISABLE_DTIM3          (0x10)
150
#define MCF_SCM_PPMRS_DISABLE_DTIM2          (0xF)
151
#define MCF_SCM_PPMRS_DISABLE_DTIM1          (0xE)
152
#define MCF_SCM_PPMRS_DISABLE_DTIM0          (0xD)
153
#define MCF_SCM_PPMRS_DISABLE_QSPI           (0xA)
154
#define MCF_SCM_PPMRS_DISABLE_I2C            (0x9)
155
#define MCF_SCM_PPMRS_DISABLE_UART2          (0x7)
156
#define MCF_SCM_PPMRS_DISABLE_UART1          (0x6)
157
#define MCF_SCM_PPMRS_DISABLE_UART0          (0x5)
158
#define MCF_SCM_PPMRS_DISABLE_DMA            (0x4)
159
#define MCF_SCM_PPMRS_SET_CDG                (0x1)
160
 
161
/* Bit definitions and macros for MCF_SCM_PPMRC */
162
#define MCF_SCM_PPMRC_PPMRC(x)               (((x)&0x7F)<<0)
163
#define MCF_SCM_PPMRC_ENABLE_ALL             (0x40)
164
#define MCF_SCM_PPMRC_ENABLE_CFM             (0x2B)
165
#define MCF_SCM_PPMRC_ENABLE_CAN             (0x2A)
166
#define MCF_SCM_PPMRC_ENABLE_PWM             (0x29)
167
#define MCF_SCM_PPMRC_ENABLE_GPT             (0x28)
168
#define MCF_SCM_PPMRC_ENABLE_ADC             (0x27)
169
#define MCF_SCM_PPMRC_ENABLE_PIT1            (0x24)
170
#define MCF_SCM_PPMRC_ENABLE_PIT0            (0x23)
171
#define MCF_SCM_PPMRC_ENABLE_EPORT           (0x21)
172
#define MCF_SCM_PPMRC_ENABLE_PORTS           (0x20)
173
#define MCF_SCM_PPMRC_ENABLE_INTC            (0x11)
174
#define MCF_SCM_PPMRC_ENABLE_DTIM3           (0x10)
175
#define MCF_SCM_PPMRC_ENABLE_DTIM2           (0xF)
176
#define MCF_SCM_PPMRC_ENABLE_DTIM1           (0xE)
177
#define MCF_SCM_PPMRC_ENABLE_DTIM0           (0xD)
178
#define MCF_SCM_PPMRC_ENABLE_QSPI            (0xA)
179
#define MCF_SCM_PPMRC_ENABLE_I2C             (0x9)
180
#define MCF_SCM_PPMRC_ENABLE_UART2           (0x7)
181
#define MCF_SCM_PPMRC_ENABLE_UART1           (0x6)
182
#define MCF_SCM_PPMRC_ENABLE_UART0           (0x5)
183
#define MCF_SCM_PPMRC_ENABLE_DMA             (0x4)
184
#define MCF_SCM_PPMRC_CLEAR_CDG              (0x1)
185
 
186
/* Bit definitions and macros for MCF_SCM_IPSBMT */
187
#define MCF_SCM_IPSBMT_BMT(x)                (((x)&0x7)<<0)
188
#define MCF_SCM_IPSBMT_BMT_CYCLES_1024       (0)
189
#define MCF_SCM_IPSBMT_BMT_CYCLES_512        (0x1)
190
#define MCF_SCM_IPSBMT_BMT_CYCLES_256        (0x2)
191
#define MCF_SCM_IPSBMT_BMT_CYCLES_128        (0x3)
192
#define MCF_SCM_IPSBMT_BMT_CYCLES_64         (0x4)
193
#define MCF_SCM_IPSBMT_BMT_CYCLES_32         (0x5)
194
#define MCF_SCM_IPSBMT_BMT_CYCLES_16         (0x6)
195
#define MCF_SCM_IPSBMT_BMT_CYCLES_8          (0x7)
196
#define MCF_SCM_IPSBMT_BME                   (0x8)
197
 
198
/* Bit definitions and macros for MCF_SCM_PACR */
199
#define MCF_SCM_PACR_ACCESS_CTRL0(x)         (((x)&0x7)<<0)
200
#define MCF_SCM_PACR_LOCK0                   (0x8)
201
#define MCF_SCM_PACR_ACCESS_CTRL1(x)         (((x)&0x7)<<0x4)
202
#define MCF_SCM_PACR_LOCK1                   (0x80)
203
 
204
/* Bit definitions and macros for MCF_SCM_PACR10 */
205
#define MCF_SCM_PACR10_ACCESS_CTRL0(x)       (((x)&0x7)<<0)
206
#define MCF_SCM_PACR10_LOCK0                 (0x8)
207
#define MCF_SCM_PACR10_ACCESS_CTRL1(x)       (((x)&0x7)<<0x4)
208
#define MCF_SCM_PACR10_LOCK1                 (0x80)
209
 
210
/* Bit definitions and macros for MCF_SCM_GPACR */
211
#define MCF_SCM_GPACR_ACCESS_CTRL(x)         (((x)&0xF)<<0)
212
#define MCF_SCM_GPACR_LOCK                   (0x80)
213
 
214
 
215
#endif /* __MCF52259_SCM_H__ */

powered by: WebSVN 2.1.0

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