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 Антон Кочков <[email protected]>: > 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 > <[email protected]> wrote: >> Add VIA VT6421A LPC programmer driver. >> >> Signed-off-by: Jonathan Kollasch <[email protected]> >> >> _______________________________________________ >> flashrom mailing list >> [email protected] >> http://www.flashrom.org/mailman/listinfo/flashrom >> > _______________________________________________ flashrom mailing list [email protected] http://www.flashrom.org/mailman/listinfo/flashrom
