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_QSPI.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_QSPI_H__
9
#define __MCF5282_QSPI_H__
10
 
11
 
12
/*********************************************************************
13
*
14
* Queued Serial Peripheral Interface (QSPI)
15
*
16
*********************************************************************/
17
 
18
/* Register read/write macros */
19
#define MCF_QSPI_QMR                         (*(vuint16*)(&__IPSBAR[0x340]))
20
#define MCF_QSPI_QDLYR                       (*(vuint16*)(&__IPSBAR[0x344]))
21
#define MCF_QSPI_QWR                         (*(vuint16*)(&__IPSBAR[0x348]))
22
#define MCF_QSPI_QIR                         (*(vuint16*)(&__IPSBAR[0x34C]))
23
#define MCF_QSPI_QAR                         (*(vuint16*)(&__IPSBAR[0x350]))
24
#define MCF_QSPI_QDR                         (*(vuint16*)(&__IPSBAR[0x354]))
25
 
26
 
27
/* Bit definitions and macros for MCF_QSPI_QMR */
28
#define MCF_QSPI_QMR_BAUD(x)                 (((x)&0xFF)<<0)
29
#define MCF_QSPI_QMR_CPHA                    (0x100)
30
#define MCF_QSPI_QMR_CPOL                    (0x200)
31
#define MCF_QSPI_QMR_BITS(x)                 (((x)&0xF)<<0xA)
32
#define MCF_QSPI_QMR_DOHIE                   (0x4000)
33
#define MCF_QSPI_QMR_MSTR                    (0x8000)
34
 
35
/* Bit definitions and macros for MCF_QSPI_QDLYR */
36
#define MCF_QSPI_QDLYR_DTL(x)                (((x)&0xFF)<<0)
37
#define MCF_QSPI_QDLYR_QCD(x)                (((x)&0x7F)<<0x8)
38
#define MCF_QSPI_QDLYR_SPE                   (0x8000)
39
 
40
/* Bit definitions and macros for MCF_QSPI_QWR */
41
#define MCF_QSPI_QWR_NEWQP(x)                (((x)&0xF)<<0)
42
#define MCF_QSPI_QWR_CPTQP(x)                (((x)&0xF)<<0x4)
43
#define MCF_QSPI_QWR_ENDQP(x)                (((x)&0xF)<<0x8)
44
#define MCF_QSPI_QWR_CSIV                    (0x1000)
45
#define MCF_QSPI_QWR_WRTO                    (0x2000)
46
#define MCF_QSPI_QWR_WREN                    (0x4000)
47
#define MCF_QSPI_QWR_HALT                    (0x8000)
48
 
49
/* Bit definitions and macros for MCF_QSPI_QIR */
50
#define MCF_QSPI_QIR_SPIF                    (0x1)
51
#define MCF_QSPI_QIR_ABRT                    (0x4)
52
#define MCF_QSPI_QIR_WCEF                    (0x8)
53
#define MCF_QSPI_QIR_SPIFE                   (0x100)
54
#define MCF_QSPI_QIR_ABRTE                   (0x400)
55
#define MCF_QSPI_QIR_WCEFE                   (0x800)
56
#define MCF_QSPI_QIR_ABRTL                   (0x1000)
57
#define MCF_QSPI_QIR_ABRTB                   (0x4000)
58
#define MCF_QSPI_QIR_WCEFB                   (0x8000)
59
 
60
/* Bit definitions and macros for MCF_QSPI_QAR */
61
#define MCF_QSPI_QAR_ADDR(x)                 (((x)&0x3F)<<0)
62
#define MCF_QSPI_QAR_TRANS                   (0)
63
#define MCF_QSPI_QAR_RECV                    (0x10)
64
#define MCF_QSPI_QAR_CMD                     (0x20)
65
 
66
/* Bit definitions and macros for MCF_QSPI_QDR */
67
#define MCF_QSPI_QDR_DATA(x)                 (((x)&0xFFFF)<<0)
68
#define MCF_QSPI_QDR_CONT                    (0x8000)
69
#define MCF_QSPI_QDR_BITSE                   (0x4000)
70
#define MCF_QSPI_QDR_DT                      (0x2000)
71
#define MCF_QSPI_QDR_DSCK                    (0x1000)
72
#define MCF_QSPI_QDR_QSPI_CS3                (0x800)
73
#define MCF_QSPI_QDR_QSPI_CS2                (0x400)
74
#define MCF_QSPI_QDR_QSPI_CS1                (0x200)
75
#define MCF_QSPI_QDR_QSPI_CS0                (0x100)
76
 
77
 
78
#endif /* __MCF5282_QSPI_H__ */

powered by: WebSVN 2.1.0

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