diff options
Diffstat (limited to 'arch/blackfin/mach-bf518/include/mach')
-rw-r--r-- | arch/blackfin/mach-bf518/include/mach/defBF514.h | 135 |
1 files changed, 0 insertions, 135 deletions
diff --git a/arch/blackfin/mach-bf518/include/mach/defBF514.h b/arch/blackfin/mach-bf518/include/mach/defBF514.h index 92e950d6e996..98a51c479290 100644 --- a/arch/blackfin/mach-bf518/include/mach/defBF514.h +++ b/arch/blackfin/mach-bf518/include/mach/defBF514.h | |||
@@ -45,139 +45,4 @@ | |||
45 | #define RSI_PID6 0xFFC03FF8 /* RSI Peripheral ID Register 6 */ | 45 | #define RSI_PID6 0xFFC03FF8 /* RSI Peripheral ID Register 6 */ |
46 | #define RSI_PID7 0xFFC03FFC /* RSI Peripheral ID Register 7 */ | 46 | #define RSI_PID7 0xFFC03FFC /* RSI Peripheral ID Register 7 */ |
47 | 47 | ||
48 | /* ********************************************************** */ | ||
49 | /* SINGLE BIT MACRO PAIRS (bit mask and negated one) */ | ||
50 | /* and MULTI BIT READ MACROS */ | ||
51 | /* ********************************************************** */ | ||
52 | |||
53 | /* Bit masks for SDH_COMMAND */ | ||
54 | |||
55 | #define CMD_IDX 0x3f /* Command Index */ | ||
56 | #define CMD_RSP 0x40 /* Response */ | ||
57 | #define CMD_L_RSP 0x80 /* Long Response */ | ||
58 | #define CMD_INT_E 0x100 /* Command Interrupt */ | ||
59 | #define CMD_PEND_E 0x200 /* Command Pending */ | ||
60 | #define CMD_E 0x400 /* Command Enable */ | ||
61 | |||
62 | /* Bit masks for SDH_PWR_CTL */ | ||
63 | |||
64 | #define PWR_ON 0x3 /* Power On */ | ||
65 | #if 0 | ||
66 | #define TBD 0x3c /* TBD */ | ||
67 | #endif | ||
68 | #define SD_CMD_OD 0x40 /* Open Drain Output */ | ||
69 | #define ROD_CTL 0x80 /* Rod Control */ | ||
70 | |||
71 | /* Bit masks for SDH_CLK_CTL */ | ||
72 | |||
73 | #define CLKDIV 0xff /* MC_CLK Divisor */ | ||
74 | #define CLK_E 0x100 /* MC_CLK Bus Clock Enable */ | ||
75 | #define PWR_SV_E 0x200 /* Power Save Enable */ | ||
76 | #define CLKDIV_BYPASS 0x400 /* Bypass Divisor */ | ||
77 | #define WIDE_BUS 0x800 /* Wide Bus Mode Enable */ | ||
78 | |||
79 | /* Bit masks for SDH_RESP_CMD */ | ||
80 | |||
81 | #define RESP_CMD 0x3f /* Response Command */ | ||
82 | |||
83 | /* Bit masks for SDH_DATA_CTL */ | ||
84 | |||
85 | #define DTX_E 0x1 /* Data Transfer Enable */ | ||
86 | #define DTX_DIR 0x2 /* Data Transfer Direction */ | ||
87 | #define DTX_MODE 0x4 /* Data Transfer Mode */ | ||
88 | #define DTX_DMA_E 0x8 /* Data Transfer DMA Enable */ | ||
89 | #define DTX_BLK_LGTH 0xf0 /* Data Transfer Block Length */ | ||
90 | |||
91 | /* Bit masks for SDH_STATUS */ | ||
92 | |||
93 | #define CMD_CRC_FAIL 0x1 /* CMD CRC Fail */ | ||
94 | #define DAT_CRC_FAIL 0x2 /* Data CRC Fail */ | ||
95 | #define CMD_TIME_OUT 0x4 /* CMD Time Out */ | ||
96 | #define DAT_TIME_OUT 0x8 /* Data Time Out */ | ||
97 | #define TX_UNDERRUN 0x10 /* Transmit Underrun */ | ||
98 | #define RX_OVERRUN 0x20 /* Receive Overrun */ | ||
99 | #define CMD_RESP_END 0x40 /* CMD Response End */ | ||
100 | #define CMD_SENT 0x80 /* CMD Sent */ | ||
101 | #define DAT_END 0x100 /* Data End */ | ||
102 | #define START_BIT_ERR 0x200 /* Start Bit Error */ | ||
103 | #define DAT_BLK_END 0x400 /* Data Block End */ | ||
104 | #define CMD_ACT 0x800 /* CMD Active */ | ||
105 | #define TX_ACT 0x1000 /* Transmit Active */ | ||
106 | #define RX_ACT 0x2000 /* Receive Active */ | ||
107 | #define TX_FIFO_STAT 0x4000 /* Transmit FIFO Status */ | ||
108 | #define RX_FIFO_STAT 0x8000 /* Receive FIFO Status */ | ||
109 | #define TX_FIFO_FULL 0x10000 /* Transmit FIFO Full */ | ||
110 | #define RX_FIFO_FULL 0x20000 /* Receive FIFO Full */ | ||
111 | #define TX_FIFO_ZERO 0x40000 /* Transmit FIFO Empty */ | ||
112 | #define RX_DAT_ZERO 0x80000 /* Receive FIFO Empty */ | ||
113 | #define TX_DAT_RDY 0x100000 /* Transmit Data Available */ | ||
114 | #define RX_FIFO_RDY 0x200000 /* Receive Data Available */ | ||
115 | |||
116 | /* Bit masks for SDH_STATUS_CLR */ | ||
117 | |||
118 | #define CMD_CRC_FAIL_STAT 0x1 /* CMD CRC Fail Status */ | ||
119 | #define DAT_CRC_FAIL_STAT 0x2 /* Data CRC Fail Status */ | ||
120 | #define CMD_TIMEOUT_STAT 0x4 /* CMD Time Out Status */ | ||
121 | #define DAT_TIMEOUT_STAT 0x8 /* Data Time Out status */ | ||
122 | #define TX_UNDERRUN_STAT 0x10 /* Transmit Underrun Status */ | ||
123 | #define RX_OVERRUN_STAT 0x20 /* Receive Overrun Status */ | ||
124 | #define CMD_RESP_END_STAT 0x40 /* CMD Response End Status */ | ||
125 | #define CMD_SENT_STAT 0x80 /* CMD Sent Status */ | ||
126 | #define DAT_END_STAT 0x100 /* Data End Status */ | ||
127 | #define START_BIT_ERR_STAT 0x200 /* Start Bit Error Status */ | ||
128 | #define DAT_BLK_END_STAT 0x400 /* Data Block End Status */ | ||
129 | |||
130 | /* Bit masks for SDH_MASK0 */ | ||
131 | |||
132 | #define CMD_CRC_FAIL_MASK 0x1 /* CMD CRC Fail Mask */ | ||
133 | #define DAT_CRC_FAIL_MASK 0x2 /* Data CRC Fail Mask */ | ||
134 | #define CMD_TIMEOUT_MASK 0x4 /* CMD Time Out Mask */ | ||
135 | #define DAT_TIMEOUT_MASK 0x8 /* Data Time Out Mask */ | ||
136 | #define TX_UNDERRUN_MASK 0x10 /* Transmit Underrun Mask */ | ||
137 | #define RX_OVERRUN_MASK 0x20 /* Receive Overrun Mask */ | ||
138 | #define CMD_RESP_END_MASK 0x40 /* CMD Response End Mask */ | ||
139 | #define CMD_SENT_MASK 0x80 /* CMD Sent Mask */ | ||
140 | #define DAT_END_MASK 0x100 /* Data End Mask */ | ||
141 | #define START_BIT_ERR_MASK 0x200 /* Start Bit Error Mask */ | ||
142 | #define DAT_BLK_END_MASK 0x400 /* Data Block End Mask */ | ||
143 | #define CMD_ACT_MASK 0x800 /* CMD Active Mask */ | ||
144 | #define TX_ACT_MASK 0x1000 /* Transmit Active Mask */ | ||
145 | #define RX_ACT_MASK 0x2000 /* Receive Active Mask */ | ||
146 | #define TX_FIFO_STAT_MASK 0x4000 /* Transmit FIFO Status Mask */ | ||
147 | #define RX_FIFO_STAT_MASK 0x8000 /* Receive FIFO Status Mask */ | ||
148 | #define TX_FIFO_FULL_MASK 0x10000 /* Transmit FIFO Full Mask */ | ||
149 | #define RX_FIFO_FULL_MASK 0x20000 /* Receive FIFO Full Mask */ | ||
150 | #define TX_FIFO_ZERO_MASK 0x40000 /* Transmit FIFO Empty Mask */ | ||
151 | #define RX_DAT_ZERO_MASK 0x80000 /* Receive FIFO Empty Mask */ | ||
152 | #define TX_DAT_RDY_MASK 0x100000 /* Transmit Data Available Mask */ | ||
153 | #define RX_FIFO_RDY_MASK 0x200000 /* Receive Data Available Mask */ | ||
154 | |||
155 | /* Bit masks for SDH_FIFO_CNT */ | ||
156 | |||
157 | #define FIFO_COUNT 0x7fff /* FIFO Count */ | ||
158 | |||
159 | /* Bit masks for SDH_E_STATUS */ | ||
160 | |||
161 | #define SDIO_INT_DET 0x2 /* SDIO Int Detected */ | ||
162 | #define SD_CARD_DET 0x10 /* SD Card Detect */ | ||
163 | |||
164 | /* Bit masks for SDH_E_MASK */ | ||
165 | |||
166 | #define SDIO_MSK 0x2 /* Mask SDIO Int Detected */ | ||
167 | #define SCD_MSK 0x40 /* Mask Card Detect */ | ||
168 | |||
169 | /* Bit masks for SDH_CFG */ | ||
170 | |||
171 | #define CLKS_EN 0x1 /* Clocks Enable */ | ||
172 | #define SD4E 0x4 /* SDIO 4-Bit Enable */ | ||
173 | #define MWE 0x8 /* Moving Window Enable */ | ||
174 | #define SD_RST 0x10 /* SDMMC Reset */ | ||
175 | #define PUP_SDDAT 0x20 /* Pull-up SD_DAT */ | ||
176 | #define PUP_SDDAT3 0x40 /* Pull-up SD_DAT3 */ | ||
177 | #define PD_SDDAT3 0x80 /* Pull-down SD_DAT3 */ | ||
178 | |||
179 | /* Bit masks for SDH_RD_WAIT_EN */ | ||
180 | |||
181 | #define RWR 0x1 /* Read Wait Request */ | ||
182 | |||
183 | #endif /* _DEF_BF514_H */ | 48 | #endif /* _DEF_BF514_H */ |