Kuo-Jung Su 03ec2f8308 hw/m25p80.c: add WRSR(0x01) support
Atmel, SST and Intel/Numonyx serial flash tend to power up
with the software protection bits set.
And thus the new m25p80.c in linux kernel would always tries
to use WREN(0x06) + WRSR(0x01) to turn-off the protection.

The WEL(0x02) of status register is supposed to be cleared after
WRSR(0x01). There are also some drivers (i.e mine for RTOSes)
would check the WEL(0x02) in status register to make sure the
protection is correctly turned off.

Signed-off-by: Kuo-Jung Su <dantesu@faraday-tech.com>
Cc: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Cc: Peter Maydell <peter.maydell@linaro.org>
Cc: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
2013-02-12 10:03:27 +01:00
..
2013-02-01 00:13:41 +01:00
2013-02-01 11:03:01 -06:00
2013-01-10 15:11:53 -06:00
2013-01-25 22:02:55 +01:00
2013-01-25 22:02:55 +01:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-02-01 11:03:00 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-25 22:02:55 +01:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-02-01 11:03:01 -06:00
2013-01-10 15:11:53 -06:00
2013-02-01 10:43:24 -06:00
2013-01-10 15:11:53 -06:00
2013-02-01 11:03:01 -06:00
2013-01-10 15:11:53 -06:00
2013-02-01 11:03:00 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-07 12:57:24 +01:00
2013-01-07 12:57:24 +01:00
2013-02-01 10:43:24 -06:00
2013-02-01 10:43:24 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-30 01:31:09 +02:00
2013-02-01 00:13:41 +01:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-02-01 10:43:28 -06:00
2013-01-14 10:23:50 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-15 18:26:18 -06:00
2013-02-01 11:03:00 -06:00
2013-02-01 11:03:00 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-02-01 10:43:24 -06:00
2013-02-12 10:03:27 +01:00
2013-01-25 22:02:54 +01:00
2013-01-25 22:02:54 +01:00
2013-01-26 13:15:37 +00:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-02-01 11:03:01 -06:00
2013-02-01 11:03:00 -06:00
2013-01-10 15:11:53 -06:00
2013-02-01 11:03:00 -06:00
2013-02-01 11:03:00 -06:00
2013-02-01 11:03:01 -06:00
2013-02-01 11:03:00 -06:00
2013-01-10 15:11:53 -06:00
2013-01-30 01:31:09 +02:00
2013-01-10 15:11:53 -06:00
2013-01-14 08:59:39 +01:00
2013-01-17 10:24:52 -02:00
2013-01-14 10:23:50 -06:00
2013-01-10 15:11:53 -06:00
2013-02-01 11:03:01 -06:00
2013-02-01 11:03:00 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-18 19:06:57 +01:00
2013-01-27 23:04:26 +01:00
2013-01-15 04:09:13 +01:00
2013-02-01 11:03:01 -06:00
2013-02-01 00:13:41 +01:00
2013-02-01 11:03:01 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-14 10:23:50 -06:00
2013-01-24 09:45:03 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-02-01 11:03:00 -06:00
2013-02-01 11:03:00 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-02-01 11:03:00 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-16 12:14:20 -06:00
2013-01-16 12:14:20 -06:00
2013-01-10 15:11:53 -06:00
2013-01-25 22:02:53 +01:00
2013-01-17 10:24:52 -02:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-02-01 11:03:02 -06:00
2013-02-01 11:03:02 -06:00
2013-02-01 11:03:02 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-02-01 10:43:24 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-02-01 11:03:00 -06:00
2013-01-15 04:09:13 +01:00
2013-02-01 11:03:00 -06:00
2013-02-01 11:03:00 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-10 15:11:53 -06:00
2013-01-15 18:26:18 -06:00
2013-01-10 15:11:53 -06:00