diff options
author | Philipp Zabel <philipp.zabel@gmail.com> | 2008-04-09 14:24:05 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-04-19 06:29:07 -0400 |
commit | aa7975901b949501d47af8225f23bee1116cd441 (patch) | |
tree | 0e7ac58526809ae88ebe56af9cafddcdb6ef7dcd /arch/arm/mach-pxa/magician.c | |
parent | 70e357f8426c54e1500ac4fdb6b1172df16d8b93 (diff) |
[ARM] 4949/1: magician: enable flash VPP GPIO and build in MTD, physmap-flash and JFFS2
This enables rootfs on StrataFlash if the bootloader supplies the
partition list.
Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-pxa/magician.c')
-rw-r--r-- | arch/arm/mach-pxa/magician.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/magician.c b/arch/arm/mach-pxa/magician.c index 3b7e8bac7344..159f6dc4543a 100644 --- a/arch/arm/mach-pxa/magician.c +++ b/arch/arm/mach-pxa/magician.c | |||
@@ -224,6 +224,11 @@ static struct pxaohci_platform_data magician_ohci_info = { | |||
224 | * StrataFlash | 224 | * StrataFlash |
225 | */ | 225 | */ |
226 | 226 | ||
227 | static void magician_set_vpp(struct map_info *map, int vpp) | ||
228 | { | ||
229 | gpio_set_value(EGPIO_MAGICIAN_FLASH_VPP, vpp); | ||
230 | } | ||
231 | |||
227 | #define PXA_CS_SIZE 0x04000000 | 232 | #define PXA_CS_SIZE 0x04000000 |
228 | 233 | ||
229 | static struct resource strataflash_resource = { | 234 | static struct resource strataflash_resource = { |
@@ -234,6 +239,7 @@ static struct resource strataflash_resource = { | |||
234 | 239 | ||
235 | static struct physmap_flash_data strataflash_data = { | 240 | static struct physmap_flash_data strataflash_data = { |
236 | .width = 4, | 241 | .width = 4, |
242 | .set_vpp = magician_set_vpp, | ||
237 | }; | 243 | }; |
238 | 244 | ||
239 | static struct platform_device strataflash = { | 245 | static struct platform_device strataflash = { |