diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-01-14 06:50:04 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-02-21 06:56:19 -0500 |
commit | e1b7a72aeb8292502c97b43eceb01aea47ded40f (patch) | |
tree | e3932a7b52a5805cfff785ca9162925e34eb3095 /arch/arm/mach-sa1100/collie.c | |
parent | 9e6720fb0cfd6edda12b408a66f4ac88e8a82e32 (diff) |
FB: sa1100: move platform data to platform files
Move platform data out of the sa1100fb driver into the various
platform files themselves.
Acked-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-sa1100/collie.c')
-rw-r--r-- | arch/arm/mach-sa1100/collie.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/mach-sa1100/collie.c b/arch/arm/mach-sa1100/collie.c index fd5652118ed1..70f6cdc9e63d 100644 --- a/arch/arm/mach-sa1100/collie.c +++ b/arch/arm/mach-sa1100/collie.c | |||
@@ -28,6 +28,8 @@ | |||
28 | #include <linux/gpio.h> | 28 | #include <linux/gpio.h> |
29 | #include <linux/pda_power.h> | 29 | #include <linux/pda_power.h> |
30 | 30 | ||
31 | #include <video/sa1100fb.h> | ||
32 | |||
31 | #include <mach/hardware.h> | 33 | #include <mach/hardware.h> |
32 | #include <asm/mach-types.h> | 34 | #include <asm/mach-types.h> |
33 | #include <asm/irq.h> | 35 | #include <asm/irq.h> |
@@ -310,6 +312,20 @@ static struct resource collie_flash_resources[] = { | |||
310 | } | 312 | } |
311 | }; | 313 | }; |
312 | 314 | ||
315 | static struct sa1100fb_mach_info collie_lcd_info = { | ||
316 | .pixclock = 171521, .bpp = 16, | ||
317 | .xres = 320, .yres = 240, | ||
318 | |||
319 | .hsync_len = 5, .vsync_len = 1, | ||
320 | .left_margin = 11, .upper_margin = 2, | ||
321 | .right_margin = 30, .lower_margin = 0, | ||
322 | |||
323 | .sync = FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT, | ||
324 | |||
325 | .lccr0 = LCCR0_Color | LCCR0_Sngl | LCCR0_Act, | ||
326 | .lccr3 = LCCR3_OutEnH | LCCR3_PixRsEdg | LCCR3_ACBsDiv(2), | ||
327 | }; | ||
328 | |||
313 | static void __init collie_init(void) | 329 | static void __init collie_init(void) |
314 | { | 330 | { |
315 | int ret = 0; | 331 | int ret = 0; |
@@ -348,6 +364,7 @@ static void __init collie_init(void) | |||
348 | printk(KERN_WARNING "collie: Unable to register LoCoMo device\n"); | 364 | printk(KERN_WARNING "collie: Unable to register LoCoMo device\n"); |
349 | } | 365 | } |
350 | 366 | ||
367 | sa11x0_register_lcd(&collie_lcd_info); | ||
351 | sa11x0_register_mtd(&collie_flash_data, collie_flash_resources, | 368 | sa11x0_register_mtd(&collie_flash_data, collie_flash_resources, |
352 | ARRAY_SIZE(collie_flash_resources)); | 369 | ARRAY_SIZE(collie_flash_resources)); |
353 | sa11x0_register_mcp(&collie_mcp_data); | 370 | sa11x0_register_mcp(&collie_mcp_data); |