pflash: Restore & fix lazy ROMD switching
commit661bfc80e876d32da8befe53ba0234d87fc0bcc2
authorJan Kiszka <jan.kiszka@web.de>
Sun, 10 Apr 2011 10:53:39 +0000 (10 12:53 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Wed, 27 Apr 2011 14:31:12 +0000 (27 16:31 +0200)
treebeefdc3b3a81220d81049aafd633b4db3d06486e
parent70afb8ff90e9d922ed729e6dbabaff6d67c461aa
pflash: Restore & fix lazy ROMD switching

Commit 5145b3d1cc revealed a bug in the lazy ROMD switch-back logic, but
resolved it by breaking that feature. This approach addresses the issue
by switching back to ROMD after a certain amount of read accesses
without further unlock sequences.

Signed-off-by: Jan Kiszka <jan.kiszka@web.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
hw/pflash_cfi02.c