Go to the documentation of this file.
16 #ifndef AT91RM9200_MC_H
17 #define AT91RM9200_MC_H
20 #define AT91_MC_RCR 0x00
21 #define AT91_MC_RCB (1 << 0)
23 #define AT91_MC_ASR 0x04
24 #define AT91_MC_UNADD (1 << 0)
25 #define AT91_MC_MISADD (1 << 1)
26 #define AT91_MC_ABTSZ (3 << 8)
27 #define AT91_MC_ABTSZ_BYTE (0 << 8)
28 #define AT91_MC_ABTSZ_HALFWORD (1 << 8)
29 #define AT91_MC_ABTSZ_WORD (2 << 8)
30 #define AT91_MC_ABTTYP (3 << 10)
31 #define AT91_MC_ABTTYP_DATAREAD (0 << 10)
32 #define AT91_MC_ABTTYP_DATAWRITE (1 << 10)
33 #define AT91_MC_ABTTYP_FETCH (2 << 10)
34 #define AT91_MC_MST0 (1 << 16)
35 #define AT91_MC_MST1 (1 << 17)
36 #define AT91_MC_MST2 (1 << 18)
37 #define AT91_MC_MST3 (1 << 19)
38 #define AT91_MC_SVMST0 (1 << 24)
39 #define AT91_MC_SVMST1 (1 << 25)
40 #define AT91_MC_SVMST2 (1 << 26)
41 #define AT91_MC_SVMST3 (1 << 27)
43 #define AT91_MC_AASR 0x08
45 #define AT91_MC_MPR 0x0c
46 #define AT91_MPR_MSTP0 (7 << 0)
47 #define AT91_MPR_MSTP1 (7 << 4)
48 #define AT91_MPR_MSTP2 (7 << 8)
49 #define AT91_MPR_MSTP3 (7 << 12)
52 #define AT91_EBI_CSA 0x60
53 #define AT91_EBI_CS0A (1 << 0)
54 #define AT91_EBI_CS0A_SMC (0 << 0)
55 #define AT91_EBI_CS0A_BFC (1 << 0)
56 #define AT91_EBI_CS1A (1 << 1)
57 #define AT91_EBI_CS1A_SMC (0 << 1)
58 #define AT91_EBI_CS1A_SDRAMC (1 << 1)
59 #define AT91_EBI_CS3A (1 << 3)
60 #define AT91_EBI_CS3A_SMC (0 << 3)
61 #define AT91_EBI_CS3A_SMC_SMARTMEDIA (1 << 3)
62 #define AT91_EBI_CS4A (1 << 4)
63 #define AT91_EBI_CS4A_SMC (0 << 4)
64 #define AT91_EBI_CS4A_SMC_COMPACTFLASH (1 << 4)
65 #define AT91_EBI_CFGR (AT91_MC + 0x64)
66 #define AT91_EBI_DBPUC (1 << 0)
69 #define AT91_SMC_CSR(n) (0x70 + ((n) * 4))
70 #define AT91_SMC_NWS (0x7f << 0)
71 #define AT91_SMC_NWS_(x) ((x) << 0)
72 #define AT91_SMC_WSEN (1 << 7)
73 #define AT91_SMC_TDF (0xf << 8)
74 #define AT91_SMC_TDF_(x) ((x) << 8)
75 #define AT91_SMC_BAT (1 << 12)
76 #define AT91_SMC_DBW (3 << 13)
77 #define AT91_SMC_DBW_16 (1 << 13)
78 #define AT91_SMC_DBW_8 (2 << 13)
79 #define AT91_SMC_DPR (1 << 15)
80 #define AT91_SMC_ACSS (3 << 16)
81 #define AT91_SMC_ACSS_STD (0 << 16)
82 #define AT91_SMC_ACSS_1 (1 << 16)
83 #define AT91_SMC_ACSS_2 (2 << 16)
84 #define AT91_SMC_ACSS_3 (3 << 16)
85 #define AT91_SMC_RWSETUP (7 << 24)
86 #define AT91_SMC_RWSETUP_(x) ((x) << 24)
87 #define AT91_SMC_RWHOLD (7 << 28)
88 #define AT91_SMC_RWHOLD_(x) ((x) << 28)
91 #define AT91_BFC_MR 0xc0
92 #define AT91_BFC_BFCOM (3 << 0)
93 #define AT91_BFC_BFCOM_DISABLED (0 << 0)
94 #define AT91_BFC_BFCOM_ASYNC (1 << 0)
95 #define AT91_BFC_BFCOM_BURST (2 << 0)
96 #define AT91_BFC_BFCC (3 << 2)
97 #define AT91_BFC_BFCC_MCK (1 << 2)
98 #define AT91_BFC_BFCC_DIV2 (2 << 2)
99 #define AT91_BFC_BFCC_DIV4 (3 << 2)
100 #define AT91_BFC_AVL (0xf << 4)
101 #define AT91_BFC_PAGES (7 << 8)
102 #define AT91_BFC_PAGES_NO_PAGE (0 << 8)
103 #define AT91_BFC_PAGES_16 (1 << 8)
104 #define AT91_BFC_PAGES_32 (2 << 8)
105 #define AT91_BFC_PAGES_64 (3 << 8)
106 #define AT91_BFC_PAGES_128 (4 << 8)
107 #define AT91_BFC_PAGES_256 (5 << 8)
108 #define AT91_BFC_PAGES_512 (6 << 8)
109 #define AT91_BFC_PAGES_1024 (7 << 8)
110 #define AT91_BFC_OEL (3 << 12)
111 #define AT91_BFC_BAAEN (1 << 16)
112 #define AT91_BFC_BFOEH (1 << 17)
113 #define AT91_BFC_MUXEN (1 << 18)
114 #define AT91_BFC_RDYEN (1 << 19)