Finally, now I know it's working (at least the part that I'm patching here...), here is the patch that uses PIO mode read from SPI rom with lzma decompression.
This patch allows direct out-of-SPI-flash boot of a Linux kernel. It circumvents the 512KB limitation in the IT8716f superio of memory mapping an SPI flash device by using a PIO method for reading the data. Limitation: no nrv2b support. Not so nice: hardcoded 0x820 SPI-IO port.
Best regards, Ronald.
Signed-off-by: Ronald Hoogenboom hoogenboom30@zonnet.nl