From: makarand.karvekar Date: Fri, 17 Sep 2010 15:10:01 +0000 (-0500) Subject: [ARM] tegra: stingray: led cpcap registers configuration X-Git-Tag: firefly_0821_release~9834^2~542 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c79c4dc27cc442193f272b87dce8c38384bbee44;p=firefly-linux-kernel-4.4.55.git [ARM] tegra: stingray: led cpcap registers configuration remove button led configuration. Change-Id: I17c79c83cae6d8b2d34290fc5e3c4fb4dc54209c Signed-off-by: makarand.karvekar --- diff --git a/arch/arm/mach-tegra/board-stingray-power.c b/arch/arm/mach-tegra/board-stingray-power.c index 825ab1fbe192..28e6e4d6ba54 100644 --- a/arch/arm/mach-tegra/board-stingray-power.c +++ b/arch/arm/mach-tegra/board-stingray-power.c @@ -230,31 +230,13 @@ static struct platform_device cpcap_whisper_device = { }, }; -static struct cpcap_led stingray_display_led = { - .cpcap_register = CPCAP_REG_MDLC, - .cpcap_mask = 0x03FF, - .on_val = 0x00F5, - .off_val = 0x00F4, - .cpcap_duty_cycle = 0x2A0, - .cpcap_current = 0x0, - .class_name = LD_DISP_BUTTON_DEV, -}; - -static struct platform_device cpcap_disp_button_led = { - .name = LD_CPCAP_LED_DRV, - .id = 1, - .dev = { - .platform_data = &stingray_display_led, - }, -}; - static struct cpcap_led stingray_privacy_led ={ + .blink_able = 0, .cpcap_register = CPCAP_REG_BLEDC, - .cpcap_mask = 0x03FF, - .on_val = 0x00F5, - .off_val = 0x00F4, - .cpcap_duty_cycle = 0x41, - .cpcap_current = 0x0, + .cpcap_reg_mask = 0x03FF, + .cpcap_reg_period = 0x0000, + .cpcap_reg_duty_cycle = 0x0038, + .cpcap_reg_current = 0x0002, .class_name = LD_PRIVACY_LED_DEV, }; @@ -269,11 +251,10 @@ static struct platform_device cpcap_privacy_led = { static struct cpcap_led stingray_notification_led ={ .blink_able = 1, .cpcap_register = CPCAP_REG_ADLC, - .cpcap_mask = 0x1FFF, - .on_val = 0x1FF5, - .off_val = 0x1FF4, - .cpcap_duty_cycle = 0x41, - .cpcap_current = 0x0, + .cpcap_reg_mask = 0x1FFF, + .cpcap_reg_period = 0x0000, + .cpcap_reg_duty_cycle = 0x07F0, + .cpcap_reg_current = 0x0008, .class_name = LD_NOTIF_LED_DEV, }; @@ -288,7 +269,6 @@ static struct platform_device cpcap_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, @@ -729,8 +709,6 @@ int __init stingray_power_init(void) if (stingray_revision() <= STINGRAY_REVISION_M1) { cpcap_regulator_mode_values[CPCAP_SW5] = 0x0022; - stingray_display_led.led_regulator = "sw5"; - stingray_display_led.cpcap_register = CPCAP_REG_KLC, stingray_privacy_led.led_regulator = "sw5"; stingray_max8649_pdata.mode = 3;