From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tomi Valkeinen Subject: [PATCH 09/10] OMAP4: 4430SDP: Add panel support to board file Date: Tue, 20 Sep 2011 11:18:25 +0300 Message-ID: <1316506706-18941-10-git-send-email-tomi.valkeinen@ti.com> References: <1316506706-18941-1-git-send-email-tomi.valkeinen@ti.com> Return-path: Received: from na3sys009aog107.obsmtp.com ([74.125.149.197]:49596 "EHLO na3sys009aog107.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754322Ab1ITITF (ORCPT ); Tue, 20 Sep 2011 04:19:05 -0400 Received: by mail-bw0-f45.google.com with SMTP id zv15so450615bkb.32 for ; Tue, 20 Sep 2011 01:19:04 -0700 (PDT) In-Reply-To: <1316506706-18941-1-git-send-email-tomi.valkeinen@ti.com> Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: tony@atomide.com Cc: linux-omap@vger.kernel.org, Tomi Valkeinen , Archit Taneja 4430SDP has two Taal DSI panels, connected to DSI 1 and DSI 2 modules. The panels use a common PWM backlight, which will be implemented later when the PWM driver has been improved to support the backlight. Until the PWM driver has been improved, the following hack added to arch/arm/mach-omap2/board-4430sdp.c can be used to set the backlight to max: static int omap_4430sdp_hack_backlight(void) { twl_i2c_write_u8(TWL_MODULE_PWM, 0x7f, LED_PWM2OFF); twl_i2c_write_u8(TWL_MODULE_PWM, 0x7f, LED_PWM2ON); twl_i2c_write_u8(TWL6030_MODULE_ID1, 0x30, TWL6030_TOGGLE3); return 0; } late_initcall(omap_4430sdp_hack_backlight); Signed-off-by: Archit Taneja Signed-off-by: Tomi Valkeinen --- arch/arm/mach-omap2/board-4430sdp.c | 130 ++++++++++++++++++++++++++++++++++- 1 files changed, 128 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board-4430sdp.c index 62ec9f5..187fcae 100644 --- a/arch/arm/mach-omap2/board-4430sdp.c +++ b/arch/arm/mach-omap2/board-4430sdp.c @@ -38,6 +38,7 @@ #include #include #include