commit | 6c7799be1ca05197e8cee922c1400e2c92c2ff7d | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Wed May 27 06:58:46 2020 -0600 |
committer | Bin Meng <bmeng.cn@gmail.com> | Tue Jun 02 09:16:13 2020 +0800 |
tree | a78b84536befe740edd09f48417996a74d99d6b8 | |
parent | 80c5aecef44c64ef5148645467bd071305d3ee58 [diff] |
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>