mmc: add CD GPIO polling support to slot functions

A simple extension of mmc slot functions add support for CD GPIO polling
for cases where the GPIO cannot produce interrupts, or where this is not
desired for some reason.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Chris Ball <cjb@laptop.org>
This commit is contained in:
Guennadi Liakhovetski 2012-05-01 16:27:25 +02:00 committed by Chris Ball
parent 5c08d7fae0
commit befe4048d8
2 changed files with 45 additions and 13 deletions

View file

@ -12,6 +12,8 @@
#define MMC_SLOT_GPIO_H
struct mmc_host;
int mmc_gpio_get_cd(struct mmc_host *host);
int mmc_gpio_request_cd(struct mmc_host *host, unsigned int gpio);
void mmc_gpio_free_cd(struct mmc_host *host);