Lines Matching refs:board
25 #include <asm/arch/board.h>
50 struct at91_cf_data *board;
59 return !at91_get_gpio_value(cf->board->det_pin);
73 if (irq == cf->board->det_pin) {
99 int rdy = cf->board->irq_pin; /* RDY/nIRQ */
100 int vcc = cf->board->vcc_pin;
121 if (cf->board->vcc_pin) {
124 at91_set_gpio_value(cf->board->vcc_pin, 0);
127 at91_set_gpio_value(cf->board->vcc_pin, 1);
135 at91_set_gpio_value(cf->board->rst_pin, s->flags & SS_RESET);
160 csr = at91_sys_read(AT91_SMC_CSR(cf->board->chipselect)) & ~AT91_SMC_DBW;
179 at91_sys_write(AT91_SMC_CSR(cf->board->chipselect), csr);
221 struct at91_cf_data *board = pdev->dev.platform_data;
225 if (!board || !board->det_pin || !board->rst_pin)
236 cf->board = board;
242 status = request_irq(board->det_pin, at91_cf_irq, 0, driver_name, cf);
251 * (Note: DK board doesn't wire the IRQ pin...)
253 if (board->irq_pin) {
254 status = request_irq(board->irq_pin, at91_cf_irq,
258 cf->socket.pci_irq = board->irq_pin;
277 board->det_pin, board->irq_pin);
299 if (board->irq_pin)
300 free_irq(board->irq_pin, cf);
303 free_irq(board->det_pin, cf);
312 struct at91_cf_data *board = cf->board;
316 if (board->irq_pin)
317 free_irq(board->irq_pin, cf);
319 free_irq(board->det_pin, cf);
332 struct at91_cf_data *board = cf->board;
336 enable_irq_wake(board->det_pin);
337 if (board->irq_pin)
338 enable_irq_wake(board->irq_pin);
346 struct at91_cf_data *board = cf->board;
349 disable_irq_wake(board->det_pin);
350 if (board->irq_pin)
351 disable_irq_wake(board->irq_pin);