aboutsummaryrefslogtreecommitdiff
path: root/src/soc/amd/stoneyridge/chipset_cz.cb
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2022-10-13 16:32:23 +0200
committerFelix Held <felix-coreboot@felixheld.de>2022-10-14 15:35:25 +0000
commita11b472fd30aaf076c60627c6fd3cc795bda67c8 (patch)
tree3848af9f55f98d625ce7c1f01aa2c271fc4d3ff0 /src/soc/amd/stoneyridge/chipset_cz.cb
parent97a86734d2d148def0e4ac52447d534a42cab5d8 (diff)
soc/amd/stoneyridge: Hook up device_operations in chipset.cb
This removes the need for a lot of boilerplate code in the soc code to hook up device_operations to devices. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: Id668587e1b747c28207b213b985204b7a961a631 Reviewed-on: https://review.coreboot.org/c/coreboot/+/68410 Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/amd/stoneyridge/chipset_cz.cb')
-rw-r--r--src/soc/amd/stoneyridge/chipset_cz.cb10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/soc/amd/stoneyridge/chipset_cz.cb b/src/soc/amd/stoneyridge/chipset_cz.cb
index 22dc418922..f808f6d42b 100644
--- a/src/soc/amd/stoneyridge/chipset_cz.cb
+++ b/src/soc/amd/stoneyridge/chipset_cz.cb
@@ -2,8 +2,10 @@
chip soc/amd/stoneyridge
device cpu_cluster 0 on
+ ops stoneyridge_cpu_bus_ops
end
device domain 0 on
+ ops stoneyridge_pci_domain_ops
device pci 00.0 alias gnb on end
device pci 00.2 alias iommu off end
device pci 01.0 alias gfx off end # internal GPU
@@ -37,8 +39,8 @@ chip soc/amd/stoneyridge
device pci 18.5 alias ht_5 on end
end
- device mmio 0xfedc2000 alias i2c_0 off end
- device mmio 0xfedc3000 alias i2c_1 off end
- device mmio 0xfedc4000 alias i2c_2 off end
- device mmio 0xfedc5000 alias i2c_3 off end
+ device mmio 0xfedc2000 alias i2c_0 off ops soc_amd_i2c_mmio_ops end
+ device mmio 0xfedc3000 alias i2c_1 off ops soc_amd_i2c_mmio_ops end
+ device mmio 0xfedc4000 alias i2c_2 off ops soc_amd_i2c_mmio_ops end
+ device mmio 0xfedc5000 alias i2c_3 off ops soc_amd_i2c_mmio_ops end
end