]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] ARM: OMAP: Register LCD backlight on PalmTE
authorandrzej zaborowski <balrog@zabor.org>
Tue, 5 Sep 2006 15:00:26 +0000 (18:00 +0300)
committerTony Lindgren <tony@atomide.com>
Tue, 5 Sep 2006 15:00:26 +0000 (18:00 +0300)
Add the backlight device to the list of platform devices to register
on the Palm Tungsten E board. In the same way the device can be added
in other board files if a board has a single LCD with the backlight
controlled by OMAP PWL module.

Signed-off-by: Andrzej Zaborowski <balrog@zabor.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap1/board-palmte.c

index 4bc8a62909b9acc23161bf7041da6360bcc6c268..bc43aaf72d4083728b09c53f544c7b4ae0100c6e 100644 (file)
@@ -43,8 +43,21 @@ static struct platform_device palmte_lcd_device = {
        .id             = -1,
 };
 
+static struct omap_backlight_config palmte_backlight_config = {
+       .default_intensity      = 0xa0,
+};
+
+static struct platform_device palmte_backlight_device = {
+       .name           = "omap-bl",
+       .id             = -1,
+       .dev            = {
+               .platform_data  = &palmte_backlight_config,
+       },
+};
+
 static struct platform_device *devices[] __initdata = {
        &palmte_lcd_device,
+       &palmte_backlight_device,
 };
 
 static struct omap_usb_config palmte_usb_config __initdata = {