summaryrefslogtreecommitdiffstats
path: root/hw/net
diff options
context:
space:
mode:
authorPavel Pisa2020-09-14 10:13:42 +0200
committerPaolo Bonzini2020-09-30 19:11:37 +0200
commit37aeb7a28ddbf52dd25dd53ae1b8391bc2287858 (patch)
tree6eeb0b7f0bde4c8a0f8e1115b990530c5c62e9fe /hw/net
parenthw/net/can: Documentation for CTU CAN FD IP open hardware core emulation. (diff)
downloadqemu-37aeb7a28ddbf52dd25dd53ae1b8391bc2287858.tar.gz
qemu-37aeb7a28ddbf52dd25dd53ae1b8391bc2287858.tar.xz
qemu-37aeb7a28ddbf52dd25dd53ae1b8391bc2287858.zip
hw/net/can: Correct Kconfig dependencies
The original CAN_PCI config option enables multiple SJA1000 PCI boards emulation build. These boards bridge SJA1000 into I/O or memory address space of the host CPU and depend on SJA1000 emulation. Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz> Message-Id: <dd332de687bfe52bbec37f5de1d861fb8e620d74.1600069689.git.pisa@cmp.felk.cvut.cz> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/net')
-rw-r--r--hw/net/Kconfig7
1 files changed, 3 insertions, 4 deletions
diff --git a/hw/net/Kconfig b/hw/net/Kconfig
index 225d948841..6d795ec752 100644
--- a/hw/net/Kconfig
+++ b/hw/net/Kconfig
@@ -132,16 +132,15 @@ config ROCKER
config CAN_BUS
bool
-config CAN_PCI
+config CAN_SJA1000
bool
default y if PCI_DEVICES
- depends on PCI
select CAN_BUS
-config CAN_SJA1000
+config CAN_PCI
bool
default y if PCI_DEVICES
- depends on PCI
+ depends on PCI && CAN_SJA1000
select CAN_BUS
config CAN_CTUCANFD