Hi, all.
I have PCISA-LX-800 board (AMD LX800 + CS5536) http://www.ieiworld.com/en/product_IPC.asp?model=PCISA-LX.
The flashrom detect flash device on this board, hier flashrom output: ... Pm49FL004 found at physical address 0xfff80000. Flash part is Pm49FL004 (512 KB). ...
But the flashrom has problems with write and erasing operations to this flash device.
The data-sheet on PM49FL004/2 say that: This flash device can work in two modes: LPC and FWH.
On this board flash device be in FWH mode (MSR_DIVIL_BALL_OPT(0x51400015) = 0x00000f7d)
Also data-sheet on PM49FL004/2 say that: In FWH mode are available Block Locking Registers and in default flash is locked for write/erasing.
This patch add unlocking operation PM49FL004/2 before write/erasing operation.
Signed-off-by: Nikolay Petukhov <nikolay.petukhov at gmail.com>