Commit 105cf1fe authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

Merge tag 'extcon-arizona-3.9' of...

Merge tag 'extcon-arizona-3.9' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/misc into char-misc-next

Mark writes:
	extcon: arizona: Updates for v3.9

	More updates for v3.9, a mix of fixes for the code that's already there
	and a few new features.
parents 1c7db96f bf14ee5a
...@@ -47,7 +47,7 @@ config EXTCON_MAX8997 ...@@ -47,7 +47,7 @@ config EXTCON_MAX8997
config EXTCON_ARIZONA config EXTCON_ARIZONA
tristate "Wolfson Arizona EXTCON support" tristate "Wolfson Arizona EXTCON support"
depends on MFD_ARIZONA && INPUT depends on MFD_ARIZONA && INPUT && SND_SOC
help help
Say Y here to enable support for external accessory detection Say Y here to enable support for external accessory detection
with Wolfson Arizona devices. These are audio CODECs with with Wolfson Arizona devices. These are audio CODECs with
......
This diff is collapsed.
...@@ -111,6 +111,15 @@ struct arizona_pdata { ...@@ -111,6 +111,15 @@ struct arizona_pdata {
/** Mic detect ramp rate */ /** Mic detect ramp rate */
int micd_bias_start_time; int micd_bias_start_time;
/** Mic detect sample rate */
int micd_rate;
/** Mic detect debounce level */
int micd_dbtime;
/** Force MICBIAS on for mic detect */
bool micd_force_micbias;
/** Headset polarity configurations */ /** Headset polarity configurations */
struct arizona_micd_config *micd_configs; struct arizona_micd_config *micd_configs;
int num_micd_configs; int num_micd_configs;
......
...@@ -5267,6 +5267,14 @@ ...@@ -5267,6 +5267,14 @@
/* /*
* R3408 (0xD50) - AOD wkup and trig * R3408 (0xD50) - AOD wkup and trig
*/ */
#define ARIZONA_MICD_CLAMP_FALL_TRIG_STS 0x0080 /* MICD_CLAMP_FALL_TRIG_STS */
#define ARIZONA_MICD_CLAMP_FALL_TRIG_STS_MASK 0x0080 /* MICD_CLAMP_FALL_TRIG_STS */
#define ARIZONA_MICD_CLAMP_FALL_TRIG_STS_SHIFT 7 /* MICD_CLAMP_FALL_TRIG_STS */
#define ARIZONA_MICD_CLAMP_FALL_TRIG_STS_WIDTH 1 /* MICD_CLAMP_FALL_TRIG_STS */
#define ARIZONA_MICD_CLAMP_RISE_TRIG_STS 0x0040 /* MICD_CLAMP_RISE_TRIG_STS */
#define ARIZONA_MICD_CLAMP_RISE_TRIG_STS_MASK 0x0040 /* MICD_CLAMP_RISE_TRIG_STS */
#define ARIZONA_MICD_CLAMP_RISE_TRIG_STS_SHIFT 6 /* MICD_CLAMP_RISE_TRIG_STS */
#define ARIZONA_MICD_CLAMP_RISE_TRIG_STS_WIDTH 1 /* MICD_CLAMP_RISE_TRIG_STS */
#define ARIZONA_GP5_FALL_TRIG_STS 0x0020 /* GP5_FALL_TRIG_STS */ #define ARIZONA_GP5_FALL_TRIG_STS 0x0020 /* GP5_FALL_TRIG_STS */
#define ARIZONA_GP5_FALL_TRIG_STS_MASK 0x0020 /* GP5_FALL_TRIG_STS */ #define ARIZONA_GP5_FALL_TRIG_STS_MASK 0x0020 /* GP5_FALL_TRIG_STS */
#define ARIZONA_GP5_FALL_TRIG_STS_SHIFT 5 /* GP5_FALL_TRIG_STS */ #define ARIZONA_GP5_FALL_TRIG_STS_SHIFT 5 /* GP5_FALL_TRIG_STS */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment