On Thu, Jan 14, 2010 at 02:09:51AM +0100, Uwe Hermann wrote:
I'll post a patch tomorrow or so and test on my HPT370A.
Here's the first draft. It does not yet work, the chip cannot be detected, all reads return 0x00 so far.
Attached is the patch, an lspci -xxxnnnvvv after a fresh boot and before any flashrom runs, and the output of 'flashrom -p atahpt -V'.
I desoldered the SST39SF512 chip and soldered on a PLCC socket onto the HPT card for easier testing. I already posted a patch for the SST39SF512, which I tested in a supported mainboard and it works fine.
Note that the WE# pin is at 3.3V while the HPT card is powered, thus writes are _dis_abled, unless I'm mistaken. The WE# pin is connected to some pin of the HPT370A chip (probably a GPIO), so it can in theory toggle the WE# pin.
The PCI registers suggest that the flash access is enabled per default, and the IO-vs-MMIO bit is set to I/O per default.
HTH, Uwe.