diff options
Diffstat (limited to 'arch/mips/au1000/common/platform.c')
-rw-r--r-- | arch/mips/au1000/common/platform.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/arch/mips/au1000/common/platform.c b/arch/mips/au1000/common/platform.c index 0776b2db5641..3ca3cb8a8a73 100644 --- a/arch/mips/au1000/common/platform.c +++ b/arch/mips/au1000/common/platform.c | |||
@@ -41,8 +41,42 @@ static struct platform_device au1xxx_usb_ohci_device = { | |||
41 | .resource = au1xxx_usb_ohci_resources, | 41 | .resource = au1xxx_usb_ohci_resources, |
42 | }; | 42 | }; |
43 | 43 | ||
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 | |||
44 | static struct platform_device *au1xxx_platform_devices[] __initdata = { | 75 | static struct platform_device *au1xxx_platform_devices[] __initdata = { |
45 | &au1xxx_usb_ohci_device, | 76 | &au1xxx_usb_ohci_device, |
77 | #ifdef CONFIG_FB_AU1100 | ||
78 | &au1100_lcd_device, | ||
79 | #endif | ||
46 | }; | 80 | }; |
47 | 81 | ||
48 | int au1xxx_platform_init(void) | 82 | int au1xxx_platform_init(void) |