Skip to content

Commit 3b495f2

Browse files
Pete Popovralfbaechle
authored andcommitted
Au1100 FB driver uplift for 2.6.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org> Acked-by: Antonino Daplas <adaplas@pol.net>
1 parent 172546b commit 3b495f2

File tree

6 files changed

+851
-779
lines changed

6 files changed

+851
-779
lines changed

arch/mips/au1000/common/platform.c

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,42 @@ static struct platform_device au1xxx_usb_ohci_device = {
4141
.resource = au1xxx_usb_ohci_resources,
4242
};
4343

44+
/*** AU1100 LCD controller ***/
45+
46+
#ifdef CONFIG_FB_AU1100
47+
static struct resource au1100_lcd_resources[] = {
48+
[0] = {
49+
.start = LCD_PHYS_ADDR,
50+
.end = LCD_PHYS_ADDR + 0x800 - 1,
51+
.flags = IORESOURCE_MEM,
52+
},
53+
[1] = {
54+
.start = AU1100_LCD_INT,
55+
.end = AU1100_LCD_INT,
56+
.flags = IORESOURCE_IRQ,
57+
}
58+
};
59+
60+
static u64 au1100_lcd_dmamask = ~(u32)0;
61+
62+
static struct platform_device au1100_lcd_device = {
63+
.name = "au1100-lcd",
64+
.id = 0,
65+
.dev = {
66+
.dma_mask = &au1100_lcd_dmamask,
67+
.coherent_dma_mask = 0xffffffff,
68+
},
69+
.num_resources = ARRAY_SIZE(au1100_lcd_resources),
70+
.resource = au1100_lcd_resources,
71+
};
72+
#endif
73+
74+
4475
static struct platform_device *au1xxx_platform_devices[] __initdata = {
4576
&au1xxx_usb_ohci_device,
77+
#ifdef CONFIG_FB_AU1100
78+
&au1100_lcd_device,
79+
#endif
4680
};
4781

4882
int au1xxx_platform_init(void)

arch/mips/au1000/common/setup.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,6 @@ void __init plat_setup(void)
106106
/*strcat(argptr, " video=au1100fb:panel:Sharp_320x240_16");*/
107107
#ifdef CONFIG_MIPS_HYDROGEN3
108108
strcat(argptr, " video=au1100fb:panel:Hydrogen_3_NEC_panel_320x240,nohwcursor");
109-
#else
110-
strcat(argptr, " video=au1100fb:panel:s10,nohwcursor");
111109
#endif
112110
}
113111
#endif

drivers/video/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ obj-$(CONFIG_FB_CIRRUS) += cirrusfb.o
8686
obj-$(CONFIG_FB_ASILIANT) += asiliantfb.o
8787
obj-$(CONFIG_FB_PXA) += pxafb.o
8888
obj-$(CONFIG_FB_W100) += w100fb.o
89-
obj-$(CONFIG_FB_AU1100) += au1100fb.o fbgen.o
89+
obj-$(CONFIG_FB_AU1100) += au1100fb.o
9090
obj-$(CONFIG_FB_PMAG_AA) += pmag-aa-fb.o
9191
obj-$(CONFIG_FB_PMAG_BA) += pmag-ba-fb.o
9292
obj-$(CONFIG_FB_PMAGB_B) += pmagb-b-fb.o

0 commit comments

Comments
 (0)