aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-02-21 16:57:13 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2013-02-21 16:57:13 -0500
commit7ed214ac2095f561a94335ca672b6c42a1ea40ff (patch)
treeda41901bff1d0d8d61170bf362384fdc61deb3ab /drivers/mfd
parent21eaab6d19ed43e82ed39c8deb7f192134fb4a0e (diff)
parent29e5507ae4ab34397f538f06b7070c81a4e4a2bf (diff)
Merge tag 'char-misc-3.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
Pull char/misc driver patches from Greg Kroah-Hartman: "Here's the big char/misc driver patches for 3.9-rc1. Nothing major here, just lots of different driver updates (mei, hyperv, ipack, extcon, vmci, etc.). All of these have been in the linux-next tree for a while." * tag 'char-misc-3.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (209 commits) w1: w1_therm: Add force-pullup option for "broken" sensors w1: ds2482: Added 1-Wire pull-up support to the driver vme: add missing put_device() after device_register() fails extcon: max8997: Use workqueue to check cable state after completing boot of platform extcon: max8997: Set default UART/USB path on probe extcon: max8997: Consolidate duplicate code for checking ADC/CHG cable type extcon: max8997: Set default of ADC debounce time during initialization extcon: max8997: Remove duplicate code related to set H/W line path extcon: max8997: Move defined constant to header file extcon: max77693: Make max77693_extcon_cable static extcon: max8997: Remove unreachable code extcon: max8997: Make max8997_extcon_cable static extcon: max77693: Remove unnecessary goto statement to improve readability extcon: max77693: Convert to devm_input_allocate_device() extcon: gpio: Rename filename of extcon-gpio.c according to kernel naming style CREDITS: update email and address of Harald Hoyer extcon: arizona: Use MICDET for final microphone identification extcon: arizona: Always take the first HPDET reading as the final one extcon: arizona: Clear _trig_sts bits after jack detection extcon: arizona: Don't HPDET magic when headphones are enabled ...
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/wm5102-tables.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/mfd/wm5102-tables.c b/drivers/mfd/wm5102-tables.c
index f6fcb87b3504..a9d9d41d95d3 100644
--- a/drivers/mfd/wm5102-tables.c
+++ b/drivers/mfd/wm5102-tables.c
@@ -84,6 +84,12 @@ int wm5102_patch(struct arizona *arizona)
84} 84}
85 85
86static const struct regmap_irq wm5102_aod_irqs[ARIZONA_NUM_IRQ] = { 86static const struct regmap_irq wm5102_aod_irqs[ARIZONA_NUM_IRQ] = {
87 [ARIZONA_IRQ_MICD_CLAMP_FALL] = {
88 .mask = ARIZONA_MICD_CLAMP_FALL_EINT1
89 },
90 [ARIZONA_IRQ_MICD_CLAMP_RISE] = {
91 .mask = ARIZONA_MICD_CLAMP_RISE_EINT1
92 },
87 [ARIZONA_IRQ_GP5_FALL] = { .mask = ARIZONA_GP5_FALL_EINT1 }, 93 [ARIZONA_IRQ_GP5_FALL] = { .mask = ARIZONA_GP5_FALL_EINT1 },
88 [ARIZONA_IRQ_GP5_RISE] = { .mask = ARIZONA_GP5_RISE_EINT1 }, 94 [ARIZONA_IRQ_GP5_RISE] = { .mask = ARIZONA_GP5_RISE_EINT1 },
89 [ARIZONA_IRQ_JD_FALL] = { .mask = ARIZONA_JD1_FALL_EINT1 }, 95 [ARIZONA_IRQ_JD_FALL] = { .mask = ARIZONA_JD1_FALL_EINT1 },
@@ -313,6 +319,7 @@ static const struct reg_default wm5102_reg_default[] = {
313 { 0x0000021A, 0x01A6 }, /* R538 - Mic Bias Ctrl 3 */ 319 { 0x0000021A, 0x01A6 }, /* R538 - Mic Bias Ctrl 3 */
314 { 0x00000293, 0x0000 }, /* R659 - Accessory Detect Mode 1 */ 320 { 0x00000293, 0x0000 }, /* R659 - Accessory Detect Mode 1 */
315 { 0x0000029B, 0x0020 }, /* R667 - Headphone Detect 1 */ 321 { 0x0000029B, 0x0020 }, /* R667 - Headphone Detect 1 */
322 { 0x000002A2, 0x0000 }, /* R674 - Micd clamp control */
316 { 0x000002A3, 0x1102 }, /* R675 - Mic Detect 1 */ 323 { 0x000002A3, 0x1102 }, /* R675 - Mic Detect 1 */
317 { 0x000002A4, 0x009F }, /* R676 - Mic Detect 2 */ 324 { 0x000002A4, 0x009F }, /* R676 - Mic Detect 2 */
318 { 0x000002A5, 0x0000 }, /* R677 - Mic Detect 3 */ 325 { 0x000002A5, 0x0000 }, /* R677 - Mic Detect 3 */
@@ -1107,6 +1114,8 @@ static bool wm5102_readable_register(struct device *dev, unsigned int reg)
1107 case ARIZONA_ACCESSORY_DETECT_MODE_1: 1114 case ARIZONA_ACCESSORY_DETECT_MODE_1:
1108 case ARIZONA_HEADPHONE_DETECT_1: 1115 case ARIZONA_HEADPHONE_DETECT_1:
1109 case ARIZONA_HEADPHONE_DETECT_2: 1116 case ARIZONA_HEADPHONE_DETECT_2:
1117 case ARIZONA_HP_DACVAL:
1118 case ARIZONA_MICD_CLAMP_CONTROL:
1110 case ARIZONA_MIC_DETECT_1: 1119 case ARIZONA_MIC_DETECT_1:
1111 case ARIZONA_MIC_DETECT_2: 1120 case ARIZONA_MIC_DETECT_2:
1112 case ARIZONA_MIC_DETECT_3: 1121 case ARIZONA_MIC_DETECT_3:
@@ -1876,6 +1885,7 @@ static bool wm5102_volatile_register(struct device *dev, unsigned int reg)
1876 case ARIZONA_DSP1_STATUS_2: 1885 case ARIZONA_DSP1_STATUS_2:
1877 case ARIZONA_DSP1_STATUS_3: 1886 case ARIZONA_DSP1_STATUS_3:
1878 case ARIZONA_HEADPHONE_DETECT_2: 1887 case ARIZONA_HEADPHONE_DETECT_2:
1888 case ARIZONA_HP_DACVAL:
1879 case ARIZONA_MIC_DETECT_3: 1889 case ARIZONA_MIC_DETECT_3:
1880 return true; 1890 return true;
1881 default: 1891 default: