From 1639beeb66fa99f0ba3ca0011171c8afc951abd0 Mon Sep 17 00:00:00 2001 From: Praveen Bharathi Date: Thu, 12 Aug 2010 11:11:32 -0500 Subject: [PATCH] board-stingray-power: add notification led driver Change-Id: Ia2a6f7d2f5734e815a6fabc1d4752eb3bcddde9d Signed-off-by: Praveen Bharathi --- arch/arm/mach-tegra/board-stingray-power.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/mach-tegra/board-stingray-power.c b/arch/arm/mach-tegra/board-stingray-power.c index 771ce4a8d5de..a13a6b67520c 100644 --- a/arch/arm/mach-tegra/board-stingray-power.c +++ b/arch/arm/mach-tegra/board-stingray-power.c @@ -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, }; -- 2.34.1