aboutsummaryrefslogtreecommitdiff
path: root/drivers/spi
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-05-27 06:58:46 -0600
committerBin Meng <bmeng.cn@gmail.com>2020-06-02 09:16:13 +0800
commit8e2922e357fe0157593063d46f8e9bd2c25a00e0 (patch)
treea78b84536befe740edd09f48417996a74d99d6b8 /drivers/spi
parent9452b7496f8b85ca3bdda1014495df1a6235a8de (diff)
downloadu-boot-8e2922e357fe0157593063d46f8e9bd2c25a00e0.zip
u-boot-8e2922e357fe0157593063d46f8e9bd2c25a00e0.tar.gz
u-boot-8e2922e357fe0157593063d46f8e9bd2c25a00e0.tar.bz2
x86: spi: Add a way to access the SPI mapping via registers
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> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers/spi')
0 files changed, 0 insertions, 0 deletions