mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-16 11:32:41 +00:00
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:
parent
5c08d7fae0
commit
befe4048d8
2 changed files with 45 additions and 13 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue