diff options
author | Shreshtha Kumar Sahu <shreshthakumar.sahu@stericsson.com> | 2011-06-01 15:50:22 +0530 |
---|---|---|
committer | said m bagheri <ebgheri@steludxu2848.(none)> | 2011-06-29 10:30:26 +0200 |
commit | 11f1e1c90471895813bbece21d3f82012fb1a61d (patch) | |
tree | 7734c488dcf78bf2c478fd58c03a359d25691ce8 /arch | |
parent | f84908fc69fa93e6fdf18114470c9fc02d36d593 (diff) |
u5500: leds: lm3530: calibrate ALS input voltage
This patch provides the support for auto
calibration of ALS Zone boundaries based
on min/max ALS input voltage.
ST-Ericsson Linux next: (Tested and reviewed 2011-06-09, ER336280)
ST-Ericsson ID: 343609
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I64f7dc5c72381fd5574b26d571ac4cfda7d86484
Signed-off-by: Shreshtha Kumar Sahu <shreshthakumar.sahu@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/24332
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-ux500/board-u5500.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/arch/arm/mach-ux500/board-u5500.c b/arch/arm/mach-ux500/board-u5500.c index 831eabb1651..213867a56ec 100644 --- a/arch/arm/mach-ux500/board-u5500.c +++ b/arch/arm/mach-ux500/board-u5500.c @@ -88,10 +88,12 @@ static struct lm3530_platform_data u5500_als_platform_data = { .pwm_pol_hi = true, .als_avrg_time = LM3530_ALS_AVRG_TIME_512ms, .brt_ramp_law = 1, /* Linear */ - .brt_ramp_fall = LM3530_RAMP_TIME_1ms, - .brt_ramp_rise = LM3530_RAMP_TIME_1ms, - .als1_resistor_sel = LM3530_ALS_IMPD_2_27kOhm, - .als2_resistor_sel = LM3530_ALS_IMPD_2_27kOhm, + .brt_ramp_fall = LM3530_RAMP_TIME_8s, + .brt_ramp_rise = LM3530_RAMP_TIME_8s, + .als1_resistor_sel = LM3530_ALS_IMPD_13_53kOhm, + .als2_resistor_sel = LM3530_ALS_IMPD_Z, + .als_vmin = 730, /* mV */ + .als_vmax = 1020, /* mV */ .brt_val = 0x7F, /* Max brightness */ }; |