spi: ich: Add TPL support
authorSimon Glass <sjg@chromium.org>
Sat, 7 Dec 2019 04:42:48 +0000 (21:42 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Sun, 15 Dec 2019 03:44:24 +0000 (11:44 +0800)
commit636555a4c4c96607613a7013b4b8536b10b5e8e4
tree8314857a7a2036bb3cf68cbdc2c985372eed20dc
parent92842147c3113e83462fcad00fa5cd343c4b945e
spi: ich: Add TPL support

In TPL we want to reduce code size and support running with CONFIG_PCI
disabled. Add special code to handle this using a fixed BAR programmed
into the SPI on boot. Also cache the SPI flash to speed up boot.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/spi/ich.c