Skip to content

x86: Correct SPI memory-mapping query

Simon Glass u-boot 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 0 repliesNew
  2. v13 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Fix a 'BFF' typo
- Add new patch to allow use before driver model is active

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4x86: spi: Add a way to access the SPI mapping via registersarch/x86/cpu/intel_common/fast_spi.c arch/x86/include/asm/fast_spi.h+33 -52 replies
2/4x86: spi: Rewrite logic for obtaining the SPI memory mapdrivers/spi/ich.c+88 -152 replies
3/4x86: spl: Print the error on SPL failurearch/x86/lib/spl.c+2 -22 replies
4/4x86: mrccache: Allow use before driver model is activearch/x86/include/asm/mrccache.h arch/x86/lib/mrccache.c+29 -212 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchBin Meng
1/4R-b
2/4R-b T-b
3/4R-b
4/4R-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] x86: Correct SPI memory-mapping query

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.Ibc9c511db58caa8a1e4c56d7e7824d7690718aeb at changeid/

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(-)
Signature · 1 line
2.27.0.rc0.183.gde8f92d652-goog