Commit graph

13 commits

Author SHA1 Message Date
yetta_wu
8ca7624ab7 display: JDI: config backlight level when kernel init
1. Remove the gpio 26 config in board-flo-pmic.c
   since this gpio is already config as PWM function in LK.

2. Add pwm_init function implementation.

3. Config backlight level in pm8xxx_led_probe(), and remove the
   pwm_request() part in panel probe function.

Change-Id: I3ce71a9c792ce155bebabd80a24a8ff8fc361ae9
Signed-off-by: yetta_wu <yetta_wu@asus.com>
2013-04-18 16:09:22 -07:00
xinchuan_wu
999e4db407 leds: remove unnecessary sysfs function.
Change-Id: I17938040002376b4bf80a4cefdc877cb8aea195f
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/68558
Reviewed-by: Xinchuan Wu <Xinchuan_Wu@asus.com>
Tested-by: Xinchuan Wu <Xinchuan_Wu@asus.com>
2013-04-18 16:08:00 -07:00
xinchuan_wu
6a63a545dc leds: initialize leds-pm8xxx driver.
1. init leds-pm8xxxx
2. create three sysfs node to set parameter of led breathing behavior.

Change-Id: I5c2fc62a93889a7ed4197d3dc76fd495691d0175
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/68439
Reviewed-by: Xinchuan Wu <Xinchuan_Wu@asus.com>
Tested-by: Xinchuan Wu <Xinchuan_Wu@asus.com>
2013-04-18 16:08:00 -07:00
Duy Truong
04e554807c Update copyright to The Linux Foundation
Change-Id: Ibead64ce2e901dede2ddd1b86088b88f2350ce92
Signed-off-by: Duy Truong <dtruong@codeaurora.org>
2013-03-15 17:07:39 -07:00
Mohan Pallaka
6552a042dc leds: leds-pm8xxx: Fix incorrect register macros
Some of the register macros are incorrectly used. Fix
them to be used properly.

(cherry picked from commit 58ff4051ab7ec40d516ca82b6287a230260fe2ee)
CRs-fixed: 421968

Change-Id: I392ab2e7074a432d152aaa846adbae54ad51ba3a
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
Signed-off-by: Neha Pandey <nehap@codeaurora.org>
2013-03-07 15:24:27 -08:00
Amy Maloche
751fecf8da leds: leds-pm8xxx: Add CABC support for backlight control
Content adaptive backlight control (CABC) support is needed to
control backlight by external PWM.  It can be enabled by setting
"cabc_en = true" in the platform data wled_cfg structure.

CRs-fixed: 379347

Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
(cherry picked from commit c366d5bfc380183e1c4f9877b2c8558098bd4281)

Change-Id: Iae7940d25d8754ab539d5ce1fa3f78972b5222d1
Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
2013-03-07 15:19:23 -08:00
Devin Kim
dbe6237c19 leds: pm8xxx: change calculation of blinking period and on/off timing
Change-Id: I6adae65ae692c0a3d79bc45356ba8f880b3d00f3
Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-04 12:44:58 -08:00
samin.ryu
c9c2c61431 leds: pm8xxx: add calculation of blinking period and on/off
Change-Id: I718f506051ef367db08c7c8413e536cd5da22a95
2013-03-04 12:44:48 -08:00
samin.ryu
32680eaa3a leds: pm8xxx: change adjust brightness routine
add pwm_adjust_brightness field for current control.

Change-Id: If0ba79324fcf50334f88f006a8ff30b59b7d4982
2013-03-04 12:44:46 -08:00
Devin Kim
230093630f leds: pm8xxx: adjust the max brightness
This maps android brightness level 0 to 255 into driver backlight
level 0 to board max brightness with roudning

Change-Id: I760881fc25d7799afe55df8d213533c19432e81f
2013-03-04 12:44:06 -08:00
samin.ryu
21e0694a39 leds: pm8xxx: add pwm control sysfs files
PWM(frequency) is controlled by userspace

Change-Id: I6a3194de0b843841cdf56941dbcc43fcdc3a4f42
2013-03-04 12:44:05 -08:00
Amy Maloche
66dcf89ab8 drivers: leds-pm8xxx: enable low power mode for RGB LED
Disable RGB module when the LED is turned off and enable the
module when the LED is on.

CRs-fixed: 381623
Change-Id: I0861c6a38fff19c9499d169deaa02d05696bd148
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
2013-02-27 18:17:10 -08:00
Trilok Soni
406324fb62 led: pm8xxx: Add pm8xxx leds driver
Add support for Qualcomm PMIC8XXX keyboard
backlight, flash and low current leds.

Change-Id: I460480e0c7f98da4cb27c76ca7ac65807df74a7f
Signed-off-by: Trilok Soni <tsoni@codeaurora.org>
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2013-02-25 11:31:05 -08:00