Skip to contentSkip to conversation

broadsheetfb: add multiple panel type support

PATCH New Jaya Kumar 1 participant 1 message Dec 27, 2009

Subsystems (4)
lore
Share & tools
lore

Jaya Kumar

author
#0 lore raw

PATCH 1/1 broadsheetfb: add multiple panel type support

Hi Geert, Krzysztof, Andrew, fbdev friends,

This patch updates broadsheetfb to add support for multiple panel types. The 3.7" and 6" are known to work but the 9.7" is untested due to lack of hardware. Please let me know your feedback.

Thanks,
jaya

This patch adds support for multiple panel types to broadsheetfb.

---
 arch/arm/mach-pxa/am300epd.c |    2 +-
 drivers/video/broadsheetfb.c |  127 ++++++++++++++++++++++++++++++++++++------
 include/video/broadsheetfb.h |    1 +
 3 files changed, 112 insertions(+), 18 deletions(-)
arch/arm/mach-pxa/am300epd.c +1 -1
index 4bd10a1..993d75e 100644
@@ -288,7 +288,7 @@ int __init am300_init(void)
 }
 
 module_param(panel_type, uint, 0);
-MODULE_PARM_DESC(panel_type, "Select the panel type: 6, 8, 97");
+MODULE_PARM_DESC(panel_type, "Select the panel type: 37, 6, 97");
 
 MODULE_DESCRIPTION("board driver for am300 epd kit");
 MODULE_AUTHOR("Jaya Kumar");
drivers/video/broadsheetfb.c +110 -17

186 lines not on this page · raw message

include/video/broadsheetfb.h +1 -0
index a758534..a2c2829 100644
@@ -41,6 +41,7 @@ struct broadsheetfb_par {
 	void (*write_reg)(struct broadsheetfb_par *, u16 reg, u16 val);
 	u16 (*read_reg)(struct broadsheetfb_par *, u16 reg);
 	wait_queue_head_t waitq;
+	int panel_index;
 };
 
 /* board specific routines */
Signature · 1 line
1.6.3.3