Hello,

On Mon, Feb 11, 2019, 18:26 Richard Hughes <hughsient@gmail.com wrote:
On Mon, 11 Feb 2019 at 17:00, Angel Pons <th3fanbus@gmail.com> wrote:
> The it85spi driver is commented out in code, apparently because it
> relies on firmware-specific functions. AFAIK, there isn't much to read
> the internal flash on ECs, other than the ENE KB9012's via EDI.

Okay, that was a very useful read, thanks. Different, but related of course.

> > Whilst I now have a datasheet, I
> For those chips? I'm interested in them: How did you obtain them?

I've been working with an ODM for an un-named OEM, who supplied me the
datasheet for the IT89 without signing an NDA. I don't think I can
redistribute it without issues.

Oh, bummer.

> I don't think much has been done for the internal flash on these ICs on
> flashrom. For instance, I didn't know the IT8987 had an internal flash.

As I understand it, at least for the the hardware I have here, the
IT89 has both. The SPI "external" flash is only used to populate the
"internal" e-flash at manufacturing time and then after than it's
unused. I imagine you could reprogram the 128k external SPI chip using
the indirect mapping thing although at least for me it's a nice "get
out of jail" feature as the current firmware seems to look for the
A5A5A5A5 16 byte header on the e-flash to check if it's valid. Of
course, I could have misunderstood this all wildly.

I now recall reading something like that. I'm not sure about the header bit, though.

On Mon, 11 Feb 2019 at 17:11, Carl-Daniel Hailfinger
<c-d.hailfinger.devel.2006@gmx.net> wrote:
> IT87 handling was easy and straightforward because all they did
> (regarding flash) was translating LPC flash accesses to SPI flash
> accesses in passthrough mode and offering a separate SPI-centric
> programming interface for full access.

I think IT89 is much like a IT87 -- some of the LDNs seem a bit
different (and there are more!) but it looks basically the same kind
of beast.

Well, the IT87  and IT86 series are usually Super IO chips, whereas the IT85 and IT89 chips are ECs, which seem to have a SuperIO-like part, with LDNs and such.

Richard.

Best regards,

Angel Pons