[flashrom] [patch] VT6421A LPC programmer

Антон Кочков anton.kochkov at gmail.com
Tue May 24 18:48:26 CEST 2011


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 at 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 at kollasch.net> wrote:
>> Add VIA VT6421A LPC programmer driver.
>>
>> Signed-off-by: Jonathan Kollasch <jakllsch at kollasch.net>
>>
>> _______________________________________________
>> flashrom mailing list
>> flashrom at flashrom.org
>> http://www.flashrom.org/mailman/listinfo/flashrom
>>
>




More information about the flashrom mailing list