mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
Xilinx queue
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAABAgAGBQJaawAdAAoJECnFlngPa8qDvB4H/RkbG3qLNVyIj1LHQu9JA72p gyzs8hZ7wAzLH+JljqRYPmcHsNnkLRM6O1ukTqDKbE3+0arkp4/SmLtIuHjCiV1B QplONj39hVr578ZrgKQ1eIP0G285nWFeCUFC8aYFkLK6rJpYpKAu/FSFLrfel5SQ so4w4d/AZK9k9DkFO16d7wW+UXacyuN+mf1SVSSM0ckuu6aKOuvAf6rVEIHdp4AM BVI36wooFvaJZ4VCYEpm5XD5zAMRkkkhIOHzEQEiUhtLCOCg72JLD/GkhmjXoQU+ TuEyGTAGfoIrvQqcfewsCx/pcGWievdHeT4Qh4KqC9rMCPuYrz9HXmKxJNXw54c= =x4JI -----END PGP SIGNATURE----- Merge remote-tracking branch 'remotes/edgar/tags/edgar/xilinx-next-2018-01-26.for-upstream' into staging Xilinx queue # gpg: Signature made Fri 26 Jan 2018 10:17:01 GMT # gpg: using RSA key 0x29C596780F6BCA83 # gpg: Good signature from "Edgar E. Iglesias (Xilinx key) <edgar.iglesias@xilinx.com>" # gpg: aka "Edgar E. Iglesias <edgar.iglesias@gmail.com>" # Primary key fingerprint: AC44 FEDC 14F7 F1EB EDBF 4151 29C5 9678 0F6B CA83 * remotes/edgar/tags/edgar/xilinx-next-2018-01-26.for-upstream: xlnx-zynqmp: Connect the IPI device to the ZynqMP SoC xlnx-zynqmp-pmu: Connect the IPI device to the PMU xlnx-zynqmp-ipi: Initial version of the Xilinx IPI device xlnx-zynqmp-pmu: Connect the PMU interrupt controller xlnx-pmu-iomod-intc: Add the PMU Interrupt controller aarch64-softmmu.mak: Use an ARM specific config xlnx-zynqmp-pmu: Add the CPU and memory xlnx-zynqmp-pmu: Initial commit of the ZynqMP PMU microblaze: boot.c: Don't try to find NULL file Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
commit
e607bbee55
15 changed files with 1275 additions and 3 deletions
|
@ -28,6 +28,7 @@
|
|||
#include "hw/ssi/xilinx_spips.h"
|
||||
#include "hw/dma/xlnx_dpdma.h"
|
||||
#include "hw/display/xlnx_dp.h"
|
||||
#include "hw/intc/xlnx-zynqmp-ipi.h"
|
||||
|
||||
#define TYPE_XLNX_ZYNQMP "xlnx,zynqmp"
|
||||
#define XLNX_ZYNQMP(obj) OBJECT_CHECK(XlnxZynqMPState, (obj), \
|
||||
|
@ -90,6 +91,7 @@ typedef struct XlnxZynqMPState {
|
|||
XlnxZynqMPQSPIPS qspi;
|
||||
XlnxDPState dp;
|
||||
XlnxDPDMAState dpdma;
|
||||
XlnxZynqMPIPI ipi;
|
||||
|
||||
char *boot_cpu;
|
||||
ARMCPU *boot_cpu_ptr;
|
||||
|
|
58
include/hw/intc/xlnx-pmu-iomod-intc.h
Normal file
58
include/hw/intc/xlnx-pmu-iomod-intc.h
Normal file
|
@ -0,0 +1,58 @@
|
|||
/*
|
||||
* QEMU model of Xilinx I/O Module Interrupt Controller
|
||||
*
|
||||
* Copyright (c) 2014 Xilinx Inc.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef XLNX_PMU_IO_INTC_H
|
||||
#define XLNX_PMU_IO_INTC_H
|
||||
|
||||
#include "qemu/osdep.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "hw/register.h"
|
||||
|
||||
#define TYPE_XLNX_PMU_IO_INTC "xlnx.pmu_io_intc"
|
||||
|
||||
#define XLNX_PMU_IO_INTC(obj) \
|
||||
OBJECT_CHECK(XlnxPMUIOIntc, (obj), TYPE_XLNX_PMU_IO_INTC)
|
||||
|
||||
/* This is R_PIT3_CONTROL + 1 */
|
||||
#define XLNXPMUIOINTC_R_MAX (0x78 + 1)
|
||||
|
||||
typedef struct XlnxPMUIOIntc {
|
||||
SysBusDevice parent_obj;
|
||||
MemoryRegion iomem;
|
||||
|
||||
qemu_irq parent_irq;
|
||||
|
||||
struct {
|
||||
uint32_t intr_size;
|
||||
uint32_t level_edge;
|
||||
uint32_t positive;
|
||||
} cfg;
|
||||
|
||||
uint32_t irq_raw;
|
||||
|
||||
uint32_t regs[XLNXPMUIOINTC_R_MAX];
|
||||
RegisterInfo regs_info[XLNXPMUIOINTC_R_MAX];
|
||||
} XlnxPMUIOIntc;
|
||||
|
||||
#endif /* XLNX_PMU_IO_INTC_H */
|
57
include/hw/intc/xlnx-zynqmp-ipi.h
Normal file
57
include/hw/intc/xlnx-zynqmp-ipi.h
Normal file
|
@ -0,0 +1,57 @@
|
|||
/*
|
||||
* QEMU model of the IPI Inter Processor Interrupt block
|
||||
*
|
||||
* Copyright (c) 2014 Xilinx Inc.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef XLNX_ZYNQMP_IPI_H
|
||||
#define XLNX_ZYNQMP_IPI_H
|
||||
|
||||
#include "qemu/osdep.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "hw/register.h"
|
||||
|
||||
#define TYPE_XLNX_ZYNQMP_IPI "xlnx.zynqmp_ipi"
|
||||
|
||||
#define XLNX_ZYNQMP_IPI(obj) \
|
||||
OBJECT_CHECK(XlnxZynqMPIPI, (obj), TYPE_XLNX_ZYNQMP_IPI)
|
||||
|
||||
/* This is R_IPI_IDR + 1 */
|
||||
#define R_XLNX_ZYNQMP_IPI_MAX ((0x1c / 4) + 1)
|
||||
|
||||
#define NUM_IPIS 11
|
||||
|
||||
typedef struct XlnxZynqMPIPI {
|
||||
/* Private */
|
||||
SysBusDevice parent_obj;
|
||||
|
||||
/* Public */
|
||||
MemoryRegion iomem;
|
||||
qemu_irq irq;
|
||||
|
||||
qemu_irq irq_trig_out[NUM_IPIS];
|
||||
qemu_irq irq_obs_out[NUM_IPIS];
|
||||
|
||||
uint32_t regs[R_XLNX_ZYNQMP_IPI_MAX];
|
||||
RegisterInfo regs_info[R_XLNX_ZYNQMP_IPI_MAX];
|
||||
} XlnxZynqMPIPI;
|
||||
|
||||
#endif /* XLNX_ZYNQMP_IPI_H */
|
Loading…
Add table
Add a link
Reference in a new issue