diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-10-28 12:24:22 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-10-28 12:24:22 -0400 |
commit | 83928e17b92b7a667bfe674f1b330619adc2ac88 (patch) | |
tree | bdfc0fd037ad1380d75cefa0e47be24e344d977c /arch/arm/mach-s3c2410/mach-bast.c | |
parent | 9be16a03928642f944915b8c05945fd87b7a15cb (diff) | |
parent | 50f4c001bc1534db77663592496204ceba151e97 (diff) |
Merge master.kernel.org:/home/rmk/linux-2.6-arm
Minor manual fixups for gfp_t clashes.
Diffstat (limited to 'arch/arm/mach-s3c2410/mach-bast.c')
-rw-r--r-- | arch/arm/mach-s3c2410/mach-bast.c | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c2410/mach-bast.c b/arch/arm/mach-s3c2410/mach-bast.c index 7b51bfd0ba6d..c1b5c63ec24a 100644 --- a/arch/arm/mach-s3c2410/mach-bast.c +++ b/arch/arm/mach-s3c2410/mach-bast.c | |||
@@ -32,6 +32,7 @@ | |||
32 | * 25-Jul-2005 BJD Removed ASIX static mappings | 32 | * 25-Jul-2005 BJD Removed ASIX static mappings |
33 | * 27-Jul-2005 BJD Ensure maximum frequency of i2c bus | 33 | * 27-Jul-2005 BJD Ensure maximum frequency of i2c bus |
34 | * 20-Sep-2005 BJD Added static to non-exported items | 34 | * 20-Sep-2005 BJD Added static to non-exported items |
35 | * 26-Oct-2005 BJD Added FB platform data | ||
35 | */ | 36 | */ |
36 | 37 | ||
37 | #include <linux/kernel.h> | 38 | #include <linux/kernel.h> |
@@ -61,8 +62,10 @@ | |||
61 | #include <asm/arch/regs-gpio.h> | 62 | #include <asm/arch/regs-gpio.h> |
62 | #include <asm/arch/regs-mem.h> | 63 | #include <asm/arch/regs-mem.h> |
63 | #include <asm/arch/regs-lcd.h> | 64 | #include <asm/arch/regs-lcd.h> |
65 | |||
64 | #include <asm/arch/nand.h> | 66 | #include <asm/arch/nand.h> |
65 | #include <asm/arch/iic.h> | 67 | #include <asm/arch/iic.h> |
68 | #include <asm/arch/fb.h> | ||
66 | 69 | ||
67 | #include <linux/mtd/mtd.h> | 70 | #include <linux/mtd/mtd.h> |
68 | #include <linux/mtd/nand.h> | 71 | #include <linux/mtd/nand.h> |
@@ -399,6 +402,38 @@ static struct s3c2410_platform_i2c bast_i2c_info = { | |||
399 | .max_freq = 130*1000, | 402 | .max_freq = 130*1000, |
400 | }; | 403 | }; |
401 | 404 | ||
405 | |||
406 | static struct s3c2410fb_mach_info __initdata bast_lcd_info = { | ||
407 | .width = 640, | ||
408 | .height = 480, | ||
409 | |||
410 | .xres = { | ||
411 | .min = 320, | ||
412 | .max = 1024, | ||
413 | .defval = 640, | ||
414 | }, | ||
415 | |||
416 | .yres = { | ||
417 | .min = 240, | ||
418 | .max = 600, | ||
419 | .defval = 480, | ||
420 | }, | ||
421 | |||
422 | .bpp = { | ||
423 | .min = 4, | ||
424 | .max = 16, | ||
425 | .defval = 8, | ||
426 | }, | ||
427 | |||
428 | .regs = { | ||
429 | .lcdcon1 = 0x00000176, | ||
430 | .lcdcon2 = 0x1d77c7c2, | ||
431 | .lcdcon3 = 0x013a7f13, | ||
432 | .lcdcon4 = 0x00000057, | ||
433 | .lcdcon5 = 0x00014b02, | ||
434 | } | ||
435 | }; | ||
436 | |||
402 | /* Standard BAST devices */ | 437 | /* Standard BAST devices */ |
403 | 438 | ||
404 | static struct platform_device *bast_devices[] __initdata = { | 439 | static struct platform_device *bast_devices[] __initdata = { |
@@ -454,6 +489,10 @@ static void __init bast_map_io(void) | |||
454 | usb_simtec_init(); | 489 | usb_simtec_init(); |
455 | } | 490 | } |
456 | 491 | ||
492 | static void __init bast_init(void) | ||
493 | { | ||
494 | s3c24xx_fb_set_platdata(&bast_lcd_info); | ||
495 | } | ||
457 | 496 | ||
458 | MACHINE_START(BAST, "Simtec-BAST") | 497 | MACHINE_START(BAST, "Simtec-BAST") |
459 | /* Maintainer: Ben Dooks <ben@simtec.co.uk> */ | 498 | /* Maintainer: Ben Dooks <ben@simtec.co.uk> */ |
@@ -463,5 +502,6 @@ MACHINE_START(BAST, "Simtec-BAST") | |||
463 | .boot_params = S3C2410_SDRAM_PA + 0x100, | 502 | .boot_params = S3C2410_SDRAM_PA + 0x100, |
464 | .map_io = bast_map_io, | 503 | .map_io = bast_map_io, |
465 | .init_irq = s3c24xx_init_irq, | 504 | .init_irq = s3c24xx_init_irq, |
505 | .init_machine = bast_init, | ||
466 | .timer = &s3c24xx_timer, | 506 | .timer = &s3c24xx_timer, |
467 | MACHINE_END | 507 | MACHINE_END |