summaryrefslogtreecommitdiffstats
path: root/src/soc/intel/common/block/include/intelblocks/cse.h
diff options
context:
space:
mode:
authorSubrata Banik <subrata.banik@intel.com>2021-09-30 16:59:09 +0530
committerSubrata Banik <subrata.banik@intel.com>2021-10-06 19:03:55 +0000
commit3710e9972bc9e35e8389bb3b47d443e3c5e01859 (patch)
tree11e30ea067b26718929d1c84f31b1fdd4ae9aeaa /src/soc/intel/common/block/include/intelblocks/cse.h
parentc6e2552ce6f97033f0da735e53407fd5663d2816 (diff)
downloadcoreboot-3710e9972bc9e35e8389bb3b47d443e3c5e01859.tar.gz
coreboot-3710e9972bc9e35e8389bb3b47d443e3c5e01859.tar.bz2
coreboot-3710e9972bc9e35e8389bb3b47d443e3c5e01859.zip
soc/intel/common: Helper function to check CSE device `devfn` status
This patch creates a helper function in cse common code block to check the status of any CSE `devfn`. Example: CSE, CSE_2, IDER, KT, CSE_3 and CSE_4. Currently cse common code is only able to read the device state of `PCH_DEVFN_CSE` CSE device alone. Additionally, print `slot` and 'func' number of CSE devices in case the device is either disable or hidden. BUG=b:200644229 TEST=Able to build and boot ADLRVP-P with this patch where the serial message listed the CSE devices that are disabled in the device tree as below: HECI: CSE device 16.01 is disabled HECI: CSE device 16.04 is disabled HECI: CSE device 16.05 is disabled Signed-off-by: Subrata Banik <subrata.banik@intel.com> Change-Id: I208b07e89e3aa9d682837380809fbff01ea225b0 Reviewed-on: https://review.coreboot.org/c/coreboot/+/58064 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/soc/intel/common/block/include/intelblocks/cse.h')
-rw-r--r--src/soc/intel/common/block/include/intelblocks/cse.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/soc/intel/common/block/include/intelblocks/cse.h b/src/soc/intel/common/block/include/intelblocks/cse.h
index 076f29465c3e..f162d485fde0 100644
--- a/src/soc/intel/common/block/include/intelblocks/cse.h
+++ b/src/soc/intel/common/block/include/intelblocks/cse.h
@@ -153,6 +153,12 @@ void heci_disable(void);
uint32_t me_read_config32(int offset);
/*
+ * Check if the CSE device as per function argument `devfn` is enabled in device tree
+ * and also visible on the PCI bus.
+ */
+bool is_cse_devfn_visible(unsigned int devfn);
+
+/*
* Check if the CSE device is enabled in device tree. Also check if the device
* is visible on the PCI bus by reading config space.
* Return true if device present and config space enabled, else return false.