aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa
diff options
context:
space:
mode:
authorDmitry Baryshkov <dbaryshkov@gmail.com>2008-11-24 16:57:27 -0500
committerEric Miao <eric.miao@marvell.com>2008-12-02 01:43:49 -0500
commitf34ee79a5307e9a4c68c978840cf7e7e10236362 (patch)
tree55a0abd360dc6c3cad95c4220b644f077763dcdf /arch/arm/mach-pxa
parentddfb33c0ffbd8b8f5984de5a8f9513b88cd28b67 (diff)
[ARM] pxa/tosa: add physmap mapping for ROM
Add mapping for system ROM using physmap-flash mapping. Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com> Signed-off-by: Eric Miao <eric.miao@marvell.com>
Diffstat (limited to 'arch/arm/mach-pxa')
-rw-r--r--arch/arm/mach-pxa/tosa.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/tosa.c b/arch/arm/mach-pxa/tosa.c
index c46b640e453d..3332e5d0356c 100644
--- a/arch/arm/mach-pxa/tosa.c
+++ b/arch/arm/mach-pxa/tosa.c
@@ -25,6 +25,7 @@
25#include <linux/mfd/tmio.h> 25#include <linux/mfd/tmio.h>
26#include <linux/mtd/nand.h> 26#include <linux/mtd/nand.h>
27#include <linux/mtd/partitions.h> 27#include <linux/mtd/partitions.h>
28#include <linux/mtd/physmap.h>
28#include <linux/pm.h> 29#include <linux/pm.h>
29#include <linux/gpio_keys.h> 30#include <linux/gpio_keys.h>
30#include <linux/input.h> 31#include <linux/input.h>
@@ -831,6 +832,36 @@ static struct spi_board_info spi_board_info[] __initdata = {
831 }, 832 },
832}; 833};
833 834
835static struct mtd_partition sharpsl_rom_parts[] = {
836 {
837 .name ="Boot PROM Filesystem",
838 .offset = 0x00160000,
839 .size = MTDPART_SIZ_FULL,
840 },
841};
842
843static struct physmap_flash_data sharpsl_rom_data = {
844 .width = 2,
845 .nr_parts = ARRAY_SIZE(sharpsl_rom_parts),
846 .parts = sharpsl_rom_parts,
847};
848
849static struct resource sharpsl_rom_resources[] = {
850 {
851 .start = 0x00000000,
852 .end = 0x007fffff,
853 .flags = IORESOURCE_MEM,
854 },
855};
856
857static struct platform_device sharpsl_rom_device = {
858 .name = "physmap-flash",
859 .id = -1,
860 .resource = sharpsl_rom_resources,
861 .num_resources = ARRAY_SIZE(sharpsl_rom_resources),
862 .dev.platform_data = &sharpsl_rom_data,
863};
864
834static struct platform_device *devices[] __initdata = { 865static struct platform_device *devices[] __initdata = {
835 &tosascoop_device, 866 &tosascoop_device,
836 &tosascoop_jc_device, 867 &tosascoop_jc_device,
@@ -840,6 +871,7 @@ static struct platform_device *devices[] __initdata = {
840 &tosa_gpio_keys_device, 871 &tosa_gpio_keys_device,
841 &tosaled_device, 872 &tosaled_device,
842 &tosa_bt_device, 873 &tosa_bt_device,
874 &sharpsl_rom_device,
843}; 875};
844 876
845static void tosa_poweroff(void) 877static void tosa_poweroff(void)