aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/poodle.c
diff options
context:
space:
mode:
authorDavid Woodhouse <David.Woodhouse@intel.com>2009-01-05 04:50:33 -0500
committerDavid Woodhouse <David.Woodhouse@intel.com>2009-01-05 04:50:33 -0500
commit353816f43d1fb340ff2d9a911dd5d0799c09f6a5 (patch)
tree517290fd884d286fe2971137ac89f89e3567785a /arch/arm/mach-pxa/poodle.c
parent160bbab3000dafccbe43688e48208cecf4deb879 (diff)
parentfe0bdec68b77020281dc814805edfe594ae89e0f (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.c32
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
467static struct mtd_partition sharpsl_rom_parts[] = {
468 {
469 .name ="Boot PROM Filesystem",
470 .offset = 0x00120000,
471 .size = MTDPART_SIZ_FULL,
472 },
473};
474
475static 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
481static struct resource sharpsl_rom_resources[] = {
482 {
483 .start = 0x00000000,
484 .end = 0x007fffff,
485 .flags = IORESOURCE_MEM,
486 },
487};
488
489static 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
466static struct platform_device *devices[] __initdata = { 497static 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
472static void poodle_poweroff(void) 504static void poodle_poweroff(void)