Skip to contentSkip to conversation

ep93xx: register backlight driver

PATCH New H Hartley Sweeten 2 participants 3 messages May 11, 2010 – Jun 8, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ep93xx: register backlight driver

Add the platform registration for the ep93xx backlight driver that is now queued in the backlight tree.

Since the pwm BRIGHT signal only functions if the video system is operating, register the backlight when the framebuffer device is registered.

---

This is based off next-20100510, if needed I can rebase it off another tree.

arch/arm/mach-ep93xx/core.c +6 -0
index 8d3f77e..07d7bb9 100644
@@ -568,6 +568,11 @@ static struct platform_device ep93xx_fb_device = {
 	.resource		= ep93xx_fb_resource,
 };
 
+static struct platform_device ep93xx_bl_device = {
+	.name		= "ep93xx-bl",
+	.id		= -1,
+};
+
 /**
  * ep93xx_register_fb - Register the framebuffer platform device.
  * @data:	platform specific framebuffer configuration (__initdata)
@@ -576,6 +581,7 @@ void __init ep93xx_register_fb(struct ep93xxfb_mach_info *data)
 {
 	ep93xxfb_data = *data;
 	platform_device_register(&ep93xx_fb_device);
+	platform_device_register(&ep93xx_bl_device);
 }
 
 
#1 lore raw

PATCH 1/1 ep93xx: register backlight driver

Quoted 10 lines · H Hartley Sweeten

Add the platform registration for the ep93xx backlight driver that is now queued in the backlight tree.

Since the pwm BRIGHT signal only functions if the video system is operating, register the backlight when the framebuffer device is registered.

Ryan,

The EP93xx backlight driver is now merged.
commit 08b3924b24cdb1942393dc3009335a2153bd2eac

Do you have any issues with this patch to enable it?

Regards,
Hartley

---

This is based off next-20100510, if needed I can rebase it off another tree.

arch/arm/mach-ep93xx/core.c +6 -0
index 8d3f77e..07d7bb9 100644
@@ -568,6 +568,11 @@ static struct platform_device ep93xx_fb_device = {
 	.resource		= ep93xx_fb_resource,
 };
 
+static struct platform_device ep93xx_bl_device = {
+	.name		= "ep93xx-bl",
+	.id		= -1,
+};
+
 /**
  * ep93xx_register_fb - Register the framebuffer platform device.
  * @data:	platform specific framebuffer configuration (__initdata)
@@ -576,6 +581,7 @@ void __init ep93xx_register_fb(struct ep93xxfb_mach_info *data)
 {
 	ep93xxfb_data = *data;
 	platform_device_register(&ep93xx_fb_device);
+	platform_device_register(&ep93xx_bl_device);
 }
 
 

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#2 lore raw

PATCH 1/1 ep93xx: register backlight driver

Quoted 43 lines · H Hartley Sweeten
Quoted 9 lines · H Hartley Sweeten

Add the platform registration for the ep93xx backlight driver that is now queued in the backlight tree.

Since the pwm BRIGHT signal only functions if the video system is operating, register the backlight when the framebuffer device is registered.

Ryan,

The EP93xx backlight driver is now merged.
commit 08b3924b24cdb1942393dc3009335a2153bd2eac

Do you have any issues with this patch to enable it?

Regards,
Hartley

---

This is based off next-20100510, if needed I can rebase it off another tree.

arch/arm/mach-ep93xx/core.c +5 -0
index 8d3f77e..07d7bb9 100644
@@ -568,6 +568,11 @@ static struct platform_device ep93xx_fb_device = {
 	.resource		= ep93xx_fb_resource,
 };
 
+static struct platform_device ep93xx_bl_device = {
+	.name		= "ep93xx-bl",
+	.id		= -1,
+};
+
 /**
  * ep93xx_register_fb - Register the framebuffer platform device.
  * @data:	platform specific framebuffer configuration (__initdata)

arch/arm/mach-ep93xx/core.c void __init ep93xx_register_fb(struct ep93xxfb_mach_info *data) · line 585

Quoted 5 lines
arch/arm/mach-ep93xx/core.c +1 -0
@@ -576,6 +581,7 @@ void __init ep93xx_register_fb(struct ep93xxfb_mach_info *data)
 {
 	ep93xxfb_data = *data;
 	platform_device_register(&ep93xx_fb_device);
+	platform_device_register(&ep93xx_bl_device);
 }

This is fine.

~Ryan

Signature · 7 lines
Bluewater Systems Ltd - ARM Technology Solution Centre

Ryan Mallon         		5 Amuri Park, 404 Barbadoes St
ryan at bluewatersys.com         	PO Box 13 889, Christchurch 8013
http://www.bluewatersys.com	New Zealand
Phone: +64 3 3779127		Freecall: Australia 1800 148 751
Fax:   +64 3 3779135			  USA 1800 261 2934