![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0 */ 0002 #ifndef __LINUX_ATMEL_MCI_H 0003 #define __LINUX_ATMEL_MCI_H 0004 0005 #include <linux/types.h> 0006 #include <linux/dmaengine.h> 0007 0008 #define ATMCI_MAX_NR_SLOTS 2 0009 0010 /** 0011 * struct mci_slot_pdata - board-specific per-slot configuration 0012 * @bus_width: Number of data lines wired up the slot 0013 * @detect_pin: GPIO pin wired to the card detect switch 0014 * @wp_pin: GPIO pin wired to the write protect sensor 0015 * @detect_is_active_high: The state of the detect pin when it is active 0016 * @non_removable: The slot is not removable, only detect once 0017 * 0018 * If a given slot is not present on the board, @bus_width should be 0019 * set to 0. The other fields are ignored in this case. 0020 * 0021 * Any pins that aren't available should be set to a negative value. 0022 * 0023 * Note that support for multiple slots is experimental -- some cards 0024 * might get upset if we don't get the clock management exactly right. 0025 * But in most cases, it should work just fine. 0026 */ 0027 struct mci_slot_pdata { 0028 unsigned int bus_width; 0029 int detect_pin; 0030 int wp_pin; 0031 bool detect_is_active_high; 0032 bool non_removable; 0033 }; 0034 0035 /** 0036 * struct mci_platform_data - board-specific MMC/SDcard configuration 0037 * @dma_slave: DMA slave interface to use in data transfers. 0038 * @slot: Per-slot configuration data. 0039 */ 0040 struct mci_platform_data { 0041 void *dma_slave; 0042 dma_filter_fn dma_filter; 0043 struct mci_slot_pdata slot[ATMCI_MAX_NR_SLOTS]; 0044 }; 0045 0046 #endif /* __LINUX_ATMEL_MCI_H */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |