aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/mrccache.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/mrccache.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/mrccache.h')
-rw-r--r--arch/x86/include/asm/mrccache.h15
1 files changed, 4 insertions, 11 deletions
diff --git a/arch/x86/include/asm/mrccache.h b/arch/x86/include/asm/mrccache.h
index d6b7529073..b60d1171f7 100644
--- a/arch/x86/include/asm/mrccache.h
+++ b/arch/x86/include/asm/mrccache.h
@@ -66,19 +66,12 @@ int mrccache_reserve(void);
* mrccache_get_region() - get MRC region on the SPI flash
*
* This gets MRC region whose offset and size are described in the device tree
- * as a subnode to the SPI flash. If a non-NULL device pointer is supplied,
- * this also probes the SPI flash device and returns its device pointer for
- * the caller to use later.
- *
- * Be careful when calling this routine with a non-NULL device pointer:
- * - driver model initialization must be complete
- * - calling in the pre-relocation phase may bring some side effects during
- * the SPI flash device probe (eg: for SPI controllers on a PCI bus, it
- * triggers PCI bus enumeration during which insufficient memory issue
- * might be exposed and it causes subsequent SPI flash probe fails).
+ * as a subnode to the SPI flash. This tries to find the SPI flash device
+ * (without probing it), falling back to looking for the devicetree node if
+ * driver model is not inited or the SPI flash is not found.
*
* @type: Type of MRC data to use
- * @devp: Returns pointer to the SPI flash device
+ * @devp: Returns pointer to the SPI flash device, if found
* @entry: Position and size of MRC cache in SPI flash
* @return 0 if success, -ENOENT if SPI flash node does not exist in the
* device tree, -EPERM if MRC region subnode does not exist in the device