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_CFM.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_CFM_H__
9
#define __MCF5282_CFM_H__
10
 
11
 
12
/*********************************************************************
13
*
14
* ColdFire Flash Module (CFM)
15
*
16
*********************************************************************/
17
 
18
/* Register read/write macros */
19
#define MCF_CFM_CFMMCR                       (*(vuint16*)(&__IPSBAR[0x1D0000]))
20
#define MCF_CFM_CFMCLKD                      (*(vuint8 *)(&__IPSBAR[0x1D0002]))
21
#define MCF_CFM_CFMSEC                       (*(vuint32*)(&__IPSBAR[0x1D0008]))
22
#define MCF_CFM_CFMPROT                      (*(vuint32*)(&__IPSBAR[0x1D0010]))
23
#define MCF_CFM_CFMSACC                      (*(vuint32*)(&__IPSBAR[0x1D0014]))
24
#define MCF_CFM_CFMDACC                      (*(vuint32*)(&__IPSBAR[0x1D0018]))
25
#define MCF_CFM_CFMUSTAT                     (*(vuint8 *)(&__IPSBAR[0x1D0020]))
26
#define MCF_CFM_CFMCMD                       (*(vuint8 *)(&__IPSBAR[0x1D0024]))
27
 
28
 
29
/* Bit definitions and macros for MCF_CFM_CFMMCR */
30
#define MCF_CFM_CFMMCR_KEYACC                (0x20)
31
#define MCF_CFM_CFMMCR_CCIE                  (0x40)
32
#define MCF_CFM_CFMMCR_CBEIE                 (0x80)
33
#define MCF_CFM_CFMMCR_AEIE                  (0x100)
34
#define MCF_CFM_CFMMCR_PVIE                  (0x200)
35
#define MCF_CFM_CFMMCR_LOCK                  (0x400)
36
 
37
/* Bit definitions and macros for MCF_CFM_CFMCLKD */
38
#define MCF_CFM_CFMCLKD_DIV(x)               (((x)&0x3F)<<0)
39
#define MCF_CFM_CFMCLKD_PRDIV8               (0x40)
40
#define MCF_CFM_CFMCLKD_DIVLD                (0x80)
41
 
42
/* Bit definitions and macros for MCF_CFM_CFMSEC */
43
#define MCF_CFM_CFMSEC_SEC(x)                (((x)&0xFFFF)<<0)
44
#define MCF_CFM_CFMSEC_SECSTAT               (0x40000000)
45
#define MCF_CFM_CFMSEC_KEYEN                 (0x80000000)
46
 
47
/* Bit definitions and macros for MCF_CFM_CFMPROT */
48
#define MCF_CFM_CFMPROT_PROT(x)              (((x)&0xFFFFFFFF)<<0)
49
 
50
/* Bit definitions and macros for MCF_CFM_CFMSACC */
51
#define MCF_CFM_CFMSACC_SUPV(x)              (((x)&0xFFFFFFFF)<<0)
52
 
53
/* Bit definitions and macros for MCF_CFM_CFMDACC */
54
#define MCF_CFM_CFMDACC_DATA(x)              (((x)&0xFFFFFFFF)<<0)
55
 
56
/* Bit definitions and macros for MCF_CFM_CFMUSTAT */
57
#define MCF_CFM_CFMUSTAT_BLANK               (0x4)
58
#define MCF_CFM_CFMUSTAT_ACCERR              (0x10)
59
#define MCF_CFM_CFMUSTAT_PVIOL               (0x20)
60
#define MCF_CFM_CFMUSTAT_CCIF                (0x40)
61
#define MCF_CFM_CFMUSTAT_CBEIF               (0x80)
62
 
63
/* Bit definitions and macros for MCF_CFM_CFMCMD */
64
#define MCF_CFM_CFMCMD_CMD(x)                (((x)&0x7F)<<0)
65
#define MCF_CFM_CFMCMD_BLANK_CHECK           (0x5)
66
#define MCF_CFM_CFMCMD_PAGE_ERASE_VERIFY     (0x6)
67
#define MCF_CFM_CFMCMD_WORD_PROGRAM          (0x20)
68
#define MCF_CFM_CFMCMD_PAGE_ERASE            (0x40)
69
#define MCF_CFM_CFMCMD_MASS_ERASE            (0x41)
70
 
71
 
72
#endif /* __MCF5282_CFM_H__ */

powered by: WebSVN 2.1.0

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