154
154
155
155
#define NFC_MAX_CS 7
156
156
157
- /*
158
- * Chip Select structure: stores information related to NAND Chip Select
157
+ /**
158
+ * struct sunxi_nand_chip_sel - stores information related to NAND Chip Select
159
159
*
160
- * @cs: the NAND CS id used to communicate with a NAND Chip
161
- * @rb: the Ready/Busy pin ID. -1 means no R/B pin connected to the
162
- * NFC
160
+ * @cs: the NAND CS id used to communicate with a NAND Chip
161
+ * @rb: the Ready/Busy pin ID. -1 means no R/B pin connected to the NFC
163
162
*/
164
163
struct sunxi_nand_chip_sel {
165
164
u8 cs ;
166
165
s8 rb ;
167
166
};
168
167
169
- /*
170
- * sunxi HW ECC infos: stores information related to HW ECC support
168
+ /**
169
+ * struct sunxi_nand_hw_ecc - stores information related to HW ECC support
171
170
*
172
- * @mode: the sunxi ECC mode field deduced from ECC requirements
171
+ * @mode: the sunxi ECC mode field deduced from ECC requirements
173
172
*/
174
173
struct sunxi_nand_hw_ecc {
175
174
int mode ;
176
175
};
177
176
178
- /*
179
- * NAND chip structure: stores NAND chip device related information
177
+ /**
178
+ * struct sunxi_nand_chip - stores NAND chip device related information
180
179
*
181
- * @node: used to store NAND chips into a list
182
- * @nand: base NAND chip structure
183
- * @mtd: base MTD structure
184
- * @clk_rate: clk_rate required for this NAND chip
185
- * @timing_cfg TIMING_CFG register value for this NAND chip
186
- * @nsels: number of CS lines required by the NAND chip
187
- * @sels: array of CS lines descriptions
180
+ * @node: used to store NAND chips into a list
181
+ * @nand: base NAND chip structure
182
+ * @clk_rate: clk_rate required for this NAND chip
183
+ * @timing_cfg: TIMING_CFG register value for this NAND chip
184
+ * @timing_ctl: TIMING_CTL register value for this NAND chip
185
+ * @nsels: number of CS lines required by the NAND chip
186
+ * @sels: array of CS lines descriptions
188
187
*/
189
188
struct sunxi_nand_chip {
190
189
struct list_head node ;
@@ -201,20 +200,21 @@ static inline struct sunxi_nand_chip *to_sunxi_nand(struct nand_chip *nand)
201
200
return container_of (nand , struct sunxi_nand_chip , nand );
202
201
}
203
202
204
- /*
205
- * NAND Controller structure: stores sunxi NAND controller information
203
+ /**
204
+ * struct sunxi_nfc - stores sunxi NAND controller information
206
205
*
207
- * @controller: base controller structure
208
- * @dev: parent device (used to print error messages)
209
- * @regs: NAND controller registers
210
- * @ahb_clk: NAND Controller AHB clock
211
- * @mod_clk: NAND Controller mod clock
212
- * @assigned_cs: bitmask describing already assigned CS lines
213
- * @clk_rate: NAND controller current clock rate
214
- * @chips: a list containing all the NAND chips attached to
215
- * this NAND controller
216
- * @complete: a completion object used to wait for NAND
217
- * controller events
206
+ * @controller: base controller structure
207
+ * @dev: parent device (used to print error messages)
208
+ * @regs: NAND controller registers
209
+ * @ahb_clk: NAND controller AHB clock
210
+ * @mod_clk: NAND controller mod clock
211
+ * @reset: NAND controller reset line
212
+ * @assigned_cs: bitmask describing already assigned CS lines
213
+ * @clk_rate: NAND controller current clock rate
214
+ * @chips: a list containing all the NAND chips attached to this NAND
215
+ * controller
216
+ * @complete: a completion object used to wait for NAND controller events
217
+ * @dmac: the DMA channel attached to the NAND controller
218
218
*/
219
219
struct sunxi_nfc {
220
220
struct nand_controller controller ;
0 commit comments