diff options
author | David Woodhouse <David.Woodhouse@intel.com> | 2009-01-05 04:50:33 -0500 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2009-01-05 04:50:33 -0500 |
commit | 353816f43d1fb340ff2d9a911dd5d0799c09f6a5 (patch) | |
tree | 517290fd884d286fe2971137ac89f89e3567785a /arch/arm/mach-pxa/poodle.c | |
parent | 160bbab3000dafccbe43688e48208cecf4deb879 (diff) | |
parent | fe0bdec68b77020281dc814805edfe594ae89e0f (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Conflicts:
arch/arm/mach-pxa/corgi.c
arch/arm/mach-pxa/poodle.c
arch/arm/mach-pxa/spitz.c
Diffstat (limited to 'arch/arm/mach-pxa/poodle.c')
-rw-r--r-- | arch/arm/mach-pxa/poodle.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/poodle.c b/arch/arm/mach-pxa/poodle.c index a45afdf25202..f9093beba752 100644 --- a/arch/arm/mach-pxa/poodle.c +++ b/arch/arm/mach-pxa/poodle.c | |||
@@ -20,6 +20,7 @@ | |||
20 | #include <linux/fb.h> | 20 | #include <linux/fb.h> |
21 | #include <linux/pm.h> | 21 | #include <linux/pm.h> |
22 | #include <linux/delay.h> | 22 | #include <linux/delay.h> |
23 | #include <linux/mtd/physmap.h> | ||
23 | #include <linux/gpio.h> | 24 | #include <linux/gpio.h> |
24 | #include <linux/spi/spi.h> | 25 | #include <linux/spi/spi.h> |
25 | #include <linux/spi/ads7846.h> | 26 | #include <linux/spi/ads7846.h> |
@@ -463,10 +464,41 @@ static struct platform_device sharpsl_nand_device = { | |||
463 | .dev.platform_data = &sharpsl_nand_platform_data, | 464 | .dev.platform_data = &sharpsl_nand_platform_data, |
464 | }; | 465 | }; |
465 | 466 | ||
467 | static struct mtd_partition sharpsl_rom_parts[] = { | ||
468 | { | ||
469 | .name ="Boot PROM Filesystem", | ||
470 | .offset = 0x00120000, | ||
471 | .size = MTDPART_SIZ_FULL, | ||
472 | }, | ||
473 | }; | ||
474 | |||
475 | static struct physmap_flash_data sharpsl_rom_data = { | ||
476 | .width = 2, | ||
477 | .nr_parts = ARRAY_SIZE(sharpsl_rom_parts), | ||
478 | .parts = sharpsl_rom_parts, | ||
479 | }; | ||
480 | |||
481 | static struct resource sharpsl_rom_resources[] = { | ||
482 | { | ||
483 | .start = 0x00000000, | ||
484 | .end = 0x007fffff, | ||
485 | .flags = IORESOURCE_MEM, | ||
486 | }, | ||
487 | }; | ||
488 | |||
489 | static struct platform_device sharpsl_rom_device = { | ||
490 | .name = "physmap-flash", | ||
491 | .id = -1, | ||
492 | .resource = sharpsl_rom_resources, | ||
493 | .num_resources = ARRAY_SIZE(sharpsl_rom_resources), | ||
494 | .dev.platform_data = &sharpsl_rom_data, | ||
495 | }; | ||
496 | |||
466 | static struct platform_device *devices[] __initdata = { | 497 | static struct platform_device *devices[] __initdata = { |
467 | &poodle_locomo_device, | 498 | &poodle_locomo_device, |
468 | &poodle_scoop_device, | 499 | &poodle_scoop_device, |
469 | &sharpsl_nand_device, | 500 | &sharpsl_nand_device, |
501 | &sharpsl_rom_device, | ||
470 | }; | 502 | }; |
471 | 503 | ||
472 | static void poodle_poweroff(void) | 504 | static void poodle_poweroff(void) |