aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/spitz.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-pxa/spitz.c')
-rw-r--r--arch/arm/mach-pxa/spitz.c36
1 files changed, 36 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/spitz.c b/arch/arm/mach-pxa/spitz.c
index 7672b09c31b9..6d447c9ce8ab 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>
@@ -123,6 +124,10 @@ static unsigned long spitz_pin_config[] __initdata = {
123 GPIO105_GPIO, /* SPITZ_GPIO_CF_IRQ */ 124 GPIO105_GPIO, /* SPITZ_GPIO_CF_IRQ */
124 GPIO106_GPIO, /* SPITZ_GPIO_CF2_IRQ */ 125 GPIO106_GPIO, /* SPITZ_GPIO_CF2_IRQ */
125 126
127 /* I2C */
128 GPIO117_I2C_SCL,
129 GPIO118_I2C_SDA,
130
126 GPIO1_GPIO | WAKEUP_ON_EDGE_RISE, 131 GPIO1_GPIO | WAKEUP_ON_EDGE_RISE,
127}; 132};
128 133
@@ -658,11 +663,42 @@ static struct platform_device sharpsl_nand_device = {
658}; 663};
659 664
660 665
666static struct mtd_partition sharpsl_rom_parts[] = {
667 {
668 .name ="Boot PROM Filesystem",
669 .offset = 0x00140000,
670 .size = MTDPART_SIZ_FULL,
671 },
672};
673
674static struct physmap_flash_data sharpsl_rom_data = {
675 .width = 2,
676 .nr_parts = ARRAY_SIZE(sharpsl_rom_parts),
677 .parts = sharpsl_rom_parts,
678};
679
680static struct resource sharpsl_rom_resources[] = {
681 {
682 .start = 0x00000000,
683 .end = 0x007fffff,
684 .flags = IORESOURCE_MEM,
685 },
686};
687
688static struct platform_device sharpsl_rom_device = {
689 .name = "physmap-flash",
690 .id = -1,
691 .resource = sharpsl_rom_resources,
692 .num_resources = ARRAY_SIZE(sharpsl_rom_resources),
693 .dev.platform_data = &sharpsl_rom_data,
694};
695
661static struct platform_device *devices[] __initdata = { 696static struct platform_device *devices[] __initdata = {
662 &spitzscoop_device, 697 &spitzscoop_device,
663 &spitzkbd_device, 698 &spitzkbd_device,
664 &spitzled_device, 699 &spitzled_device,
665 &sharpsl_nand_device, 700 &sharpsl_nand_device,
701 &sharpsl_rom_device,
666}; 702};
667 703
668static void spitz_poweroff(void) 704static void spitz_poweroff(void)