
28 May
2020
28 May
'20
9:44 a.m.
On Thu, May 28, 2020 at 3:36 PM Bin Meng bmeng.cn@gmail.com wrote:
On Wed, May 27, 2020 at 8:58 PM Simon Glass sjg@chromium.org wrote:
At present the PCI BDF (bus/device/function) is needed to access the SPI mapping, since the registers are at BAR0. This doesn't work when PCI auto-config has not been done yet, since BARs are unassigned.
Add another way to find the mapping, using the MMIO base, if the caller knows this.
Also add a missing function comment.
Signed-off-by: Simon Glass sjg@chromium.org
Changes in v2: None
arch/x86/cpu/intel_common/fast_spi.c | 19 ++++++++++++++----- arch/x86/include/asm/fast_spi.h | 19 +++++++++++++++++++ 2 files changed, 33 insertions(+), 5 deletions(-)
Reviewed-by: Bin Meng bmeng.cn@gmail.com
applied to u-boot-x86, thanks!