From 2937798ece35ce2471570dd22ad3c6b239fdd96d Mon Sep 17 00:00:00 2001 From: Dmitry Baryshkov Date: Tue, 25 Nov 2008 00:57:29 +0300 Subject: [PATCH] --- yaml --- r: 123687 b: refs/heads/master c: 4a9295ccb43ead9ec054d0bd374c992c692b2cf4 h: refs/heads/master i: 123685: 6c0d15db18e6a4c0488c67a1fa5855029748bf4c 123683: 46fe7743bfd1259cd8a9dd6cb13a8d5ef070639e 123679: 4ff28f2b5be2978e98fabc8462f9927eca595554 v: v3 --- [refs] | 2 +- trunk/arch/arm/mach-pxa/corgi.c | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index f2fe3d5b484b..f1f75cd5ee12 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e5d3bf3c106c0557199076a57800adb85206c1ce +refs/heads/master: 4a9295ccb43ead9ec054d0bd374c992c692b2cf4 diff --git a/trunk/arch/arm/mach-pxa/corgi.c b/trunk/arch/arm/mach-pxa/corgi.c index 65558d6aa220..c5e28a46b292 100644 --- a/trunk/arch/arm/mach-pxa/corgi.c +++ b/trunk/arch/arm/mach-pxa/corgi.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include @@ -541,11 +542,42 @@ static void __init corgi_init_spi(void) static inline void corgi_init_spi(void) {} #endif +static struct mtd_partition sharpsl_rom_parts[] = { + { + .name ="Boot PROM Filesystem", + .offset = 0x00120000, + .size = MTDPART_SIZ_FULL, + }, +}; + +static struct physmap_flash_data sharpsl_rom_data = { + .width = 2, + .nr_parts = ARRAY_SIZE(sharpsl_rom_parts), + .parts = sharpsl_rom_parts, +}; + +static struct resource sharpsl_rom_resources[] = { + { + .start = 0x00000000, + .end = 0x007fffff, + .flags = IORESOURCE_MEM, + }, +}; + +static struct platform_device sharpsl_rom_device = { + .name = "physmap-flash", + .id = -1, + .resource = sharpsl_rom_resources, + .num_resources = ARRAY_SIZE(sharpsl_rom_resources), + .dev.platform_data = &sharpsl_rom_data, +}; + static struct platform_device *devices[] __initdata = { &corgiscoop_device, &corgifb_device, &corgikbd_device, &corgiled_device, + &sharpsl_rom_device, }; static void corgi_poweroff(void)