mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-10-25 19:50:20 +00:00
Add better support for omitting either the card detect or the write protect GPIOs if the board does not support it. Add the fields no_wprotect and no_detect to the platform data which when set indicate the absence of the respective GPIOs. Note, this also fixes a minor bug where it tries to free IRQ0 if there is no detect gpio available. Signed-off-by: Ben Dooks <ben@simtec.co.uk> Cc: <linux-mmc@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
19 lines
446 B
C
19 lines
446 B
C
#ifndef _ARCH_MCI_H
|
|
#define _ARCH_MCI_H
|
|
|
|
struct s3c24xx_mci_pdata {
|
|
unsigned int no_wprotect : 1;
|
|
unsigned int no_detect : 1;
|
|
unsigned int wprotect_invert : 1;
|
|
unsigned int detect_invert : 1; /* set => detect active high. */
|
|
unsigned int use_dma : 1;
|
|
|
|
unsigned int gpio_detect;
|
|
unsigned int gpio_wprotect;
|
|
unsigned long ocr_avail;
|
|
void (*set_power)(unsigned char power_mode,
|
|
unsigned short vdd);
|
|
};
|
|
|
|
#endif /* _ARCH_NCI_H */
|