Angel Pons has submitted this change. ( https://review.coreboot.org/c/coreboot/+/83389?usp=email )
(
1 is the latest approved patch-set. No files were changed between the latest approved patch-set and the submitted one. )Change subject: nb/via/cx700: Scan PCI bus and probe resources ......................................................................
nb/via/cx700: Scan PCI bus and probe resources
Change-Id: I1268a8f886ff395ff822b14a5427a5031260c541 Signed-off-by: Nico Huber nico.h@gmx.de Reviewed-on: https://review.coreboot.org/c/coreboot/+/83389 Reviewed-by: Angel Pons th3fanbus@gmail.com Tested-by: build bot (Jenkins) no-reply@coreboot.org --- M src/northbridge/via/cx700/Makefile.mk M src/northbridge/via/cx700/chipset.cb A src/northbridge/via/cx700/northbridge.c 3 files changed, 11 insertions(+), 1 deletion(-)
Approvals: build bot (Jenkins): Verified Angel Pons: Looks good to me, approved
diff --git a/src/northbridge/via/cx700/Makefile.mk b/src/northbridge/via/cx700/Makefile.mk index 3b9608c..80fc6b9 100644 --- a/src/northbridge/via/cx700/Makefile.mk +++ b/src/northbridge/via/cx700/Makefile.mk @@ -7,7 +7,7 @@
bootblock-y += early_smbus.c bootblock.c romstage-y += early_smbus.c memmap.c romstage.c raminit.c -ramstage-y += memmap.c chip.c +ramstage-y += memmap.c chip.c northbridge.c all-y += clock.c reset.c
endif diff --git a/src/northbridge/via/cx700/chipset.cb b/src/northbridge/via/cx700/chipset.cb index 25c2f11..74fbcd7 100644 --- a/src/northbridge/via/cx700/chipset.cb +++ b/src/northbridge/via/cx700/chipset.cb @@ -1,6 +1,7 @@ chip northbridge/via/cx700
device domain 0 on + ops domain_ops
device pci 00.0 alias host_ctrl on end device pci 00.1 alias host_err on end diff --git a/src/northbridge/via/cx700/northbridge.c b/src/northbridge/via/cx700/northbridge.c new file mode 100644 index 0000000..d68e765 --- /dev/null +++ b/src/northbridge/via/cx700/northbridge.c @@ -0,0 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <device/device.h> + +struct device_operations domain_ops = { + .read_resources = pci_domain_read_resources, + .set_resources = pci_domain_set_resources, + .scan_bus = pci_host_bridge_scan_bus, +};