at91_mc.h
Go to the documentation of this file.00001 #ifndef _ARCH_ARM_AT91_MC_H_
00002 #define _ARCH_ARM_AT91_MC_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
00056 #define MC_RCR_OFF 0x00000000
00057 #define MC_RCR (MC_BASE + MC_RCR_OFF)
00058 #define MC_RCB 0x00000001
00060 #define MC_ASR_OFF 0x00000004
00061 #define MC_ASR (MC_BASE + MC_ASR_OFF)
00062 #define MC_UNDADD 0x00000001
00063 #define MC_MISADD 0x00000002
00064 #define MC_ABTSZ_MASK 0x00000300
00065 #define MC_ABTSZ_BYTE 0x00000000
00066 #define MC_ABTSZ_HWORD 0x00000100
00067 #define MC_ABTSZ_WORD 0x00000200
00068 #define MC_ABTTYP_MASK 0x00000C00
00069 #define MC_ABTTYP_DATAR 0x00000000
00070 #define MC_ABTTYP_DATAW 0x00000400
00071 #define MC_ABTTYP_FETCH 0x00000800
00072 #define MC_MST_EMAC 0x00010000
00073 #define MC_MST_PDC 0x00020000
00074 #define MC_MST_ARM 0x00040000
00075 #define MC_SVMST_EMAC 0x01000000
00076 #define MC_SVMST_PDC 0x02000000
00077 #define MC_SVMST_ARM 0x04000000
00079 #define MC_AASR_OFF 0x00000008
00080 #define MC_AASR (MC_BASE + MC_AASR_OFF)
00082 #define MC_FMR_OFF 0x00000060
00083 #define MC_FMR (MC_BASE + MC_FMR_OFF)
00084 #define MC_FRDY 0x00000001
00085 #define MC_LOCKE 0x00000004
00086 #define MC_PROGE 0x00000008
00087 #define MC_NEBP 0x00000080
00088 #define MC_FWS_MASK 0x00000300
00089 #define MC_FWS_1R2W 0x00000000
00090 #define MC_FWS_2R3W 0x00000100
00091 #define MC_FWS_3R4W 0x00000200
00092 #define MC_FWS_4R4W 0x00000300
00093 #define MC_FMCN_MASK 0x00FF0000
00095 #define MC_FCR_OFF 0x00000064
00096 #define MC_FCR (MC_BASE + MC_FCR_OFF)
00097 #define MC_FCMD_MASK 0x0000000F
00098 #define MC_FCMD_NOP 0x00000000
00099 #define MC_FCMD_WP 0x00000001
00100 #define MC_FCMD_SLB 0x00000002
00101 #define MC_FCMD_WPL 0x00000003
00102 #define MC_FCMD_CLB 0x00000004
00103 #define MC_FCMD_EA 0x00000008
00104 #define MC_FCMD_SGPB 0x0000000B
00105 #define MC_FCMD_CGPB 0x0000000D
00106 #define MC_FCMD_SSB 0x0000000F
00107 #define MC_PAGEN_MASK 0x0003FF00
00108 #define MC_KEY 0x5A000000
00110 #define MC_FSR_OFF 0x00000068
00111 #define MC_FSR (MC_BASE + MC_FSR_OFF)
00112 #define MC_SECURITY 0x00000010
00114 #define MC_GPNVM0 0x00000100
00115 #define MC_GPNVM1 0x00000200
00116 #define MC_GPNVM2 0x00000400
00118 #define MC_LOCKS0 0x00010000
00119 #define MC_LOCKS1 0x00020000
00120 #define MC_LOCKS2 0x00040000
00121 #define MC_LOCKS3 0x00080000
00122 #define MC_LOCKS4 0x00100000
00123 #define MC_LOCKS5 0x00200000
00124 #define MC_LOCKS6 0x00400000
00125 #define MC_LOCKS7 0x00800000
00126 #define MC_LOCKS8 0x01000000
00127 #define MC_LOCKS9 0x02000000
00128 #define MC_LOCKS10 0x04000000
00129 #define MC_LOCKS11 0x08000000
00130 #define MC_LOCKS12 0x10000000
00131 #define MC_LOCKS13 0x20000000
00132 #define MC_LOCKS14 0x40000000
00133 #define MC_LOCKS15 0x80000000
00135 #endif