« Previous | Next » 

Revision 03ec2f83

ID03ec2f83087de34924489eeae0ea6fe7785cc050

Added by Kuo-Jung Su about 11 years ago

hw/m25p80.c: add WRSR 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 + WRSR to turn-off the protection.

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

Signed-off-by: Kuo-Jung Su <>
Cc: Peter Crosthwaite <>
Cc: Peter Maydell <>
Cc: Edgar E. Iglesias <>
Reviewed-by: Peter Crosthwaite <>
Signed-off-by: Edgar E. Iglesias <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences