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_SDRAMC.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_SDRAMC_H__
9
#define __MCF5282_SDRAMC_H__
10
 
11
 
12
/*********************************************************************
13
*
14
* Synchronous DRAM Controller (SDRAMC)
15
*
16
*********************************************************************/
17
 
18
/* Register read/write macros */
19
#define MCF_SDRAMC_DCR                       (*(vuint16*)(&__IPSBAR[0x40]))
20
#define MCF_SDRAMC_DACR0                     (*(vuint32*)(&__IPSBAR[0x48]))
21
#define MCF_SDRAMC_DMR0                      (*(vuint32*)(&__IPSBAR[0x4C]))
22
#define MCF_SDRAMC_DACR1                     (*(vuint32*)(&__IPSBAR[0x50]))
23
#define MCF_SDRAMC_DMR1                      (*(vuint32*)(&__IPSBAR[0x54]))
24
#define MCF_SDRAMC_DACR(x)                   (*(vuint32*)(&__IPSBAR[0x48 + ((x)*0x8)]))
25
#define MCF_SDRAMC_DMR(x)                    (*(vuint32*)(&__IPSBAR[0x4C + ((x)*0x8)]))
26
 
27
 
28
/* Bit definitions and macros for MCF_SDRAMC_DCR */
29
#define MCF_SDRAMC_DCR_RC(x)                 (((x)&0x1FF)<<0)
30
#define MCF_SDRAMC_DCR_RTIM(x)               (((x)&0x3)<<0x9)
31
#define MCF_SDRAMC_DCR_RTIM_3                (0)
32
#define MCF_SDRAMC_DCR_RTIM_6                (0x200)
33
#define MCF_SDRAMC_DCR_RTIM_9                (0x400)
34
#define MCF_SDRAMC_DCR_IS                    (0x800)
35
#define MCF_SDRAMC_DCR_COC                   (0x1000)
36
#define MCF_SDRAMC_DCR_NAM                   (0x2000)
37
 
38
/* Bit definitions and macros for MCF_SDRAMC_DACR */
39
#define MCF_SDRAMC_DACR_IP                   (0x8)
40
#define MCF_SDRAMC_DACR_PS(x)                (((x)&0x3)<<0x4)
41
#define MCF_SDRAMC_DACR_PS_32                (0)
42
#define MCF_SDRAMC_DACR_PS_8                 (0x10)
43
#define MCF_SDRAMC_DACR_PS_16                (0x20)
44
#define MCF_SDRAMC_DACR_IMRS                 (0x40)
45
#define MCF_SDRAMC_DACR_CBM(x)               (((x)&0x7)<<0x8)
46
#define MCF_SDRAMC_DACR_CASL(x)              (((x)&0x3)<<0xC)
47
#define MCF_SDRAMC_DACR_RE                   (0x8000)
48
#define MCF_SDRAMC_DACR_BA(x)                ((x)&0xFFFC0000)
49
#define MCF_SDRAMC_DACR_CASL_1               (0)
50
#define MCF_SDRAMC_DACR_CASL_2               (0x1000)
51
#define MCF_SDRAMC_DACR_CASL_3               (0x2000)
52
 
53
/* Bit definitions and macros for MCF_SDRAMC_DMR */
54
#define MCF_SDRAMC_DMR_V                     (0x1)
55
#define MCF_SDRAMC_DMR_UD                    (0x2)
56
#define MCF_SDRAMC_DMR_UC                    (0x4)
57
#define MCF_SDRAMC_DMR_SD                    (0x8)
58
#define MCF_SDRAMC_DMR_SC                    (0x10)
59
#define MCF_SDRAMC_DMR_AM                    (0x20)
60
#define MCF_SDRAMC_DMR_CI                    (0x40)
61
#define MCF_SDRAMC_DMR_WP                    (0x100)
62
#define MCF_SDRAMC_DMR_BAM(x)                (((x)&0x3FFF)<<0x12)
63
#define MCF_SDRAMC_DMR_BAM_4G                (0xFFFC0000)
64
#define MCF_SDRAMC_DMR_BAM_2G                (0x7FFC0000)
65
#define MCF_SDRAMC_DMR_BAM_1G                (0x3FFC0000)
66
#define MCF_SDRAMC_DMR_BAM_1024M             (0x3FFC0000)
67
#define MCF_SDRAMC_DMR_BAM_512M              (0x1FFC0000)
68
#define MCF_SDRAMC_DMR_BAM_256M              (0xFFC0000)
69
#define MCF_SDRAMC_DMR_BAM_128M              (0x7FC0000)
70
#define MCF_SDRAMC_DMR_BAM_64M               (0x3FC0000)
71
#define MCF_SDRAMC_DMR_BAM_32M               (0x1FC0000)
72
#define MCF_SDRAMC_DMR_BAM_16M               (0xFC0000)
73
#define MCF_SDRAMC_DMR_BAM_8M                (0x7C0000)
74
#define MCF_SDRAMC_DMR_BAM_4M                (0x3C0000)
75
#define MCF_SDRAMC_DMR_BAM_2M                (0x1C0000)
76
#define MCF_SDRAMC_DMR_BAM_1M                (0xC0000)
77
#define MCF_SDRAMC_DMR_BAM_1024K             (0xC0000)
78
#define MCF_SDRAMC_DMR_BAM_512K              (0x40000)
79
#define MCF_SDRAMC_DMR_BAM_256K              (0)
80
 
81
 
82
#endif /* __MCF5282_SDRAMC_H__ */

powered by: WebSVN 2.1.0

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