File tree Expand file tree Collapse file tree 6 files changed +851
-779
lines changed
include/asm-mips/mach-au1x00 Expand file tree Collapse file tree 6 files changed +851
-779
lines changed Original file line number Diff line number Diff 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+
4475static 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
4882int au1xxx_platform_init (void )
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ obj-$(CONFIG_FB_CIRRUS) += cirrusfb.o
8686obj-$(CONFIG_FB_ASILIANT) += asiliantfb.o
8787obj-$(CONFIG_FB_PXA) += pxafb.o
8888obj-$(CONFIG_FB_W100) += w100fb.o
89- obj-$(CONFIG_FB_AU1100) += au1100fb.o fbgen.o
89+ obj-$(CONFIG_FB_AU1100) += au1100fb.o
9090obj-$(CONFIG_FB_PMAG_AA) += pmag-aa-fb.o
9191obj-$(CONFIG_FB_PMAG_BA) += pmag-ba-fb.o
9292obj-$(CONFIG_FB_PMAGB_B) += pmagb-b-fb.o
You can’t perform that action at this time.
0 commit comments