at91_mc.h
Go to the documentation of this file.00001
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073 #ifndef AT91_MC_H
00074 #define AT91_MC_H
00075
00076 #define MC_RCR_OFF 0x00000000
00077 #define MC_RCR (*((reg32_t *)(MC_BASE + MC_RCR_OFF)))
00078 #define MC_RCB 0
00079
00080 #define MC_ASR_OFF 0x00000004
00081 #define MC_ASR (*((reg32_t *)(MC_BASE + MC_ASR_OFF)))
00082 #define MC_UNDADD 0
00083 #define MC_MISADD 1
00084 #define MC_ABTSZ_MASK 0x00000300
00085 #define MC_ABTSZ_BYTE 0x00000000
00086 #define MC_ABTSZ_HWORD 0x00000100
00087 #define MC_ABTSZ_WORD 0x00000200
00088 #define MC_ABTTYP_MASK 0x00000C00
00089 #define MC_ABTTYP_DATAR 0x00000000
00090 #define MC_ABTTYP_DATAW 0x00000400
00091 #define MC_ABTTYP_FETCH 0x00000800
00092 #define MC_MST_PDC 0x00020000
00093 #define MC_MST_ARM 0x00040000
00094 #define MC_SVMST_PDC 0x02000000
00095 #define MC_SVMST_ARM 0x04000000
00096
00097 #define MC_AASR_OFF 0x00000008
00098 #define MC_AASR (*((reg32_t *)(MC_BASE + MC_AASR_OFF)))
00099
00100 #define MC_FMR_OFF 0x00000060
00101 #define MC_FMR (*((reg32_t *)(MC_BASE + MC_FMR_OFF)))
00102 #define MC_FRDY 0
00103 #define MC_LOCKE 2
00104 #define MC_PROGE 3
00105 #define MC_NEBP 7
00106 #define MC_FWS_MASK 0x00000300
00107 #define MC_FWS_1R2W 0x00000000
00108 #define MC_FWS_2R3W 0x00000100
00109 #define MC_FWS_3R4W 0x00000200
00110 #define MC_FWS_4R4W 0x00000300
00111 #define MC_FMCN_MASK 0x00FF0000
00112
00113 #define MC_FCR_OFF 0x00000064
00114 #define MC_FCR (*((reg32_t *)(MC_BASE + MC_FCR_OFF)))
00115 #define MC_FCMD_MASK 0x0000000F
00116 #define MC_FCMD_NOP 0x00000000
00117 #define MC_FCMD_WP 0x00000001
00118 #define MC_FCMD_SLB 0x00000002
00119 #define MC_FCMD_WPL 0x00000003
00120 #define MC_FCMD_CLB 0x00000004
00121 #define MC_FCMD_EA 0x00000008
00122 #define MC_FCMD_SGPB 0x0000000B
00123 #define MC_FCMD_CGPB 0x0000000D
00124 #define MC_FCMD_SSB 0x0000000F
00125 #define MC_PAGEN_MASK 0x0003FF00
00126 #define MC_KEY 0x5A000000
00127
00128 #define MC_FSR_OFF 0x00000068
00129 #define MC_FSR (*((reg32_t *)(MC_BASE + MC_FSR_OFF)))
00130 #define MC_SECURITY 4
00131
00132 #define MC_GPNVM0 8
00133 #define MC_GPNVM1 9
00134 #define MC_GPNVM2 10
00135
00136 #define MC_LOCKS0 16
00137 #define MC_LOCKS1 17
00138 #define MC_LOCKS2 18
00139 #define MC_LOCKS3 19
00140 #define MC_LOCKS4 20
00141 #define MC_LOCKS5 21
00142 #define MC_LOCKS6 22
00143 #define MC_LOCKS7 23
00144 #define MC_LOCKS8 24
00145 #define MC_LOCKS9 25
00146 #define MC_LOCKS10 26
00147 #define MC_LOCKS11 27
00148 #define MC_LOCKS12 28
00149 #define MC_LOCKS13 29
00150 #define MC_LOCKS14 30
00151 #define MC_LOCKS15 31
00152
00153 #endif