soc/intel/common/lpss: Add function to check for a LPSS controller
commit141d90932396317074ea5c445d63e471f2907b7a
authorAamir Bohra <aamir.bohra@intel.com>
Mon, 8 Jul 2019 12:59:31 +0000 (8 18:29 +0530)
committerMartin Roth <martinroth@google.com>
Mon, 5 Aug 2019 22:42:42 +0000 (5 22:42 +0000)
treefcb4b44ac14424568c0c2909c638d87ebe6f3903
parent45ecc61c03c63aa66e56a814819061a248799387
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>
src/soc/intel/common/block/include/intelblocks/lpss.h
src/soc/intel/common/block/lpss/lpss.c