diff options
author | Jonas Larsson <jonas.larsson@martinsson.se> | 2009-03-31 11:16:48 +0200 |
---|---|---|
committer | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2009-04-08 20:47:48 +0200 |
commit | 1c1452be2e9ae282a7316c3b23987811bd7acda6 (patch) | |
tree | fe7a8d90f8b38e3e49dcf07ed8fc1ff99730c068 /include | |
parent | Linux 2.6.30-rc1 (diff) | |
download | linux-1c1452be2e9ae282a7316c3b23987811bd7acda6.tar.xz linux-1c1452be2e9ae282a7316c3b23987811bd7acda6.zip |
atmel-mci: Add support for inverted detect pin
Same patch as before, modified to use bool. Also adds description of
the new field in struct atmel_mci that I missed in the first patch.
This patch adds Atmel MCI support for inverted detect pins.
Signed-off-by: Jonas Larsson <jonas.larsson@martinsson.se>
Acked-by: Pierre Ossman <pierre@ossman.eu>
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/atmel-mci.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/atmel-mci.h b/include/linux/atmel-mci.h index 2f1f95737acb..57b1846a3c87 100644 --- a/include/linux/atmel-mci.h +++ b/include/linux/atmel-mci.h @@ -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; }; /** |