From patchwork Mon May 18 03:00:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 245939 List-Id: U-Boot discussion From: sjg at chromium.org (Simon Glass) Date: Sun, 17 May 2020 21:00:56 -0600 Subject: [PATCH 0/3] x86: Correct SPI memory-mapping query Message-ID: <20200518030059.80935-1-sjg@chromium.org> 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. [1] http://patchwork.ozlabs.org/project/uboot/patch/20200324074524.1.Ibc9c511db58caa8a1e4c56d7e7824d7690718aeb at changeid/ Simon Glass (3): 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 arch/x86/cpu/intel_common/fast_spi.c | 19 +++-- arch/x86/include/asm/fast_spi.h | 19 +++++ arch/x86/lib/spl.c | 4 +- drivers/spi/ich.c | 103 +++++++++++++++++++++++---- 4 files changed, 123 insertions(+), 22 deletions(-)