[PATCH v2 1/4] x86: spi: Add a way to access the SPI mapping via registers
Bin Meng
bmeng.cn at gmail.com
Thu May 28 09:44:33 CEST 2020
On Thu, May 28, 2020 at 3:36 PM Bin Meng <bmeng.cn at gmail.com> wrote:
>
> On Wed, May 27, 2020 at 8:58 PM Simon Glass <sjg at 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 at 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 at gmail.com>
applied to u-boot-x86, thanks!
More information about the U-Boot
mailing list