soc/intel/common: Enable decoding of the COMB range to LPC based on Kconfig
commitd83faceefa77e9a769a7e6de4ad5313d5afc422a
authorSubrata Banik <subrata.banik@intel.com>
Thu, 8 Mar 2018 08:34:52 +0000 (8 14:04 +0530)
committerMartin Roth <martinroth@google.com>
Fri, 9 Mar 2018 21:40:09 +0000 (9 21:40 +0000)
tree781336a2c4703b6e8c24910639ceb94685d88898
parent80edc84687e3babd5ce429c348eb5b55688dbad6
soc/intel/common: Enable decoding of the COMB range to LPC based on Kconfig

By default all Intel platform has enable IO decode range for COMA if
CONFIG_DRIVERS_UART_8250IO is selected.

With this patch, COMB will get enable based on
CONFIG_SOC_INTEL_COMMON_BLOCK_LPC_COMB_ENABLE Kconfig selection.

Also make lpc_enable_fixed_io_ranges() function returns Enabled I/O bits to avoid
an additional pci configuration read to get the same data.

Change-Id: I884dbcc8a37cf8551001d0ca61910c986b903ebc
Signed-off-by: Subrata Banik <subrata.banik@intel.com>
Reviewed-on: https://review.coreboot.org/25045
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Rizwan Qureshi <rizwan.qureshi@intel.com>
src/soc/intel/common/block/include/intelblocks/lpc_lib.h
src/soc/intel/common/block/lpc/Kconfig
src/soc/intel/common/block/lpc/lpc_lib.c