metronomefb and am200epd fixes v9
cover metronomefb and am200epd fixes v9
This is version 9 of this RFC and contains the following updates:
- switched to using fb notifiers. The benefit of this is that it avoids the need to add any custom callbacks in pxafb. Basically, using this mechanism there are no changes needed from the underlying host video driver.
- eliminates one patch. So we just have the new am200epd and changes to metronomefb.
I think this is much cleaner and more generic. Please let me know if there are any issues that need to be resolved.
Thanks,
jaya
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
RFC 1/2 am200epd: use fb notifiers and gpio api
The original am200epd driver was designed with bad assumptions. It manipulated GPSR/GPLR registers directly. It relied on direct access to the pxa LCDC registers which have since conflicted with commit ce4fb7b892a6d6c6a0f87366b26fd834d2923dd7 . This patch moves it into mach-pxa and overhauls it to use a fb obtained through fb notifiers. It now uses the generic GPIO api.
--- arch/arm/mach-pxa/Kconfig | 3 + arch/arm/mach-pxa/Makefile | 1 + arch/arm/mach-pxa/am200epd.c | 374 ++++++++++++++++++++++++++++++++++++++++++ drivers/video/Kconfig | 13 -- drivers/video/Makefile | 1 - drivers/video/am200epd.c | 295 --------------------------------- 6 files changed, 378 insertions(+), 309 deletions(-) create mode 100644 arch/arm/mach-pxa/am200epd.c delete mode 100644 drivers/video/am200epd.c
arch/arm/mach-pxa/Kconfig +3 -0
@@ -243,6 +243,9 @@ config PCM990_DISPLAY_NONE endchoice +config MACH_AM200EPD + depends on MACH_GUMSTIX_F + bool "Enable AM200EPD board support" config PXA_EZX bool "Motorola EZX Platform"
arch/arm/mach-pxa/Makefile +1 -0
@@ -21,6 +21,7 @@ obj-$(CONFIG_CPU_PXA320) += pxa320.o # Specific board support obj-$(CONFIG_ARCH_GUMSTIX) += gumstix.o +obj-$(CONFIG_MACH_AM200EPD) += am200epd.o obj-$(CONFIG_ARCH_LUBBOCK) += lubbock.o obj-$(CONFIG_MACH_LOGICPD_PXA270) += lpd270.o obj-$(CONFIG_MACH_MAINSTONE) += mainstone.o
arch/arm/mach-pxa/am200epd.c new file +374 -0
374 lines not on this page · raw message
drivers/video/Kconfig +0 -13
@@ -1938,19 +1938,6 @@ config FB_XILINX framebuffer. ML300 carries a 640*480 LCD display on the board, ML403 uses a standard DB15 VGA connector. -config FB_AM200EPD - tristate "AM-200 E-Ink EPD devkit support" - depends on FB && ARCH_PXA && MMU - select FB_SYS_FILLRECT - select FB_SYS_COPYAREA - select FB_SYS_IMAGEBLIT - select FB_SYS_FOPS - select FB_DEFERRED_IO - select FB_METRONOME - help - This enables support for the Metronome display controller used on - the E-Ink AM-200 EPD devkit. - config FB_VIRTUAL tristate "Virtual Frame Buffer support (ONLY FOR TESTING!)" depends on FB
drivers/video/Makefile +0 -1
@@ -29,7 +29,6 @@ obj-$(CONFIG_FB_DEFERRED_IO) += fb_defio.o # Hardware specific drivers go first obj-$(CONFIG_FB_AMIGA) += amifb.o c2p.o -obj-$(CONFIG_FB_AM200EPD) += am200epd.o obj-$(CONFIG_FB_ARC) += arcfb.o obj-$(CONFIG_FB_CLPS711X) += clps711xfb.o obj-$(CONFIG_FB_CYBER2000) += cyber2000fb.o
drivers/video/am200epd.c deleted +0 -295
295 lines not on this page · raw message
Signature · 8 lines
1.5.3.6 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
Re: [RFC 2.6.26-rc9 1/2] am200epd: use fb notifiers and gpio api
Quoted 9 lines · On Sat, 2 Aug 2008 09:08:19 -0400 Jaya Kumar <[email protected]> wrote:
The original am200epd driver was designed with bad assumptions. It manipulated GPSR/GPLR registers directly. It relied on direct access to the pxa LCDC registers which have since conflicted with commit
ce4fb7b892a6d6c6a0f87366b26fd834d2923dd7. This patch moves it into mach-pxa and overhauls it to use a fb obtained through fb notifiers. It now uses the generic GPIO api.Signed-off-by Jaya Kumar <[email protected]>---
----------------------------------------------------------------------
Te newsy nakreca Cie na caly dzien!
Sprawdz >>> http://link.interia.pl/f1e94
-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel FAQ: http://www.arm.linux.org.uk/mailinglists/faq.php Etiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php
Eric Miao
Acked-byRe: [RFC 2.6.26-rc9 1/2] am200epd: use fb notifiers and gpio api
Quoted 10 lines · Krzysztof Helt
Quoted 7 lines · On Sat, 2 Aug 2008 09:08:19 -0400 Jaya Kumar <[email protected]> wrote:
The original am200epd driver was designed with bad assumptions. It manipulated GPSR/GPLR registers directly. It relied on direct access to the pxa LCDC registers which have since conflicted with commit
ce4fb7b892a6d6c6a0f87366b26fd834d2923dd7. This patch moves it into mach-pxa and overhauls it to use a fb obtained through fb notifiers. It now uses the generic GPIO api.
Quoted 5 lines
Quoted 2 lines
Signed-off-by Jaya Kumar <[email protected]>---
Acked-by Krzysztof Helt <[email protected]>
Nice work, it looks very clean, and I like this very much.
If you need another Acked-by :-)
Quoted 10 lines
----------------------------------------------------------------------
Te newsy nakreca Cie na caly dzien!
Sprawdz >>> http://link.interia.pl/f1e94-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel FAQ: http://www.arm.linux.org.uk/mailinglists/faq.php Etiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php
Signature · 8 lines
Cheers - eric ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
RFC 2/2 metronomefb: changes to use platform framebuffer
In reply to Jaya KumarThese changes are used in order to support the use of the framebuffer provided by the platform device driver rather than to directly allocate one. Other changes are cleanup to error handling and order of release.
--- drivers/video/Kconfig | 18 +++- drivers/video/metronomefb.c | 241 ++++++++++++++++++++++++------------------- include/video/metronomefb.h | 31 +++--- 3 files changed, 160 insertions(+), 130 deletions(-)
drivers/video/Kconfig +13 -5
@@ -172,11 +172,6 @@ config FB_DEFERRED_IO bool depends on FB -config FB_METRONOME - tristate - depends on FB - depends on FB_DEFERRED_IO - config FB_HECUBA tristate depends on FB
@@ -1975,6 +1970,19 @@ config XEN_FBDEV_FRONTEND frame buffer driver. It communicates with a back-end in another domain. +config FB_METRONOME + tristate "E-Ink Metronome/8track controller support" + depends on FB + select FB_SYS_FILLRECT + select FB_SYS_COPYAREA + select FB_SYS_IMAGEBLIT + select FB_SYS_FOPS + select FB_DEFERRED_IO + help + This driver implements support for the E-Ink Metronome + controller. The pre-release name for this device was 8track + and could also have been called by some vendors as PVI-nnnn. + source "drivers/video/omap/Kconfig" source "drivers/video/backlight/Kconfig"
drivers/video/metronomefb.c +134 -107
400 lines not on this page · raw message
include/video/metronomefb.h +13 -18
@@ -12,14 +12,6 @@ #ifndef _LINUX_METRONOMEFB_H_ #define _LINUX_METRONOMEFB_H_ -/* address and control descriptors used by metronome controller */ -struct metromem_desc { - u32 mFDADR0; - u32 mFSADR0; - u32 mFIDR0; - u32 mLDCMD0; -}; - /* command structure used by metronome controller */ struct metromem_cmd { u16 opcode;
@@ -29,34 +21,37 @@ struct metromem_cmd {/* struct used by metronome. board specific stuff comes from *board */ struct metronomefb_par { -unsigned char *metromem; -struct metromem_desc *metromem_desc;struct metromem_cmd *metromem_cmd;unsigned char *metromem_wfm;unsigned char *metromem_img;u16 *metromem_img_csum;u16 *csum_table; -int metromemsize;dma_addr_t metromem_dma; -dma_addr_t metromem_desc_dma;struct fb_info *info;struct metronome_board *board;wait_queue_head_t waitq;u8 frame_count; +int extra_size; +int dt; }; -/* board specific routines */ +/* board specific routines and data */ struct metronome_board { -struct module *owner; -void (*free_irq)(struct fb_info *); -void (*init_gpio_regs)(struct metronomefb_par *); -void (*init_lcdc_regs)(struct metronomefb_par *); -void (*post_dma_setup)(struct metronomefb_par *); +struct module *owner;/* the platform device */ void (*set_rst)(struct metronomefb_par *,int );void (*set_stdby)(struct metronomefb_par *,int ); +void (*cleanup)(struct metronomefb_par *);int (*met_wait_event)(struct metronomefb_par *);int (*met_wait_event_intr)(struct metronomefb_par *);int (*setup_irq)(struct fb_info *); +int (*setup_fb)(struct metronomefb_par *); +int (*setup_io)(struct metronomefb_par *); +int (*get_panel_type)(void ); +unsigned char *metromem; +int fw; +int fh; +int wfm_size; +struct fb_info *host_fbinfo;/* the host LCD controller's fbi */ };#endif
Signature · 8 lines
1.5.3.6 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
Re: [RFC 2.6.26-rc9 2/2] metronomefb: changes to use platform framebuffer
Quoted 6 lines · On Sat, 2 Aug 2008 09:08:20 -0400 Jaya Kumar <[email protected]> wrote:
These changes are used in order to support the use of the framebuffer provided by the platform device driver rather than to directly allocate one. Other changes are cleanup to error handling and order of release.
Signed-off-by Jaya Kumar <[email protected]>---
----------------------------------------------------------------------
Tanie rozmowy!
Sprawdz >>> http://link.interia.pl/f1e91
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Re: [RFC 2.6.26-rc9 2/2] metronomefb: changes to use platform framebuffer
Quoted 12 lines · Krzysztof Helt
Quoted 6 lines · On Sat, 2 Aug 2008 09:08:20 -0400 Jaya Kumar <[email protected]> wrote:
These changes are used in order to support the use of the framebuffer provided by the platform device driver rather than to directly allocate one. Other changes are cleanup to error handling and order of release.
Signed-off-by Jaya Kumar <[email protected]>---
Acked-by Krzysztof Helt <[email protected]>
Looks OK to me either, take it as an Ack if need one more.
Quoted 10 lines
----------------------------------------------------------------------
Tanie rozmowy!
Sprawdz >>> http://link.interia.pl/f1e91-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel FAQ: http://www.arm.linux.org.uk/mailinglists/faq.php Etiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php
Signature · 8 lines
Cheers - eric ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
Quoted 7 lines · Jaya Kumar
This is version 9 of this RFC and contains the following updates:
- switched to using fb notifiers. The benefit of this is that it avoids the need to add any custom callbacks in pxafb. Basically, using this mechanism there are no changes needed from the underlying host video driver.
- eliminates one patch. So we just have the new am200epd and changes to metronomefb.
Well, somethings gone wrong - patch 1 doesn't compile.
arch/arm/mach-pxa/am200epd.c: In function `am200_share_video_mem':arch/arm/mach-pxa/am200epd.c:151: error: structure has no member named metromem' arch/arm/mach-pxa/am200epd.c:152: error: structure has no member named host_fbinfo' <and lots more errors>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Quoted 9 lines · Russell King - ARM Linux
Quoted 7 lines · Jaya Kumar
This is version 9 of this RFC and contains the following updates:
- switched to using fb notifiers. The benefit of this is that it avoids the need to add any custom callbacks in pxafb. Basically, using this mechanism there are no changes needed from the underlying host video driver.
- eliminates one patch. So we just have the new am200epd and changes to metronomefb.
Quoted 7 lines
Well, somethings gone wrong - patch 1 doesn't compile.
arch/arm/mach-pxa/am200epd.c: In function `am200_share_video_mem':arch/arm/mach-pxa/am200epd.c:151: error: structure has no member namedmetromem' arch/arm/mach-pxa/am200epd.c:152: error: structure has no member namedhost_fbinfo' <and lots more errors>
Ah sorry, it's missing metronomefb.h changes which is in patch 2/2. I had split them to make reviewing easier. I'll post patch 2/2 to the patch queue now.
Thanks,
jaya
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Quoted 5 lines
Ah sorry, it's missing
metronomefb.hchanges which is in patch 2/2. I had split them to make reviewing easier. I'll post patch 2/2 to the patch queue now.
Please make sure every commit is at-least build-able, this helps to find regression easier.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/