pflash-next patches for v4.1.0-rc1
Trivial pflash fixes for rc1. -----BEGIN PGP SIGNATURE----- iQIcBAABAgAGBQJdLfR5AAoJEOPjLCzercDeHfwP/j27GNRSUhkHzWNyygYJ9mj+ K+EVtG4cnPuZr4zx138Gel+jm2Q2SIFEFMJWJN4NtHQ0Z3FGD0J+1+K8roUgP3M0 gEspiMNFyzdNDewPkWbw3b2ftYYof/UMIfuWT+ClArUG6Tx4u2pdSIbCuHX9Bp7F kvh3/IZqnK2pNp71ocpfD48ZCGfwy4d7zOTD6dDax3I/yBVVXi7Dh5v8KPxafnL5 fsgLQ1yaWS7ELO4h7LeRsyDioYSbEY+Se/uhGu3iXnfDgPGUM+RMaP2GuEWr6noK dKEIDmXL378stD0N3tKRWSwYmr9mhtDcX7Od+uIduZFnmWaRn3iTlO+eCuMtkbuO H3+pD7FUy4qHF+FqiETn4g+L3e9IbR2dYE/Blsew7s7Au/s8JY9ZZiszmSh01RGn i5LKyaGpRbsWVb5hkV1cqvPOXX/aClO+4yXO5+ZmUytmN9lXtJzZMtDnOi5vt1x0 6yRhya+y2J8kPNQO2p+uVv8v78kgBd1bN8XlFIKbj0rE3/lsClbTxo0rINv+jwiI CNe/Oa+DFa7Wod4jMfLyzCljlRhZZ+p8yCCTRI5oQ4O6u6DnQ8jW/ezIUZGusYaF 0AyBq7X/RSIr5gwRgy2KSulVtAKGumz+FHGgaTQmRRpCyKJR7EIHXXrTtl8F6i7s /7LRXXtrhaHNnds7FJq5 =dN9Q -----END PGP SIGNATURE----- Merge remote-tracking branch 'remotes/philmd-gitlab/tags/pflash-next-20190716' into staging pflash-next patches for v4.1.0-rc1 Trivial pflash fixes for rc1. # gpg: Signature made Tue 16 Jul 2019 16:59:53 BST # gpg: using RSA key E3E32C2CDEADC0DE # gpg: Good signature from "Philippe Mathieu-Daudé (F4BUG) <f4bug@amsat.org>" [full] # Primary key fingerprint: FAAB E75E 1291 7221 DCFD 6BB2 E3E3 2C2C DEAD C0DE * remotes/philmd-gitlab/tags/pflash-next-20190716: hw/block/pflash_cfi01: Start state machine as READY to accept commands hw/block/pflash_cfi02: Explicit switch fallthrough for ERASE commands Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
commit
a1a4d49f60
@ -777,7 +777,7 @@ static void pflash_cfi01_realize(DeviceState *dev, Error **errp)
|
||||
pfl->timer = timer_new_ns(QEMU_CLOCK_VIRTUAL, pflash_timer, pfl);
|
||||
pfl->wcycle = 0;
|
||||
pfl->cmd = 0;
|
||||
pfl->status = 0;
|
||||
pfl->status = 0x80; /* WSM ready */
|
||||
/* Hardcoded CFI table */
|
||||
/* Standard "QRY" string */
|
||||
pfl->cfi_table[0x10] = 'Q';
|
||||
|
@ -367,6 +367,7 @@ static uint64_t pflash_read(void *opaque, hwaddr offset, unsigned int width)
|
||||
case 0x30: /* Sector Erase */
|
||||
/* Toggle bit 2 during erase, but not program. */
|
||||
toggle_dq2(pfl);
|
||||
/* fall through */
|
||||
case 0xA0: /* Program */
|
||||
/* Toggle bit 6 */
|
||||
toggle_dq6(pfl);
|
||||
|
Loading…
Reference in New Issue
Block a user