diff --git a/[refs] b/[refs] index d95565951d0b..9f538294a39e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 9845b6b15cf03ae3f473c39a13f2454abad50e09 +refs/heads/master: d7c307cfe76ae0c0493fbdac417ef6e30221f61b diff --git a/trunk/arch/arm/mach-pxa/palmld.c b/trunk/arch/arm/mach-pxa/palmld.c index 08c599b49d89..b3ae8b958ad6 100644 --- a/trunk/arch/arm/mach-pxa/palmld.c +++ b/trunk/arch/arm/mach-pxa/palmld.c @@ -25,6 +25,9 @@ #include #include #include +#include +#include +#include #include #include @@ -140,6 +143,42 @@ static unsigned long palmld_pin_config[] __initdata = { GPIO13_GPIO, /* earphone detect */ }; +/****************************************************************************** + * NOR Flash + ******************************************************************************/ +static struct mtd_partition palmld_partitions[] = { + { + .name = "Flash", + .offset = 0x00000000, + .size = MTDPART_SIZ_FULL, + .mask_flags = 0 + } +}; + +static struct physmap_flash_data palmld_flash_data[] = { + { + .width = 2, /* bankwidth in bytes */ + .parts = palmld_partitions, + .nr_parts = ARRAY_SIZE(palmld_partitions) + } +}; + +static struct resource palmld_flash_resource = { + .start = PXA_CS0_PHYS, + .end = PXA_CS0_PHYS + SZ_4M - 1, + .flags = IORESOURCE_MEM, +}; + +static struct platform_device palmld_flash = { + .name = "physmap-flash", + .id = 0, + .resource = &palmld_flash_resource, + .num_resources = 1, + .dev = { + .platform_data = palmld_flash_data, + }, +}; + /****************************************************************************** * SD/MMC card controller ******************************************************************************/ @@ -489,6 +528,7 @@ static struct platform_device *devices[] __initdata = { &power_supply, &palmld_asoc, &palmld_hdd, + &palmld_flash, }; static struct map_desc palmld_io_desc[] __initdata = {