hw/gpio/meson: Introduce dedicated config switch for hw/gpio/mpc8xxx
authorBernhard Beschow <shentey@gmail.com>
Mon, 3 Oct 2022 20:31:31 +0000 (22:31 +0200)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Mon, 17 Oct 2022 19:15:09 +0000 (16:15 -0300)
Having a dedicated config switch makes dependency handling cleaner.

Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20221003203142.24355-3-shentey@gmail.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
hw/gpio/Kconfig
hw/gpio/meson.build
hw/ppc/Kconfig

index f0e7405f6e64eb497065d3ae912336364cc2b7ea..d2cf3accc880b54c8bb474f7229a3a41a368232c 100644 (file)
@@ -8,6 +8,9 @@ config PL061
 config GPIO_KEY
     bool
 
+config GPIO_MPC8XXX
+    bool
+
 config GPIO_PWR
     bool
 
index 7bd6a57264bc0ff064f1d8d8983a2f23fa875179..b726e6d27a413bb529e9402e8262a4116717ea90 100644 (file)
@@ -1,5 +1,5 @@
-softmmu_ss.add(when: 'CONFIG_E500', if_true: files('mpc8xxx.c'))
 softmmu_ss.add(when: 'CONFIG_GPIO_KEY', if_true: files('gpio_key.c'))
+softmmu_ss.add(when: 'CONFIG_GPIO_MPC8XXX', if_true: files('mpc8xxx.c'))
 softmmu_ss.add(when: 'CONFIG_GPIO_PWR', if_true: files('gpio_pwr.c'))
 softmmu_ss.add(when: 'CONFIG_MAX7310', if_true: files('max7310.c'))
 softmmu_ss.add(when: 'CONFIG_PL061', if_true: files('pl061.c'))
index 22a64745d4fb8712ad9b7584c37e3cb56bc7395e..791fe78a5069c584c1024fcfff166b048bdf39b9 100644 (file)
@@ -124,6 +124,7 @@ config E500
     imply AT24C
     imply VIRTIO_PCI
     select ETSEC
+    select GPIO_MPC8XXX
     select OPENPIC
     select PLATFORM_BUS
     select PPCE500_PCI