summaryrefslogtreecommitdiff
path: root/arch/arm/mach-ux500/board-mop500-bm.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-ux500/board-mop500-bm.c')
-rw-r--r--arch/arm/mach-ux500/board-mop500-bm.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/board-mop500-bm.c b/arch/arm/mach-ux500/board-mop500-bm.c
index 400f89a85cc..6f380b45ad5 100644
--- a/arch/arm/mach-ux500/board-mop500-bm.c
+++ b/arch/arm/mach-ux500/board-mop500-bm.c
@@ -12,6 +12,7 @@
#include <linux/power_supply.h>
#include <linux/mfd/ab8500/bm.h>
+#include <linux/mfd/ab8500/pwmleds.h>
#include "board-mop500-bm.h"
#ifdef CONFIG_AB8500_BATTERY_THERM_ON_BATCTRL
@@ -402,6 +403,26 @@ struct ab8500_chargalg_platform_data ab8500_chargalg_plat_data = {
.num_supplicants = ARRAY_SIZE(ab8500_chargalg_supplied_to),
};
+static struct ab8500_led_pwm leds_pwm_data[] = {
+ [0] = {
+ .pwm_id = 1,
+ .blink_en = 1,
+ },
+ [1] = {
+ .pwm_id = 2,
+ .blink_en = 0,
+ },
+ [2] = {
+ .pwm_id = 3,
+ .blink_en = 0,
+ },
+};
+
+struct ab8500_pwmled_platform_data ab8500_pwmled_plat_data = {
+ .num_pwm = 3,
+ .leds = leds_pwm_data,
+};
+
static const struct ab8500_bm_capacity_levels cap_levels = {
.critical = 2,
.low = 10,