3521e260e3
The feature is used to enable PCI MMIO accesses behind PCIe links (or bridges) before PCI enumeration has been completed. Add the feature for bootblock, verstage and postcar, it is required with add-on PCIe serial cards for early console output. It's up to the board specific code to configure PCIe root port prior to calling console_init() for this to work. Remove feature from ramstage, it bypasses any resource allocations and bus number assignments. For the moment PCI configuration support before ramstage is available only on ARCH_X86. Also switch from device_t to pci_devfn_t. Change-Id: I08acec68b6f17f4d73d30039cc41274492ea4f45 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/30496 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
49 lines
1.6 KiB
Makefile
49 lines
1.6 KiB
Makefile
ramstage-y += device.c
|
|
ramstage-y += root_device.c
|
|
ramstage-y += cpu_device.c
|
|
ramstage-y += device_util.c
|
|
ramstage-$(CONFIG_PCI) += pci_class.c
|
|
ramstage-$(CONFIG_PCI) += pci_device.c
|
|
ramstage-$(CONFIG_HYPERTRANSPORT_PLUGIN_SUPPORT) += hypertransport.c
|
|
ramstage-$(CONFIG_PCIX_PLUGIN_SUPPORT) += pcix_device.c
|
|
ramstage-$(CONFIG_PCIEXP_PLUGIN_SUPPORT) += pciexp_device.c
|
|
ramstage-$(CONFIG_CARDBUS_PLUGIN_SUPPORT) += cardbus_device.c
|
|
ramstage-$(CONFIG_AZALIA_PLUGIN_SUPPORT) += azalia_device.c
|
|
ramstage-$(CONFIG_ARCH_RAMSTAGE_X86_32) += pnp_device.c
|
|
ramstage-$(CONFIG_ARCH_RAMSTAGE_X86_64) += pnp_device.c
|
|
ramstage-$(CONFIG_PCI) += pci_ops.c
|
|
ramstage-$(CONFIG_MMCONF_SUPPORT) += pci_ops_mmconf.c
|
|
ramstage-$(CONFIG_PCI) += pci_early.c
|
|
ramstage-$(CONFIG_PCI) += pci_rom.c
|
|
ramstage-y += smbus_ops.c
|
|
|
|
ifeq ($(CONFIG_AZALIA_PLUGIN_SUPPORT),y)
|
|
ramstage-srcs += src/mainboard/$(MAINBOARDDIR)/hda_verb.c
|
|
endif
|
|
|
|
bootblock-y += device_const.c
|
|
postcar-y += device_const.c
|
|
smm-y += device_const.c
|
|
verstage-y += device_const.c
|
|
romstage-y += device_const.c
|
|
ramstage-y += device_const.c
|
|
|
|
ifeq ($(CONFIG_ARCH_X86),y)
|
|
bootblock-$(CONFIG_PCI) += pci_early.c
|
|
verstage-$(CONFIG_PCI) += pci_early.c
|
|
romstage-$(CONFIG_PCI) += pci_early.c
|
|
postcar-$(CONFIG_PCI) += pci_early.c
|
|
endif
|
|
|
|
subdirs-y += oprom dram
|
|
|
|
bootblock-$(CONFIG_SOFTWARE_I2C) += software_i2c.c
|
|
verstage-$(CONFIG_SOFTWARE_I2C) += software_i2c.c
|
|
romstage-$(CONFIG_SOFTWARE_I2C) += software_i2c.c
|
|
ramstage-$(CONFIG_SOFTWARE_I2C) += software_i2c.c
|
|
|
|
bootblock-y += i2c.c
|
|
verstage-y += i2c.c
|
|
romstage-y += i2c.c
|
|
ramstage-y += i2c.c
|
|
ramstage-y += i2c_bus.c
|