]> Pileus Git - ~andy/linux/blobdiff - include/linux/atmel-mci.h
atmel-mci: Add support for inverted detect pin
[~andy/linux] / include / linux / atmel-mci.h
index 2f1f95737acb5d7e9e6df044a7190363522038e6..57b1846a3c876baf138214b2d511c693143fefa8 100644 (file)
@@ -10,6 +10,7 @@
  * @bus_width: Number of data lines wired up the slot
  * @detect_pin: GPIO pin wired to the card detect switch
  * @wp_pin: GPIO pin wired to the write protect sensor
+ * @detect_is_active_high: The state of the detect pin when it is active
  *
  * If a given slot is not present on the board, @bus_width should be
  * set to 0. The other fields are ignored in this case.
@@ -24,6 +25,7 @@ struct mci_slot_pdata {
        unsigned int            bus_width;
        int                     detect_pin;
        int                     wp_pin;
+       bool                    detect_is_active_high;
 };
 
 /**