Go to the documentation of this file.
11 #ifndef LINUX_MMC_SDHCI_H
12 #define LINUX_MMC_SDHCI_H
15 #include <linux/compiler.h>
16 #include <linux/types.h>
27 #define SDHCI_QUIRK_CLOCK_BEFORE_RESET (1<<0)
29 #define SDHCI_QUIRK_FORCE_DMA (1<<1)
31 #define SDHCI_QUIRK_NO_CARD_NO_RESET (1<<2)
33 #define SDHCI_QUIRK_SINGLE_POWER_WRITE (1<<3)
35 #define SDHCI_QUIRK_RESET_CMD_DATA_ON_IOS (1<<4)
37 #define SDHCI_QUIRK_BROKEN_DMA (1<<5)
39 #define SDHCI_QUIRK_BROKEN_ADMA (1<<6)
41 #define SDHCI_QUIRK_32BIT_DMA_ADDR (1<<7)
43 #define SDHCI_QUIRK_32BIT_DMA_SIZE (1<<8)
45 #define SDHCI_QUIRK_32BIT_ADMA_SIZE (1<<9)
47 #define SDHCI_QUIRK_RESET_AFTER_REQUEST (1<<10)
49 #define SDHCI_QUIRK_NO_SIMULT_VDD_AND_POWER (1<<11)
51 #define SDHCI_QUIRK_BROKEN_TIMEOUT_VAL (1<<12)
53 #define SDHCI_QUIRK_BROKEN_SMALL_PIO (1<<13)
55 #define SDHCI_QUIRK_NO_BUSY_IRQ (1<<14)
57 #define SDHCI_QUIRK_BROKEN_CARD_DETECTION (1<<15)
59 #define SDHCI_QUIRK_INVERTED_WRITE_PROTECT (1<<16)
61 #define SDHCI_QUIRK_NONSTANDARD_CLOCK (1<<17)
63 #define SDHCI_QUIRK_PIO_NEEDS_DELAY (1<<18)
65 #define SDHCI_QUIRK_RESTORE_IRQS_AFTER_RESET (1<<19)
67 #define SDHCI_QUIRK_FORCE_BLK_SZ_2048 (1<<20)
69 #define SDHCI_QUIRK_NO_MULTIBLOCK (1<<21)
71 #define SDHCI_QUIRK_FORCE_1_BIT_DATA (1<<22)
73 #define SDHCI_QUIRK_DELAY_AFTER_POWER (1<<23)
75 #define SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK (1<<24)
77 #define SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN (1<<25)
79 #define SDHCI_QUIRK_NO_ENDATTR_IN_NOPDESC (1<<26)
81 #define SDHCI_QUIRK_MISSING_CAPS (1<<27)
83 #define SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12 (1<<28)
85 #define SDHCI_QUIRK_NO_HISPD_BIT (1<<29)
87 #define SDHCI_QUIRK_BROKEN_ADMA_ZEROLEN_DESC (1<<30)
89 #define SDHCI_QUIRK_UNSTABLE_RO_DETECT (1<<31)
93 #define SDHCI_QUIRK2_HOST_OFF_CARD_ON (1<<0)
94 #define SDHCI_QUIRK2_HOST_NO_CMD23 (1<<1)
108 #if defined(CONFIG_LEDS_CLASS) || defined(CONFIG_LEDS_CLASS_MODULE)
116 #define SDHCI_USE_SDMA (1<<0)
117 #define SDHCI_USE_ADMA (1<<1)
118 #define SDHCI_REQ_USE_DMA (1<<2)
119 #define SDHCI_DEVICE_DEAD (1<<3)
120 #define SDHCI_SDR50_NEEDS_TUNING (1<<4)
121 #define SDHCI_NEEDS_RETUNING (1<<5)
122 #define SDHCI_AUTO_CMD12 (1<<6)
123 #define SDHCI_AUTO_CMD23 (1<<7)
124 #define SDHCI_PV_ENABLED (1<<8)
125 #define SDHCI_SDIO_IRQ_ENABLED (1<<9)
126 #define SDHCI_HS200_NEEDS_TUNING (1<<10)
127 #define SDHCI_USING_RETUNING_TIMER (1<<11)
173 #define SDHCI_TUNING_MODE_1 0