
This little series makes the SPI memory-mapping query work on all current x86 boards where possible, returning an error code (rather than hanging) when it fails.
It replaces the previous patch at [1]. Unfortunately it is quite a bit more complicated.
This fixes booting on link and samus. It also fixes MRC saving on minnowmax.
[1] http://patchwork.ozlabs.org/project/uboot/patch/20200324074524.1.Ibc9c511db5...
Changes in v2: - Fix a 'BFF' typo - Add new patch to allow use before driver model is active
Simon Glass (4): x86: spi: Add a way to access the SPI mapping via registers x86: spi: Rewrite logic for obtaining the SPI memory map x86: spl: Print the error on SPL failure x86: mrccache: Allow use before driver model is active
arch/x86/cpu/intel_common/fast_spi.c | 19 +++-- arch/x86/include/asm/fast_spi.h | 19 +++++ arch/x86/include/asm/mrccache.h | 15 ++-- arch/x86/lib/mrccache.c | 35 ++++++--- arch/x86/lib/spl.c | 4 +- drivers/spi/ich.c | 103 +++++++++++++++++++++++---- 6 files changed, 152 insertions(+), 43 deletions(-)