pxa: frame buffer support both pxa168 and pxa910
PATCH 1/1 pxa: frame buffer support both pxa168 and pxa910
Signed-off-by Jun Nie <[email protected]>
--- drivers/video/pxa168fb.c | 6 ++++++ include/video/pxa168fb.h | 3 +++ 2 files changed, 9 insertions(+), 0 deletions(-)
drivers/video/pxa168fb.c +6 -0
@@ -879,12 +879,18 @@ failed:return ret; } +static const struct platform_device_id mmpfb_id_table[] = { + {"pxa168-fb" ,PXA168_FB }, + {"pxa910-fb" ,PXA910_FB }, + }; +static struct platform_driver pxa168fb_driver = { .driver = { .name ="pxa168-fb" , .owner =THIS_MODULE , }, .probe = pxa168fb_probe, + .id_table = mmpfb_id_table, };static int __devinit pxa168fb_init (void )
include/video/pxa168fb.h +3 -0
@@ -86,6 +86,9 @@#define PIX_FMT_PSEUDOCOLOR 20#define PIX_FMT_UYVY422PACK (0x1000|PIX_FMT_YUV422PACK) +#define PXA168_FB 0x0168 +#define PXA910_FB 0x0910 +/* * PXA LCD controller private state. */
Signature · 1 line
1.5.4.3