2006-03-31 18:31:04 +08:00
|
|
|
|
|
|
|
# LED Core
|
|
|
|
obj-$(CONFIG_NEW_LEDS) += led-core.o
|
|
|
|
obj-$(CONFIG_LEDS_CLASS) += led-class.o
|
2006-03-31 18:31:05 +08:00
|
|
|
obj-$(CONFIG_LEDS_TRIGGERS) += led-triggers.o
|
2006-03-31 18:31:07 +08:00
|
|
|
|
2006-03-31 18:31:09 +08:00
|
|
|
# LED Platform Drivers
|
2010-01-07 06:10:09 +08:00
|
|
|
obj-$(CONFIG_LEDS_88PM860X) += leds-88pm860x.o
|
2008-02-08 20:21:22 +08:00
|
|
|
obj-$(CONFIG_LEDS_ATMEL_PWM) += leds-atmel-pwm.o
|
2009-03-05 03:59:29 +08:00
|
|
|
obj-$(CONFIG_LEDS_BD2802) += leds-bd2802.o
|
2006-03-31 18:31:10 +08:00
|
|
|
obj-$(CONFIG_LEDS_LOCOMO) += leds-locomo.o
|
2011-03-23 07:30:16 +08:00
|
|
|
obj-$(CONFIG_LEDS_LM3530) += leds-lm3530.o
|
2012-05-30 06:07:31 +08:00
|
|
|
obj-$(CONFIG_LEDS_LM3533) += leds-lm3533.o
|
2009-01-23 02:35:48 +08:00
|
|
|
obj-$(CONFIG_LEDS_MIKROTIK_RB532) += leds-rb532.o
|
2006-04-11 13:54:00 +08:00
|
|
|
obj-$(CONFIG_LEDS_S3C24XX) += leds-s3c24xx.o
|
2006-07-10 19:45:34 +08:00
|
|
|
obj-$(CONFIG_LEDS_NET48XX) += leds-net48xx.o
|
2006-12-07 12:37:28 +08:00
|
|
|
obj-$(CONFIG_LEDS_WRAP) += leds-wrap.o
|
2007-09-21 07:02:47 +08:00
|
|
|
obj-$(CONFIG_LEDS_COBALT_QUBE) += leds-cobalt-qube.o
|
2007-09-27 16:51:05 +08:00
|
|
|
obj-$(CONFIG_LEDS_COBALT_RAQ) += leds-cobalt-raq.o
|
2008-09-01 11:26:48 +08:00
|
|
|
obj-$(CONFIG_LEDS_SUNFIRE) += leds-sunfire.o
|
2008-05-31 21:43:41 +08:00
|
|
|
obj-$(CONFIG_LEDS_PCA9532) += leds-pca9532.o
|
2011-05-25 08:13:29 +08:00
|
|
|
obj-$(CONFIG_LEDS_GPIO_REGISTER) += leds-gpio-register.o
|
2007-02-28 03:49:53 +08:00
|
|
|
obj-$(CONFIG_LEDS_GPIO) += leds-gpio.o
|
2009-06-19 19:55:42 +08:00
|
|
|
obj-$(CONFIG_LEDS_LP3944) += leds-lp3944.o
|
2010-11-12 06:05:23 +08:00
|
|
|
obj-$(CONFIG_LEDS_LP5521) += leds-lp5521.o
|
|
|
|
obj-$(CONFIG_LEDS_LP5523) += leds-lp5523.o
|
2012-01-11 07:09:40 +08:00
|
|
|
obj-$(CONFIG_LEDS_TCA6507) += leds-tca6507.o
|
2007-10-31 18:46:41 +08:00
|
|
|
obj-$(CONFIG_LEDS_CLEVO_MAIL) += leds-clevo-mail.o
|
2008-02-07 18:10:28 +08:00
|
|
|
obj-$(CONFIG_LEDS_HP6XX) += leds-hp6xx.o
|
2012-01-21 06:33:59 +08:00
|
|
|
obj-$(CONFIG_LEDS_OT200) += leds-ot200.o
|
2008-04-25 06:43:09 +08:00
|
|
|
obj-$(CONFIG_LEDS_FSG) += leds-fsg.o
|
2008-07-17 05:49:55 +08:00
|
|
|
obj-$(CONFIG_LEDS_PCA955X) += leds-pca955x.o
|
2012-03-24 06:02:10 +08:00
|
|
|
obj-$(CONFIG_LEDS_PCA9633) += leds-pca9633.o
|
2008-10-13 16:06:10 +08:00
|
|
|
obj-$(CONFIG_LEDS_DA903X) += leds-da903x.o
|
2012-05-30 06:07:26 +08:00
|
|
|
obj-$(CONFIG_LEDS_DA9052) += leds-da9052.o
|
2009-09-05 21:09:21 +08:00
|
|
|
obj-$(CONFIG_LEDS_WM831X_STATUS) += leds-wm831x-status.o
|
2008-12-05 00:52:33 +08:00
|
|
|
obj-$(CONFIG_LEDS_WM8350) += leds-wm8350.o
|
2009-02-12 05:24:40 +08:00
|
|
|
obj-$(CONFIG_LEDS_PWM) += leds-pwm.o
|
2009-12-07 22:08:13 +08:00
|
|
|
obj-$(CONFIG_LEDS_REGULATOR) += leds-regulator.o
|
2009-10-02 06:43:32 +08:00
|
|
|
obj-$(CONFIG_LEDS_INTEL_SS4200) += leds-ss4200.o
|
2009-10-15 08:59:35 +08:00
|
|
|
obj-$(CONFIG_LEDS_LT3593) += leds-lt3593.o
|
2009-10-08 16:00:19 +08:00
|
|
|
obj-$(CONFIG_LEDS_ADP5520) += leds-adp5520.o
|
2010-02-18 05:23:31 +08:00
|
|
|
obj-$(CONFIG_LEDS_DELL_NETBOOKS) += dell-led.o
|
2010-05-19 15:24:31 +08:00
|
|
|
obj-$(CONFIG_LEDS_MC13783) += leds-mc13783.o
|
2010-07-06 22:08:46 +08:00
|
|
|
obj-$(CONFIG_LEDS_NS2) += leds-ns2.o
|
2010-10-07 22:38:49 +08:00
|
|
|
obj-$(CONFIG_LEDS_NETXBIG) += leds-netxbig.o
|
2011-05-14 02:52:56 +08:00
|
|
|
obj-$(CONFIG_LEDS_ASIC3) += leds-asic3.o
|
2011-11-01 08:11:55 +08:00
|
|
|
obj-$(CONFIG_LEDS_RENESAS_TPU) += leds-renesas-tpu.o
|
2011-12-14 17:23:56 +08:00
|
|
|
obj-$(CONFIG_LEDS_MAX8997) += leds-max8997.o
|
2012-06-22 08:12:06 +08:00
|
|
|
obj-$(CONFIG_LEDS_LM3556) += leds-lm3556.o
|
2012-07-20 16:49:06 +08:00
|
|
|
obj-$(CONFIG_LEDS_BLINKM) += leds-blinkm.o
|
2006-03-31 18:31:09 +08:00
|
|
|
|
2009-01-11 02:58:28 +08:00
|
|
|
# LED SPI Drivers
|
|
|
|
obj-$(CONFIG_LEDS_DAC124S085) += leds-dac124s085.o
|
|
|
|
|
2006-03-31 18:31:07 +08:00
|
|
|
# LED Triggers
|
|
|
|
obj-$(CONFIG_LEDS_TRIGGER_TIMER) += ledtrig-timer.o
|
2012-06-07 06:11:05 +08:00
|
|
|
obj-$(CONFIG_LEDS_TRIGGER_ONESHOT) += ledtrig-oneshot.o
|
2006-03-31 18:31:16 +08:00
|
|
|
obj-$(CONFIG_LEDS_TRIGGER_IDE_DISK) += ledtrig-ide-disk.o
|
2006-06-25 20:49:15 +08:00
|
|
|
obj-$(CONFIG_LEDS_TRIGGER_HEARTBEAT) += ledtrig-heartbeat.o
|
2008-10-13 16:25:24 +08:00
|
|
|
obj-$(CONFIG_LEDS_TRIGGER_BACKLIGHT) += ledtrig-backlight.o
|
2009-02-17 19:18:11 +08:00
|
|
|
obj-$(CONFIG_LEDS_TRIGGER_GPIO) += ledtrig-gpio.o
|
2008-04-25 07:06:52 +08:00
|
|
|
obj-$(CONFIG_LEDS_TRIGGER_DEFAULT_ON) += ledtrig-default-on.o
|
leds: add new transient trigger for one shot timer activation
The leds timer trigger does not currently have an interface to activate a
one shot timer. The current support allows for setting two timers, one
for specifying how long a state to be on, and the second for how long the
state to be off. The delay_on value specifies the time period an LED
should stay in on state, followed by a delay_off value that specifies how
long the LED should stay in off state. The on and off cycle repeats until
the trigger gets deactivated. There is no provision for one time
activation to implement features that require an on or off state to be
held just once and then stay in the original state forever.
Without one shot timer interface, user space can still use timer trigger
to set a timer to hold a state, however when user space application
crashes or goes away without deactivating the timer, the hardware will be
left in that state permanently.
As a specific example of this use-case, let's look at vibrate feature on
phones. Vibrate function on phones is implemented using PWM pins on SoC
or PMIC. There is a need to activate one shot timer to control the
vibrate feature, to prevent user space crashes leaving the phone in
vibrate mode permanently causing the battery to drain.
This trigger exports three properties, activate, state, and duration When
transient trigger is activated these properties are set to default values.
- duration allows setting timer value in msecs. The initial value is 0.
- activate allows activating and deactivating the timer specified by
duration as needed. The initial and default value is 0. This will allow
duration to be set after trigger activation.
- state allows user to specify a transient state to be held for the specified
duration.
Signed-off-by: Shuah Khan <shuahkhan@gmail.com>
Cc: Jonas Bonn <jonas@southpole.se>
Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: NeilBrown <neilb@suse.de>
Cc: Bryan Wu <bryan.wu@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-05-30 06:07:30 +08:00
|
|
|
obj-$(CONFIG_LEDS_TRIGGER_TRANSIENT) += ledtrig-transient.o
|