]> git.karo-electronics.de Git - karo-tx-linux.git/commit
OMAP4: 4430SDP: Add panel support to board file
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 6 Sep 2011 08:31:02 +0000 (11:31 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 20 Sep 2011 08:22:08 +0000 (11:22 +0300)
commitcb1100346104809845e31282ce6fe5131cf934e9
treeffd6dfe0197249a75f2907cfcc3068bd2a10ed1c
parent58282610da022ebdb797932f3fb5be3d50fe82c0
OMAP4: 4430SDP: Add panel support to board file

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 <archit@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
arch/arm/mach-omap2/board-4430sdp.c