mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 16:29:59 +00:00
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>
This commit is contained in:
parent
29bb3bc0c7
commit
38e7673f24
1 changed files with 3 additions and 0 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue