aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/common/block/include/intelblocks/lpss.h
diff options
context:
space:
mode:
authorAamir Bohra <aamir.bohra@intel.com>2019-07-08 18:29:31 +0530
committerMartin Roth <martinroth@google.com>2019-08-05 22:42:42 +0000
commit141d90932396317074ea5c445d63e471f2907b7a (patch)
treefcb4b44ac14424568c0c2909c638d87ebe6f3903 /src/soc/intel/common/block/include/intelblocks/lpss.h
parent45ecc61c03c63aa66e56a814819061a248799387 (diff)
soc/intel/common/lpss: Add function to check for a LPSS controller
Add an API to check if device is a LPSS controller. This API can be used for IRQ assignments for LPSS PCI controllers, since the LPSS controllers have a requirement of unique IRQ assignments and do not share same IRQ# with other LPSS controllers. SOC code is reponsible to provide list of the LPSS controllers supported and needs to implement soc_lpss_controllers_list API, in case it needs to use this common implementation. Change-Id: I3f5bb268fc581280bb1b87b6b175a0299a24a44a Signed-off-by: Aamir Bohra <aamir.bohra@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34137 Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org> Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/intel/common/block/include/intelblocks/lpss.h')
-rw-r--r--src/soc/intel/common/block/include/intelblocks/lpss.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/soc/intel/common/block/include/intelblocks/lpss.h b/src/soc/intel/common/block/include/intelblocks/lpss.h
index dafe351f02..e80f3ddec5 100644
--- a/src/soc/intel/common/block/include/intelblocks/lpss.h
+++ b/src/soc/intel/common/block/include/intelblocks/lpss.h
@@ -40,4 +40,13 @@ bool lpss_is_controller_in_reset(uintptr_t base);
/* Set controller power state to D0 or D3*/
void lpss_set_power_state(const struct device *dev, enum lpss_pwr_state state);
+/*
+ * Handler to get list of LPSS controllers. The SOC is expected to send out a
+ * list of pci devfn for all LPSS controllers supported by the SOC.
+ */
+const pci_devfn_t *soc_lpss_controllers_list(size_t *size);
+
+/* Check if the device is a LPSS controller */
+bool is_dev_lpss(const struct device *dev);
+
#endif /* SOC_INTEL_COMMON_BLOCK_LPSS_H */