aboutsummaryrefslogtreecommitdiff
path: root/include/twl4030.h
diff options
context:
space:
mode:
authorGrazvydas Ignotas <notasas@gmail.com>2009-12-10 17:10:21 +0200
committerTom Rix <Tom.Rix@windriver.com>2010-01-04 08:48:15 -0600
commitead39d7aa3ddccb2e374217aeab23bd65cedb762 (patch)
tree2b112424e3938fef8dd40f1cdeb6cbeac2636a64 /include/twl4030.h
parent87d93a1ba2ae23550e1370adb7a3b00af0831165 (diff)
TWL4030: make LEDs selectable for twl4030_led_init()
Not all boards have both LEDs hooked, so enabling both on boards with single LED will just waste power. Make it possible to choose LEDs by adding argument to twl4030_led_init(). Using this turn on only LEDB for pandora, leave both LEDs on for all other boards, as it was before this patch. Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Diffstat (limited to 'include/twl4030.h')
-rw-r--r--include/twl4030.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/twl4030.h b/include/twl4030.h
index feaec47b3..2b2f5ae6c 100644
--- a/include/twl4030.h
+++ b/include/twl4030.h
@@ -306,6 +306,10 @@
/* LED */
#define TWL4030_LED_LEDEN 0xEE
+#define TWL4030_LED_LEDEN_LEDAON (1 << 0)
+#define TWL4030_LED_LEDEN_LEDBON (1 << 1)
+#define TWL4030_LED_LEDEN_LEDAPWM (1 << 4)
+#define TWL4030_LED_LEDEN_LEDBPWM (1 << 5)
/* Keypad */
#define TWL4030_KEYPAD_KEYP_CTRL_REG 0xD2
@@ -504,7 +508,7 @@ void twl4030_power_mmc_init(void);
/*
* LED
*/
-void twl4030_led_init(void);
+void twl4030_led_init(unsigned char ledon_mask);
/*
* USB