summaryrefslogtreecommitdiff
path: root/src/soc/intel
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2019-09-28 13:47:58 +0300
committerKyösti Mälkki <kyosti.malkki@gmail.com>2019-09-29 03:38:41 +0000
commit91f2f03759a0b558be52a98037beeeb2812c93ed (patch)
treeee5600af3f59dc02d19b62cc0bb7c8ea9692be52 /src/soc/intel
parent32d47eb688390d08e0f3f839df69371b55af8889 (diff)
downloadcoreboot-91f2f03759a0b558be52a98037beeeb2812c93ed.tar.xz
intel/fsp_baytrail: Drop unnecessary lookup for PCI 0:0.0
It is safe to assume this to be copy-paste from eg. i945 where registers of said PCI device were read. Change-Id: I387b7fd6caf317543a6438f973d9e1d96e418de3 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/35668 Reviewed-by: Furquan Shaikh <furquan@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/intel')
-rw-r--r--src/soc/intel/fsp_baytrail/northcluster.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/soc/intel/fsp_baytrail/northcluster.c b/src/soc/intel/fsp_baytrail/northcluster.c
index 416746d79e..797039a27e 100644
--- a/src/soc/intel/fsp_baytrail/northcluster.c
+++ b/src/soc/intel/fsp_baytrail/northcluster.c
@@ -87,15 +87,10 @@ uint32_t nc_read_top_of_low_memory(void)
static int get_pcie_bar(u32 *base)
{
- struct device *dev;
u32 pciexbar_reg;
*base = 0;
- dev = pcidev_on_root(0, 0);
- if (!dev)
- return 0;
-
pciexbar_reg = iosf_bunit_read(BUNIT_MMCONF_REG);
if (!(pciexbar_reg & (1 << 0)))