diff options
Diffstat (limited to 'arch/avr32')
-rw-r--r-- | arch/avr32/include/asm/atmel-mci.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/avr32/include/asm/atmel-mci.h b/arch/avr32/include/asm/atmel-mci.h index d38c64ca41e8..5d5ae1295cfd 100644 --- a/arch/avr32/include/asm/atmel-mci.h +++ b/arch/avr32/include/asm/atmel-mci.h | |||
@@ -1,6 +1,8 @@ | |||
1 | #ifndef __ASM_AVR32_ATMEL_MCI_H | 1 | #ifndef __ASM_AVR32_ATMEL_MCI_H |
2 | #define __ASM_AVR32_ATMEL_MCI_H | 2 | #define __ASM_AVR32_ATMEL_MCI_H |
3 | 3 | ||
4 | #define ATMEL_MCI_MAX_NR_SLOTS 2 | ||
5 | |||
4 | /** | 6 | /** |
5 | * struct mci_slot_pdata - board-specific per-slot configuration | 7 | * struct mci_slot_pdata - board-specific per-slot configuration |
6 | * @bus_width: Number of data lines wired up the slot | 8 | * @bus_width: Number of data lines wired up the slot |
@@ -11,6 +13,10 @@ | |||
11 | * set to 0. The other fields are ignored in this case. | 13 | * set to 0. The other fields are ignored in this case. |
12 | * | 14 | * |
13 | * Any pins that aren't available should be set to a negative value. | 15 | * Any pins that aren't available should be set to a negative value. |
16 | * | ||
17 | * Note that support for multiple slots is experimental -- some cards | ||
18 | * might get upset if we don't get the clock management exactly right. | ||
19 | * But in most cases, it should work just fine. | ||
14 | */ | 20 | */ |
15 | struct mci_slot_pdata { | 21 | struct mci_slot_pdata { |
16 | unsigned int bus_width; | 22 | unsigned int bus_width; |
@@ -23,7 +29,7 @@ struct mci_slot_pdata { | |||
23 | * @slot: Per-slot configuration data. | 29 | * @slot: Per-slot configuration data. |
24 | */ | 30 | */ |
25 | struct mci_platform_data { | 31 | struct mci_platform_data { |
26 | struct mci_slot_pdata slot[2]; | 32 | struct mci_slot_pdata slot[ATMEL_MCI_MAX_NR_SLOTS]; |
27 | }; | 33 | }; |
28 | 34 | ||
29 | #endif /* __ASM_AVR32_ATMEL_MCI_H */ | 35 | #endif /* __ASM_AVR32_ATMEL_MCI_H */ |