[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 03ec2f: hw/m25p80.c: add WRSR(0x01) support

From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 03ec2f: hw/m25p80.c: add WRSR(0x01) support
Date: Tue, 12 Feb 2013 01:30:11 -0800

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 03ec2f83087de34924489eeae0ea6fe7785cc050
  Author: Kuo-Jung Su <address@hidden>
  Date:   2013-02-12 (Tue, 12 Feb 2013)

  Changed paths:
    M hw/m25p80.c

  Log Message:
  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 <address@hidden>
Cc: Peter Crosthwaite <address@hidden>
Cc: Peter Maydell <address@hidden>
Cc: Edgar E. Iglesias <address@hidden>
Reviewed-by: Peter Crosthwaite <address@hidden>
Signed-off-by: Edgar E. Iglesias <address@hidden>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]