board-stingray-power: add notification led driver
authorPraveen Bharathi <pbharathi@motorola.com>
Thu, 12 Aug 2010 16:11:32 +0000 (11:11 -0500)
committerColin Cross <ccross@android.com>
Wed, 6 Oct 2010 23:33:40 +0000 (16:33 -0700)
Change-Id: Ia2a6f7d2f5734e815a6fabc1d4752eb3bcddde9d
Signed-off-by: Praveen Bharathi <pbharathi@motorola.com>
arch/arm/mach-tegra/board-stingray-power.c

index 771ce4a8d5de1ead704a0ae72e7f0752956574ad..a13a6b67520c46e82a01cb10749cad12278abf50 100644 (file)
@@ -239,6 +239,7 @@ static struct platform_device cpcap_disp_button_led = {
                .platform_data  = &stingray_display_led,
        },
 };
+
 static struct cpcap_led stingray_privacy_led ={
        .cpcap_register = CPCAP_REG_BLEDC,
        .cpcap_mask = 0x03FF,
@@ -256,10 +257,31 @@ static struct platform_device cpcap_privacy_led = {
                .platform_data  = &stingray_privacy_led,
        },
 };
+
+static struct cpcap_led stingray_notification_led ={
+       .blink_able = 1,
+       .cpcap_register = CPCAP_REG_ADLC,
+       .cpcap_mask = 0x7FFF,
+       .on_val = 0x7FF5,
+       .off_val = 0x7FF4,
+       .cpcap_duty_cycle = 0x41,
+       .cpcap_current = 0x0,
+       .class_name = LD_NOTIF_LED_DEV,
+};
+
+static struct platform_device cpcap_notification_led = {
+       .name   = LD_CPCAP_LED_DRV,
+       .id     = 3,
+       .dev    = {
+               .platform_data  = &stingray_notification_led,
+       },
+};
+
 static struct platform_device *cpcap_devices[] = {
        &cpcap_validity_device,
        &cpcap_whisper_device,
        &cpcap_disp_button_led,
+       &cpcap_notification_led,
        &cpcap_privacy_led,
        &cpcap_3mm5_device,
 };