diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/mfd/wm8994/pdata.h | 3 | ||||
| -rw-r--r-- | include/linux/platform_data/omap-abe-twl6040.h | 49 | ||||
| -rw-r--r-- | include/linux/regmap.h | 4 |
3 files changed, 56 insertions, 0 deletions
diff --git a/include/linux/mfd/wm8994/pdata.h b/include/linux/mfd/wm8994/pdata.h index 3fb1f407d5e6..dc3e05011689 100644 --- a/include/linux/mfd/wm8994/pdata.h +++ b/include/linux/mfd/wm8994/pdata.h | |||
| @@ -185,6 +185,9 @@ struct wm8994_pdata { | |||
| 185 | unsigned int jd_scthr:2; | 185 | unsigned int jd_scthr:2; |
| 186 | unsigned int jd_thr:2; | 186 | unsigned int jd_thr:2; |
| 187 | 187 | ||
| 188 | /* Configure WM1811 jack detection for use with external capacitor */ | ||
| 189 | unsigned int jd_ext_cap:1; | ||
| 190 | |||
| 188 | /* WM8958 microphone bias configuration */ | 191 | /* WM8958 microphone bias configuration */ |
| 189 | int micbias[2]; | 192 | int micbias[2]; |
| 190 | 193 | ||
diff --git a/include/linux/platform_data/omap-abe-twl6040.h b/include/linux/platform_data/omap-abe-twl6040.h new file mode 100644 index 000000000000..5d298ac10fc2 --- /dev/null +++ b/include/linux/platform_data/omap-abe-twl6040.h | |||
| @@ -0,0 +1,49 @@ | |||
| 1 | /** | ||
| 2 | * omap-abe-twl6040.h - ASoC machine driver OMAP4+ devices, header. | ||
| 3 | * | ||
| 4 | * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com | ||
| 5 | * All rights reserved. | ||
| 6 | * | ||
| 7 | * Author: Peter Ujfalusi <peter.ujfalusi@ti.com> | ||
| 8 | * | ||
| 9 | * This program is free software; you can redistribute it and/or | ||
| 10 | * modify it under the terms of the GNU General Public License | ||
| 11 | * version 2 as published by the Free Software Foundation. | ||
| 12 | * | ||
| 13 | * This program is distributed in the hope that it will be useful, but | ||
| 14 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 16 | * General Public License for more details. | ||
| 17 | * | ||
| 18 | * You should have received a copy of the GNU General Public License | ||
| 19 | * along with this program; if not, write to the Free Software | ||
| 20 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | ||
| 21 | * 02110-1301 USA | ||
| 22 | */ | ||
| 23 | |||
| 24 | #ifndef _OMAP_ABE_TWL6040_H_ | ||
| 25 | #define _OMAP_ABE_TWL6040_H_ | ||
| 26 | |||
| 27 | /* To select if only one channel is connected in a stereo port */ | ||
| 28 | #define ABE_TWL6040_LEFT (1 << 0) | ||
| 29 | #define ABE_TWL6040_RIGHT (1 << 1) | ||
| 30 | |||
| 31 | struct omap_abe_twl6040_data { | ||
| 32 | char *card_name; | ||
| 33 | /* Feature flags for connected audio pins */ | ||
| 34 | u8 has_hs; | ||
| 35 | u8 has_hf; | ||
| 36 | bool has_ep; | ||
| 37 | u8 has_aux; | ||
| 38 | u8 has_vibra; | ||
| 39 | bool has_dmic; | ||
| 40 | bool has_hsmic; | ||
| 41 | bool has_mainmic; | ||
| 42 | bool has_submic; | ||
| 43 | u8 has_afm; | ||
| 44 | /* Other features */ | ||
| 45 | bool jack_detection; /* board can detect jack events */ | ||
| 46 | int mclk_freq; /* MCLK frequency speed for twl6040 */ | ||
| 47 | }; | ||
| 48 | |||
| 49 | #endif /* _OMAP_ABE_TWL6040_H_ */ | ||
diff --git a/include/linux/regmap.h b/include/linux/regmap.h index eb93921cdd30..c47898d47c8a 100644 --- a/include/linux/regmap.h +++ b/include/linux/regmap.h | |||
| @@ -143,12 +143,16 @@ int regmap_update_bits(struct regmap *map, unsigned int reg, | |||
| 143 | int regmap_update_bits_check(struct regmap *map, unsigned int reg, | 143 | int regmap_update_bits_check(struct regmap *map, unsigned int reg, |
| 144 | unsigned int mask, unsigned int val, | 144 | unsigned int mask, unsigned int val, |
| 145 | bool *change); | 145 | bool *change); |
| 146 | int regmap_get_val_bytes(struct regmap *map); | ||
| 146 | 147 | ||
| 147 | int regcache_sync(struct regmap *map); | 148 | int regcache_sync(struct regmap *map); |
| 148 | void regcache_cache_only(struct regmap *map, bool enable); | 149 | void regcache_cache_only(struct regmap *map, bool enable); |
| 149 | void regcache_cache_bypass(struct regmap *map, bool enable); | 150 | void regcache_cache_bypass(struct regmap *map, bool enable); |
| 150 | void regcache_mark_dirty(struct regmap *map); | 151 | void regcache_mark_dirty(struct regmap *map); |
| 151 | 152 | ||
| 153 | int regmap_register_patch(struct regmap *map, const struct reg_default *regs, | ||
| 154 | int num_regs); | ||
| 155 | |||
| 152 | /** | 156 | /** |
| 153 | * Description of an IRQ for the generic regmap irq_chip. | 157 | * Description of an IRQ for the generic regmap irq_chip. |
| 154 | * | 158 | * |
