Go to the documentation of this file.00001 #ifndef _ARCH_ARM_AT91_SDRAMC_H_
00002 #define _ARCH_ARM_AT91_SDRAMC_H_
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00057
00060 #define SDRAMC_MR_OFF 0x00000000
00061 #define SDRAMC_MR (SDRAMC_BASE + SDRAMC_MR_OFF)
00062 #define SDRAMC_MODE 0x00000007
00063 #define SDRAMC_MODE_NORMAL 0x00000000
00064 #define SDRAMC_MODE_NOP 0x00000001
00065 #define SDRAMC_MODE_PRCGALL 0x00000002
00066 #define SDRAMC_MODE_LMR 0x00000003
00067 #define SDRAMC_MODE_RFSH 0x00000004
00068 #define SDRAMC_MODE_EXT_LMR 0x00000005
00069 #define SDRAMC_MODE_DEEP 0x00000006
00070 #if defined(EBI_HAS_CSA)
00071 #define SDRAMC_DBW 0x00000010
00072 #endif
00073
00077 #define SDRAMC_TR_OFF 0x00000004
00078 #define SDRAMC_TR (SDRAMC_BASE + SDRAMC_TR_OFF)
00079 #define SDRAMC_COUNT 0x00000FFF
00081
00082
00084 #define SDRAMC_CR_OFF 0x00000008
00085 #define SDRAMC_CR (SDRAMC_BASE + SDRAMC_CR_OFF)
00086 #define SDRAMC_NC 0x00000003
00087 #define SDRAMC_NC_8 0x00000000
00088 #define SDRAMC_NC_9 0x00000001
00089 #define SDRAMC_NC_10 0x00000002
00090 #define SDRAMC_NC_11 0x00000003
00091 #define SDRAMC_NR 0x0000000C
00092 #define SDRAMC_NR_11 0x00000000
00093 #define SDRAMC_NR_12 0x00000004
00094 #define SDRAMC_NR_13 0x00000008
00095 #define SDRAMC_NB 0x00000010
00096 #define SDRAMC_CAS 0x00000060
00097 #define SDRAMC_CAS_1 0x00000020
00098 #define SDRAMC_CAS_2 0x00000040
00099 #define SDRAMC_CAS_3 0x00000060
00100 #if defined(EBI_HAS_CSA)
00101 #define SDRAMC_TWR 0x00000780
00102 #define SDRAMC_TWR_LSB 7
00103 #define SDRAMC_TRC 0x00007800
00104 #define SDRAMC_TRC_LSB 11
00105 #define SDRAMC_TRP 0x00078000
00106 #define SDRAMC_TRP_LSB 15
00107 #define SDRAMC_TRCD 0x00780000
00108 #define SDRAMC_TRCD_LSB 19
00109 #define SDRAMC_TRAS 0x07800000
00110 #define SDRAMC_TRAS_LSB 23
00111 #define SDRAMC_TXSR 0x78000000
00112 #define SDRAMC_TXSR_LSB 27
00113 #else
00114 #define SDRAMC_DBW 0x00000080
00115 #define SDRAMC_TWR 0x00000F00
00116 #define SDRAMC_TWR_LSB 8
00117 #define SDRAMC_TRC 0x0000F000
00118 #define SDRAMC_TRC_LSB 12
00119 #define SDRAMC_TRP 0x000F0000
00120 #define SDRAMC_TRP_LSB 16
00121 #define SDRAMC_TRCD 0x00F00000
00122 #define SDRAMC_TRCD_LSB 20
00123 #define SDRAMC_TRAS 0x0F000000
00124 #define SDRAMC_TRAS_LSB 24
00125 #define SDRAMC_TXSR 0xF0000000
00126 #define SDRAMC_TXSR_LSB 28
00127 #endif
00128
00132 #define SDRAMC_SRR_OFF 0x0000000C
00133 #define SDRAMC_SRR (SDRAMC_BASE + SDRAMC_SRR_OFF)
00134 #define SDRAMC_SRCB 0x00000001
00136
00137
00139 #define SDRAMC_LPR_OFF 0x00000010
00140 #define SDRAMC_LPR (SDRAMC_BASE + SDRAMC_LPR_OFF)
00141 #define SDRAMC_LPCB 0x00000003
00142 #define SDRAMC_LPCB_DISABLE 0x00000000
00143 #define SDRAMC_LPCB_SELF_REFRESH 0x00000001
00144 #define SDRAMC_LPCB_POWER_DOWN 0x00000002
00145 #define SDRAMC_LPCB_DEEP_POWER_DOWN 0x00000003
00146 #define SDRAMC_PASR 0x00000070
00147 #define SDRAMC_PASR_LSB 4
00148 #define SDRAMC_TCSR 0x00000300
00149 #define SDRAMC_TCSR_LSB 8
00150 #define SDRAMC_DS 0x00000C00
00151 #define SDRAMC_DS_LSB 10
00152 #define SDRAMC_TIMEOUT 0x00003000
00153 #define SDRAMC_TIMEOUT_0 0x00000000
00154 #define SDRAMC_TIMEOUT_64 0x00001000
00155 #define SDRAMC_TIMEOUT_128 0x00002000
00157
00158
00160 #define SDRAMC_IER_OFF 0x00000014
00161 #define SDRAMC_IER (SDRAMC_BASE + SDRAMC_IER_OFF)
00162 #define SDRAMC_IDR_OFF 0x00000018
00163 #define SDRAMC_IDR (SDRAMC_BASE + SDRAMC_IDR_OFF)
00164 #define SDRAMC_IMR_OFF 0x0000001C
00165 #define SDRAMC_IMR (SDRAMC_BASE + SDRAMC_IMR_OFF)
00166 #define SDRAMC_ISR_OFF 0x00000020
00167 #define SDRAMC_ISR (SDRAMC_BASE + SDRAMC_ISR_OFF)
00168 #define SDRAMC_RES 0x00000001
00170
00171
00173 #define SDRAMC_MDR_OFF 0x00000024
00174 #define SDRAMC_MDR (SDRAMC_BASE + SDRAMC_MDR_OFF)
00175 #define SDRAMC_MD 0x00000003
00176 #define SDRAMC_MD 0x00000003
00177 #define SDRAMC_MD_SDRAM 0x00000000
00178 #define SDRAMC_MD_LPSDRAM 0x00000001
00180
00181
00183 #endif