From: Dan Murphy <wldm10@motorola.com>
Date: Tue, 8 Jun 2010 17:21:58 +0000 (-0500)
Subject: [ARM] Stingray SPI board file: Modify the LED sink value for the P0
X-Git-Tag: firefly_0821_release~9834^2~856
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=78a9bea9a3e06db8c71d589a70c5989f96a7fc17;p=firefly-linux-kernel-4.4.55.git

[ARM] Stingray SPI board file: Modify the LED sink value for the P0

Change the LED sink value for the P0 units and add backward capability
for the M1

Change-Id: I4b5e0675956a9bd21125a7d38393269c23426de0
Signed-off-by: Dan Murphy <wldm10@motorola.com>
---

diff --git a/arch/arm/mach-tegra/board-stingray-spi.c b/arch/arm/mach-tegra/board-stingray-spi.c
index 3b39cead96d4..648c616ed82c 100644
--- a/arch/arm/mach-tegra/board-stingray-spi.c
+++ b/arch/arm/mach-tegra/board-stingray-spi.c
@@ -209,7 +209,7 @@ static struct platform_device cpcap_whisper_device = {
 };
 
 static struct cpcap_led stingray_display_led = {
-	.cpcap_register = CPCAP_REG_KLC,
+	.cpcap_register = CPCAP_REG_MDLC,
 	.cpcap_mask = 0x03FF,
 	.on_val = 0x00F5,
 	.off_val = 0x00F4,
@@ -595,6 +595,7 @@ int __init stingray_spi_init(void)
 		cpcap_regulator[CPCAP_SW5].constraints.boot_on = 1;
 
 		stingray_display_led.led_regulator = "sw5";
+		stingray_display_led.cpcap_register = CPCAP_REG_KLC,
 		stingray_privacy_led.led_regulator = "sw5";
 	}