Sorry, forgot this:
Looks like it need for:
pci_dword_write(via_device, 0x30, 0xFFFFFFFF); some delay; pci_dword_write(via_device, 0x30, 0);
before any access to 0x6x registers to VIA device
Best regards, Anton Kochkov.
2011/5/24 Антон Кочков anton.kochkov@gmail.com:
This patch not working on most VT6421A.
May be we need check for flash access before writing/reading chip?
flash_access_control(PCI_dev via_device) { count = 0; while (c<300) { access_mode = pci_read_byte(via_device, 0x68); if (access_mode & (1<<6)) == (1<<6) { return access_granted; } else { delay(0xA); } c++; } return access_restricted; }
Best regards, Anton Kochkov.
On Tue, Jan 4, 2011 at 06:23, Jonathan A. Kollasch jakllsch@kollasch.net wrote:
Add VIA VT6421A LPC programmer driver.
Signed-off-by: Jonathan Kollasch jakllsch@kollasch.net
flashrom mailing list flashrom@flashrom.org http://www.flashrom.org/mailman/listinfo/flashrom