summaryrefslogtreecommitdiff
path: root/src/soc/intel/common/block/lpss
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2021-06-04 06:16:36 -0700
committerPatrick Georgi <pgeorgi@google.com>2021-06-07 11:35:08 +0000
commitb9b6f4d0132b0ae77a52261efbf0c2f5b6011d0d (patch)
treeac10c993cc7eac0de9f6d29e9dbc0278a8808249 /src/soc/intel/common/block/lpss
parentc6a3f3409609fdb81ed5c6ae39e722d12f178f27 (diff)
soc/intel: Drop unused lpss functions
This change drops the following unused lpss functions and related code: * soc_lpss_controllers_list * is_dev_lpss These functions were added to determine if a controller is LPSS for performing IRQ configuration. But, these never got used and hence are being dropped. Change-Id: I27bdfbca7c199e823a0e4fdb277e3f22fb6bae7a Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/55226 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/soc/intel/common/block/lpss')
-rw-r--r--src/soc/intel/common/block/lpss/lpss.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/soc/intel/common/block/lpss/lpss.c b/src/soc/intel/common/block/lpss/lpss.c
index 6e33c0f94f..70a593412c 100644
--- a/src/soc/intel/common/block/lpss/lpss.c
+++ b/src/soc/intel/common/block/lpss/lpss.c
@@ -72,21 +72,3 @@ void lpss_set_power_state(pci_devfn_t devfn, enum lpss_pwr_state state)
reg8 |= state;
pci_s_write_config8(devfn, PME_CTRL_STATUS, reg8);
}
-
-bool is_dev_lpss(const struct device *dev)
-{
- static size_t size;
- static const pci_devfn_t *lpss_devices;
-
- if (dev->path.type != DEVICE_PATH_PCI)
- return false;
-
- if (!lpss_devices)
- lpss_devices = soc_lpss_controllers_list(&size);
-
- for (int i = 0; i < size; i++) {
- if (lpss_devices[i] == dev->path.pci.devfn)
- return true;
- }
- return false;
-}