hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/include/linux/mfd/tmio.h
....@@ -54,19 +54,8 @@
5454 * idle before writing to some registers.
5555 */
5656 #define TMIO_MMC_HAS_IDLE_WAIT BIT(4)
57
-/*
58
- * A GPIO is used for card hotplug detection. We need an extra flag for this,
59
- * because 0 is a valid GPIO number too, and requiring users to specify
60
- * cd_gpio < 0 to disable GPIO hotplug would break backwards compatibility.
61
- */
62
-#define TMIO_MMC_USE_GPIO_CD BIT(5)
6357
64
-/*
65
- * Some controllers doesn't have over 0x100 register.
66
- * it is used to checking accessibility of
67
- * CTL_SD_CARD_CLK_CTL / CTL_CLK_AND_WAIT_CTL
68
- */
69
-#define TMIO_MMC_HAVE_HIGH_REG BIT(6)
58
+/* BIT(5) is unused */
7059
7160 /*
7261 * Some controllers have CMD12 automatically
....@@ -90,9 +79,6 @@
9079 /* Some controllers have a CBSY bit */
9180 #define TMIO_MMC_HAVE_CBSY BIT(11)
9281
93
-/* Some controllers that support HS400 use use 4 taps while others use 8. */
94
-#define TMIO_MMC_HAVE_4TAP_HS400 BIT(13)
95
-
9682 int tmio_core_mmc_enable(void __iomem *cnf, int shift, unsigned long base);
9783 int tmio_core_mmc_resume(void __iomem *cnf, int shift, unsigned long base);
9884 void tmio_core_mmc_pwr(void __iomem *cnf, int shift, int state);
....@@ -111,7 +97,6 @@
11197 unsigned long capabilities2;
11298 unsigned long flags;
11399 u32 ocr_mask; /* available voltages */
114
- unsigned int cd_gpio;
115100 int alignment_shift;
116101 dma_addr_t dma_rx_offset;
117102 unsigned int max_blk_count;