]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
adc: Move the zynq-xadc file to the adc directories
authorCorey Minyard <cminyard@mvista.com>
Tue, 18 May 2021 20:51:24 +0000 (15:51 -0500)
committerCorey Minyard <cminyard@mvista.com>
Thu, 17 Jun 2021 12:10:32 +0000 (07:10 -0500)
It's an ADC, put it where it belongs.

Cc: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Cc: Alistair Francis <alistair@alistair23.me>
Cc: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-arm@nongnu.org
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
MAINTAINERS
hw/adc/meson.build
hw/adc/zynq-xadc.c [moved from hw/misc/zynq-xadc.c with 99% similarity]
hw/arm/xilinx_zynq.c
hw/misc/meson.build
include/hw/adc/zynq-xadc.h [moved from include/hw/misc/zynq-xadc.h with 100% similarity]

index 636bf2f5365598f5ac7fdc5785e0c59605452453..455fdadfbb3e225c57fa7fbc52772628c5e1cd26 100644 (file)
@@ -923,8 +923,10 @@ L: qemu-arm@nongnu.org
 S: Maintained
 F: hw/*/xilinx_*
 F: hw/*/cadence_*
-F: hw/misc/zynq*
-F: include/hw/misc/zynq*
+F: hw/misc/zynq_slcr.c
+F: hw/adc/zynq-xadc.c
+F: include/hw/misc/zynq_slcr.h
+F: include/hw/adc/zynq-xadc.h
 X: hw/ssi/xilinx_*
 
 Xilinx ZynqMP and Versal
index 6ddee23813932eada506048b8d47fd6568f5dcae..3d397b4ea102d00c4492d159d0ee02ea0a62c98e 100644 (file)
@@ -1,2 +1,3 @@
 softmmu_ss.add(when: 'CONFIG_STM32F2XX_ADC', if_true: files('stm32f2xx_adc.c'))
 softmmu_ss.add(when: 'CONFIG_NPCM7XX', if_true: files('npcm7xx_adc.c'))
+softmmu_ss.add(when: 'CONFIG_ZYNQ', if_true: files('zynq-xadc.c'))
\ No newline at end of file
similarity index 99%
rename from hw/misc/zynq-xadc.c
rename to hw/adc/zynq-xadc.c
index 7b1972ce063c6ecf5dbb3752ef45d284d7192a9b..cfc7bab06515fb913a10b7628e292db899a88507 100644 (file)
@@ -15,7 +15,7 @@
 
 #include "qemu/osdep.h"
 #include "hw/irq.h"
-#include "hw/misc/zynq-xadc.h"
+#include "hw/adc/zynq-xadc.h"
 #include "migration/vmstate.h"
 #include "qemu/timer.h"
 #include "qemu/log.h"
index 81af32dc428220ee1e94bc553349771d428d3db0..245af81bbb7d0a8b6191045f57ba967b1b016660 100644 (file)
@@ -26,7 +26,7 @@
 #include "hw/boards.h"
 #include "hw/block/flash.h"
 #include "hw/loader.h"
-#include "hw/misc/zynq-xadc.h"
+#include "hw/adc/zynq-xadc.h"
 #include "hw/ssi/ssi.h"
 #include "hw/usb/chipidea.h"
 #include "qemu/error-report.h"
index 66e1648533e0cd4416be7b5b734ae902d85ac680..508fce50c7107da5a5c4f86ae0efc9d89c3fd3e6 100644 (file)
@@ -84,7 +84,7 @@ softmmu_ss.add(when: 'CONFIG_RASPI', if_true: files(
   'bcm2835_cprman.c',
 ))
 softmmu_ss.add(when: 'CONFIG_SLAVIO', if_true: files('slavio_misc.c'))
-softmmu_ss.add(when: 'CONFIG_ZYNQ', if_true: files('zynq_slcr.c', 'zynq-xadc.c'))
+softmmu_ss.add(when: 'CONFIG_ZYNQ', if_true: files('zynq_slcr.c'))
 softmmu_ss.add(when: 'CONFIG_XLNX_VERSAL', if_true: files('xlnx-versal-xramc.c'))
 softmmu_ss.add(when: 'CONFIG_STM32F2XX_SYSCFG', if_true: files('stm32f2xx_syscfg.c'))
 softmmu_ss.add(when: 'CONFIG_STM32F4XX_SYSCFG', if_true: files('stm32f4xx_syscfg.c'))