hw/ppc/Kconfig: Restrict the MPC I2C controller to e500-based platforms
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Tue, 31 Dec 2019 18:32:08 +0000 (19:32 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 7 Jan 2020 11:08:39 +0000 (12:08 +0100)
Only the PowerPC e500-based platforms use the MPC I2C controller.
Do not build it for the other machines.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20191231183216.6781-7-philmd@redhat.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
default-configs/ppc-softmmu.mak
hw/ppc/Kconfig

index bf86128a0cf33fb61f237cdff71ec7076741c98a..61b78b844dd6049db6220a7d9f7a88c37558832d 100644 (file)
@@ -1,7 +1,6 @@
 # Default configuration for ppc-softmmu
 
 # For embedded PPCs:
-CONFIG_MPC_I2C=y
 CONFIG_DS1338=y
 CONFIG_E500=y
 CONFIG_PPC405=y
index f927ec9c74870f9132b1d4f63718154bea1b482f..0cd8d4053e4a767a6d9855956fe2c13c2f49b55b 100644 (file)
@@ -105,6 +105,7 @@ config E500
     select PLATFORM_BUS
     select PPCE500_PCI
     select SERIAL
+    select MPC_I2C
 
 config VIRTEX
     bool