Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Blackfin: bf537-stamp: declare parallel flash as ROM with XIP kernel

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>

authored by

Barry Song and committed by
Mike Frysinger
38e7673f 29bb3bc0

+3
+3
arch/blackfin/mach-bf537/boards/stamp.c
··· 455 455 .width = 2, 456 456 .parts = stamp_partitions, 457 457 .nr_parts = ARRAY_SIZE(stamp_partitions), 458 + #ifdef CONFIG_ROMKERNEL 459 + .probe_type = "map_rom", 460 + #endif 458 461 }; 459 462 460 463 static struct resource stamp_flash_resource = {