diff options
Diffstat (limited to 'arch/arm/mach-pxa/spitz.c')
-rw-r--r-- | arch/arm/mach-pxa/spitz.c | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/spitz.c b/arch/arm/mach-pxa/spitz.c index 3be76ee2bdbf..7299d87a1cb3 100644 --- a/arch/arm/mach-pxa/spitz.c +++ b/arch/arm/mach-pxa/spitz.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <linux/gpio.h> | 22 | #include <linux/gpio.h> |
23 | #include <linux/leds.h> | 23 | #include <linux/leds.h> |
24 | #include <linux/mmc/host.h> | 24 | #include <linux/mmc/host.h> |
25 | #include <linux/mtd/physmap.h> | ||
25 | #include <linux/pm.h> | 26 | #include <linux/pm.h> |
26 | #include <linux/backlight.h> | 27 | #include <linux/backlight.h> |
27 | #include <linux/io.h> | 28 | #include <linux/io.h> |
@@ -122,6 +123,10 @@ static unsigned long spitz_pin_config[] __initdata = { | |||
122 | GPIO105_GPIO, /* SPITZ_GPIO_CF_IRQ */ | 123 | GPIO105_GPIO, /* SPITZ_GPIO_CF_IRQ */ |
123 | GPIO106_GPIO, /* SPITZ_GPIO_CF2_IRQ */ | 124 | GPIO106_GPIO, /* SPITZ_GPIO_CF2_IRQ */ |
124 | 125 | ||
126 | /* I2C */ | ||
127 | GPIO117_I2C_SCL, | ||
128 | GPIO118_I2C_SDA, | ||
129 | |||
125 | GPIO1_GPIO | WAKEUP_ON_EDGE_RISE, | 130 | GPIO1_GPIO | WAKEUP_ON_EDGE_RISE, |
126 | }; | 131 | }; |
127 | 132 | ||
@@ -609,10 +614,41 @@ static struct pxafb_mach_info spitz_pxafb_info = { | |||
609 | }; | 614 | }; |
610 | 615 | ||
611 | 616 | ||
617 | static struct mtd_partition sharpsl_rom_parts[] = { | ||
618 | { | ||
619 | .name ="Boot PROM Filesystem", | ||
620 | .offset = 0x00140000, | ||
621 | .size = MTDPART_SIZ_FULL, | ||
622 | }, | ||
623 | }; | ||
624 | |||
625 | static struct physmap_flash_data sharpsl_rom_data = { | ||
626 | .width = 2, | ||
627 | .nr_parts = ARRAY_SIZE(sharpsl_rom_parts), | ||
628 | .parts = sharpsl_rom_parts, | ||
629 | }; | ||
630 | |||
631 | static struct resource sharpsl_rom_resources[] = { | ||
632 | { | ||
633 | .start = 0x00000000, | ||
634 | .end = 0x007fffff, | ||
635 | .flags = IORESOURCE_MEM, | ||
636 | }, | ||
637 | }; | ||
638 | |||
639 | static struct platform_device sharpsl_rom_device = { | ||
640 | .name = "physmap-flash", | ||
641 | .id = -1, | ||
642 | .resource = sharpsl_rom_resources, | ||
643 | .num_resources = ARRAY_SIZE(sharpsl_rom_resources), | ||
644 | .dev.platform_data = &sharpsl_rom_data, | ||
645 | }; | ||
646 | |||
612 | static struct platform_device *devices[] __initdata = { | 647 | static struct platform_device *devices[] __initdata = { |
613 | &spitzscoop_device, | 648 | &spitzscoop_device, |
614 | &spitzkbd_device, | 649 | &spitzkbd_device, |
615 | &spitzled_device, | 650 | &spitzled_device, |
651 | &sharpsl_rom_device, | ||
616 | }; | 652 | }; |
617 | 653 | ||
618 | static void spitz_poweroff(void) | 654 | static void spitz_poweroff(void) |