Blackfin: bf537-stamp: declare parallel flash as ROM with XIP kernel
authorBarry Song <barry.song@analog.com>
Fri, 15 Jan 2010 03:24:39 +0000 (03:24 +0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 9 Mar 2010 05:30:49 +0000 (00:30 -0500)
When the kernel is executing out of parallel flash (XIP), we can't have
the flash go into an erase/programming cycle, otherwise the instruction
fetching steps fail and everything crashes.

Signed-off-by: Barry Song <barry.song@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/mach-bf537/boards/stamp.c

index d47f4ed..2642970 100644 (file)
@@ -455,6 +455,9 @@ static struct physmap_flash_data stamp_flash_data = {
        .width      = 2,
        .parts      = stamp_partitions,
        .nr_parts   = ARRAY_SIZE(stamp_partitions),
+#ifdef CONFIG_ROMKERNEL
+       .probe_type = "map_rom",
+#endif
 };
 
 static struct resource stamp_flash_resource = {