Skip to content

Commit

Permalink
Blackfin: bf537-stamp: declare parallel flash as ROM with XIP kernel
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Barry Song authored and Mike Frysinger committed Mar 9, 2010
1 parent 29bb3bc commit 38e7673
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/blackfin/mach-bf537/boards/stamp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 38e7673

Please sign in to comment.