diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/i2c/twl.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/include/linux/i2c/twl.h b/include/linux/i2c/twl.h index 53089516c17a..c760991b354a 100644 --- a/include/linux/i2c/twl.h +++ b/include/linux/i2c/twl.h | |||
| @@ -141,6 +141,16 @@ | |||
| 141 | #define TWL6030_CHARGER_CTRL_INT_MASK 0x10 | 141 | #define TWL6030_CHARGER_CTRL_INT_MASK 0x10 |
| 142 | #define TWL6030_CHARGER_FAULT_INT_MASK 0x60 | 142 | #define TWL6030_CHARGER_FAULT_INT_MASK 0x60 |
| 143 | 143 | ||
| 144 | #define TWL6030_MMCCTRL 0xEE | ||
| 145 | #define VMMC_AUTO_OFF (0x1 << 3) | ||
| 146 | #define SW_FC (0x1 << 2) | ||
| 147 | #define STS_MMC 0x1 | ||
| 148 | |||
| 149 | #define TWL6030_CFG_INPUT_PUPD3 0xF2 | ||
| 150 | #define MMC_PU (0x1 << 3) | ||
| 151 | #define MMC_PD (0x1 << 2) | ||
| 152 | |||
| 153 | |||
| 144 | 154 | ||
| 145 | #define TWL4030_CLASS_ID 0x4030 | 155 | #define TWL4030_CLASS_ID 0x4030 |
| 146 | #define TWL6030_CLASS_ID 0x6030 | 156 | #define TWL6030_CLASS_ID 0x6030 |
| @@ -173,6 +183,27 @@ int twl_i2c_read(u8 mod_no, u8 *value, u8 reg, unsigned num_bytes); | |||
| 173 | int twl6030_interrupt_unmask(u8 bit_mask, u8 offset); | 183 | int twl6030_interrupt_unmask(u8 bit_mask, u8 offset); |
| 174 | int twl6030_interrupt_mask(u8 bit_mask, u8 offset); | 184 | int twl6030_interrupt_mask(u8 bit_mask, u8 offset); |
| 175 | 185 | ||
| 186 | /* Card detect Configuration for MMC1 Controller on OMAP4 */ | ||
| 187 | #ifdef CONFIG_TWL4030_CORE | ||
| 188 | int twl6030_mmc_card_detect_config(void); | ||
| 189 | #else | ||
| 190 | static inline int twl6030_mmc_card_detect_config(void) | ||
| 191 | { | ||
| 192 | pr_debug("twl6030_mmc_card_detect_config not supported\n"); | ||
| 193 | return 0; | ||
| 194 | } | ||
| 195 | #endif | ||
| 196 | |||
| 197 | /* MMC1 Controller on OMAP4 uses Phoenix irq for Card detect */ | ||
| 198 | #ifdef CONFIG_TWL4030_CORE | ||
| 199 | int twl6030_mmc_card_detect(struct device *dev, int slot); | ||
| 200 | #else | ||
| 201 | static inline int twl6030_mmc_card_detect(struct device *dev, int slot) | ||
| 202 | { | ||
| 203 | pr_debug("Call back twl6030_mmc_card_detect not supported\n"); | ||
| 204 | return -EIO; | ||
| 205 | } | ||
| 206 | #endif | ||
| 176 | /*----------------------------------------------------------------------*/ | 207 | /*----------------------------------------------------------------------*/ |
| 177 | 208 | ||
| 178 | /* | 209 | /* |
