diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-01-11 00:55:24 +0100 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2013-01-15 07:42:17 +0100 |
commit | b17e54625cff1b06aec9df505b46c9bcdcd4823d (patch) | |
tree | 352673e11f5c5af0a40fe761eb947ae35c47820b /drivers/extcon/extcon-arizona.c | |
parent | extcon: arizona: Only set GPIO if it has been requested (diff) | |
download | linux-b17e54625cff1b06aec9df505b46c9bcdcd4823d.tar.xz linux-b17e54625cff1b06aec9df505b46c9bcdcd4823d.zip |
extcon: arizona: Allow configuration of MICBIAS rise time
Allow configuration of the rise time for MICBIAS via platform data, the
delay required depends on things like the external component selection.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Diffstat (limited to 'drivers/extcon/extcon-arizona.c')
-rw-r--r-- | drivers/extcon/extcon-arizona.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/extcon/extcon-arizona.c b/drivers/extcon/extcon-arizona.c index 9e1d104803e7..635b7078ce5e 100644 --- a/drivers/extcon/extcon-arizona.c +++ b/drivers/extcon/extcon-arizona.c @@ -417,6 +417,12 @@ static int arizona_extcon_probe(struct platform_device *pdev) } } + if (arizona->pdata.micd_bias_start_time) + regmap_update_bits(arizona->regmap, ARIZONA_MIC_DETECT_1, + ARIZONA_MICD_BIAS_STARTTIME_MASK, + arizona->pdata.micd_bias_start_time + << ARIZONA_MICD_BIAS_STARTTIME_SHIFT); + arizona_extcon_set_mode(info, 0); info->input = devm_input_allocate_device(&pdev->dev); |