diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2014-08-27 13:00:51 +0200 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2014-09-09 14:25:14 +0200 |
commit | 9d2fa2428ae149ba3a5b7a4ceb0a9e11f1882b3b (patch) | |
tree | 27514884db5fa528f3e3fe9d53eaf8270457eaee /include/linux/mmc | |
parent | 9fbc695075e905b9201100860eacac6349db6644 (diff) | |
download | blackbird-obmc-linux-9d2fa2428ae149ba3a5b7a4ceb0a9e11f1882b3b.tar.gz blackbird-obmc-linux-9d2fa2428ae149ba3a5b7a4ceb0a9e11f1882b3b.zip |
mmc: slot-gpio: add gpiod variant to get wp GPIO
This makes it possible to get the write protect (read only)
GPIO line from a GPIO descriptor. Written to exactly mirror
the card detect function.
Acked-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'include/linux/mmc')
-rw-r--r-- | include/linux/mmc/slot-gpio.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mmc/slot-gpio.h b/include/linux/mmc/slot-gpio.h index d2433381e828..a0d0442c15bf 100644 --- a/include/linux/mmc/slot-gpio.h +++ b/include/linux/mmc/slot-gpio.h @@ -25,6 +25,9 @@ void mmc_gpio_free_cd(struct mmc_host *host); int mmc_gpiod_request_cd(struct mmc_host *host, const char *con_id, unsigned int idx, bool override_active_level, unsigned int debounce); +int mmc_gpiod_request_ro(struct mmc_host *host, const char *con_id, + unsigned int idx, bool override_active_level, + unsigned int debounce); void mmc_gpiod_free_cd(struct mmc_host *host); void mmc_gpiod_request_cd_irq(struct mmc_host *host); |