Haavard Skinnemoen | 7d2be07 | 2008-06-30 18:35:03 +0200 | [diff] [blame] | 1 | #ifndef __ASM_AVR32_ATMEL_MCI_H |
| 2 | #define __ASM_AVR32_ATMEL_MCI_H |
| 3 | |
Haavard Skinnemoen | 6b91865 | 2008-08-07 14:08:49 +0200 | [diff] [blame^] | 4 | /** |
| 5 | * struct mci_slot_pdata - board-specific per-slot configuration |
| 6 | * @bus_width: Number of data lines wired up the slot |
| 7 | * @detect_pin: GPIO pin wired to the card detect switch |
| 8 | * @wp_pin: GPIO pin wired to the write protect sensor |
| 9 | * |
| 10 | * If a given slot is not present on the board, @bus_width should be |
| 11 | * set to 0. The other fields are ignored in this case. |
| 12 | * |
| 13 | * Any pins that aren't available should be set to a negative value. |
| 14 | */ |
| 15 | struct mci_slot_pdata { |
| 16 | unsigned int bus_width; |
Haavard Skinnemoen | 7d2be07 | 2008-06-30 18:35:03 +0200 | [diff] [blame] | 17 | int detect_pin; |
| 18 | int wp_pin; |
| 19 | }; |
| 20 | |
Haavard Skinnemoen | 6b91865 | 2008-08-07 14:08:49 +0200 | [diff] [blame^] | 21 | /** |
| 22 | * struct mci_platform_data - board-specific MMC/SDcard configuration |
| 23 | * @slot: Per-slot configuration data. |
| 24 | */ |
| 25 | struct mci_platform_data { |
| 26 | struct mci_slot_pdata slot[2]; |
| 27 | }; |
| 28 | |
Haavard Skinnemoen | 7d2be07 | 2008-06-30 18:35:03 +0200 | [diff] [blame] | 29 | #endif /* __ASM_AVR32_ATMEL_MCI_H */ |