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>
This commit is contained in:
parent
32d47eb688
commit
91f2f03759
|
@ -87,15 +87,10 @@ uint32_t nc_read_top_of_low_memory(void)
|
||||||
|
|
||||||
static int get_pcie_bar(u32 *base)
|
static int get_pcie_bar(u32 *base)
|
||||||
{
|
{
|
||||||
struct device *dev;
|
|
||||||
u32 pciexbar_reg;
|
u32 pciexbar_reg;
|
||||||
|
|
||||||
*base = 0;
|
*base = 0;
|
||||||
|
|
||||||
dev = pcidev_on_root(0, 0);
|
|
||||||
if (!dev)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
pciexbar_reg = iosf_bunit_read(BUNIT_MMCONF_REG);
|
pciexbar_reg = iosf_bunit_read(BUNIT_MMCONF_REG);
|
||||||
|
|
||||||
if (!(pciexbar_reg & (1 << 0)))
|
if (!(pciexbar_reg & (1 << 0)))
|
||||||
|
|
Loading…
Reference in New Issue