aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/fast_spi.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2020-06-01 23:34:18 -0400
committerTom Rini <trini@konsulko.com>2020-06-01 23:34:18 -0400
commitecd4d99f654f3f7bfb96001891d69c3125e70b69 (patch)
tree405530bb85d5fdc97aadd6c65d9678d4ce3c54b6 /arch/x86/include/asm/fast_spi.h
parentb5d54d26ea1354fede1121671a7ca3b9b44b5b5c (diff)
parent95cfa1d46c61461bdadb195799a205b48b907a5e (diff)
Merge https://gitlab.denx.de/u-boot/custodians/u-boot-x86
- Corrected some FSP-M/FSP-S settings for Chromebook Coral - ICH SPI driver and mrccache fixes for obtaining the SPI memory map - Fixed various warnings generated by latest version IASL when compiling ACPI tables
Diffstat (limited to 'arch/x86/include/asm/fast_spi.h')
-rw-r--r--arch/x86/include/asm/fast_spi.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/x86/include/asm/fast_spi.h b/arch/x86/include/asm/fast_spi.h
index 47c1da80d7..7a81d4f05c 100644
--- a/arch/x86/include/asm/fast_spi.h
+++ b/arch/x86/include/asm/fast_spi.h
@@ -64,6 +64,25 @@ check_member(fast_spi_regs, ptdata, 0xd0);
int fast_spi_get_bios_mmap(pci_dev_t pdev, ulong *map_basep, uint *map_sizep,
uint *offsetp);
+/**
+ * fast_spi_get_bios_mmap_regs() - Get memory map for SPI flash given regs
+ *
+ * @regs: SPI registers to use
+ * @map_basep: Returns base memory address for mapped SPI
+ * @map_sizep: Returns size of mapped SPI
+ * @offsetp: Returns start offset of SPI flash where the map works
+ * correctly (offsets before this are not visible)
+ * @return 0 (always)
+ */
+int fast_spi_get_bios_mmap_regs(struct fast_spi_regs *regs, ulong *map_basep,
+ uint *map_sizep, uint *offsetp);
+
+/**
+ * fast_spi_early_init() - Set up a BAR to use SPI early in U-Boot
+ *
+ * @pdev: PCI device to use (this is the Fast SPI device)
+ * @mmio_base: MMIO base to use to access registers
+ */
int fast_spi_early_init(pci_dev_t pdev, ulong mmio_base);
#endif /* ASM_FAST_SPI_H */