lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon,  6 Aug 2012 00:32:53 +0800
From:	Haojian Zhuang <haojian.zhuang@...il.com>
To:	sameo@...ux.intel.com, broonie@...nsource.wolfsonmicro.com,
	rpurdie@...ys.net, bryan.wu@...onical.com,
	linux-kernel@...r.kernel.org
Cc:	Haojian Zhuang <haojian.zhuang@...il.com>
Subject: [PATCH 5/5] ARM: mmp: enable 88pm860x in ttc dkb

Enable backlight & led components of 88pm860x PMIC in ttc dkb board.

Signed-off-by: Haojian Zhuang <haojian.zhuang@...il.com>
---
 arch/arm/mach-mmp/ttc_dkb.c |   15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/arch/arm/mach-mmp/ttc_dkb.c b/arch/arm/mach-mmp/ttc_dkb.c
index 7a7de2b..1b51b81 100644
--- a/arch/arm/mach-mmp/ttc_dkb.c
+++ b/arch/arm/mach-mmp/ttc_dkb.c
@@ -138,8 +138,23 @@ static struct pca953x_platform_data max7312_data[] = {
 	},
 };
 
+static struct pm860x_backlight_pdata ttc_dkb_backlight[] = {
+	{ .iset	= PM8606_WLED_CURRENT(4), },
+};
+
+static struct pm860x_led_pdata ttc_dkb_led[] = {
+	{ .iset = PM8606_LED_CURRENT(12), },
+	{ .iset = PM8606_LED_CURRENT(12), },
+	{ .iset = PM8606_LED_CURRENT(12), },
+};
+
 static struct pm860x_platform_data ttc_dkb_pm8607_info = {
 	.irq_base       = IRQ_BOARD_START,
+	.companion_addr	= 0x11,
+	.backlight	= &ttc_dkb_backlight[0],
+	.num_backlights	= ARRAY_SIZE(ttc_dkb_backlight),
+	.led		= &ttc_dkb_led[0],
+	.num_leds	= ARRAY_SIZE(ttc_dkb_led),
 };
 
 static struct i2c_board_info ttc_dkb_i2c_info[] = {
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ