Add support for the Xilinx XADC core used in Zynq 7000.
References:- Zynq-7000 All Programmable SoC Technical Reference Manual- 7 Series FPGAs and Zynq-7000 All Programmable SoC XADC Dual 12-Bit 1 MSPS Analog-to-Digital Converter
Tested with Linux using QEMU machine xilinx-zynq-a9 with devicetree files zynq-zc702.dtb and zynq-zc706.dtb, and kernel configuration multi_v7_defconfig.
74fcbd2 hw/misc: Add support for ADC controller in Xilinx Zynq 7000
hw/arm/xilinx_zynq.c | 6 +
hw/misc/Makefile.objs | 1 +
hw/misc/zynq-xadc.c | 302 +++++++++++++++++++++++++++++++++++++++++++
include/hw/misc/zynq-xadc.h | 46 +++++++
4 files changed, 355 insertions(+)
Upstream: git.qemu.org