mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-02-15 08:59:30 -07:00
hw/misc/xlnx-versal-cfu: Introduce a model of Xilinx Versal's CFU_SFR
Introduce a model of Xilinx Versal's Configuration Frame Unit's Single Frame Read port (CFU_SFR). Signed-off-by: Francisco Iglesias <francisco.iglesias@amd.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 20230831165701.2016397-5-francisco.iglesias@amd.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
ebfdc49428
commit
975dd496b5
2 changed files with 102 additions and 0 deletions
|
|
@ -28,6 +28,9 @@ OBJECT_DECLARE_SIMPLE_TYPE(XlnxVersalCFUAPB, XLNX_VERSAL_CFU_APB)
|
|||
#define TYPE_XLNX_VERSAL_CFU_FDRO "xlnx,versal-cfu-fdro"
|
||||
OBJECT_DECLARE_SIMPLE_TYPE(XlnxVersalCFUFDRO, XLNX_VERSAL_CFU_FDRO)
|
||||
|
||||
#define TYPE_XLNX_VERSAL_CFU_SFR "xlnx,versal-cfu-sfr"
|
||||
OBJECT_DECLARE_SIMPLE_TYPE(XlnxVersalCFUSFR, XLNX_VERSAL_CFU_SFR)
|
||||
|
||||
REG32(CFU_ISR, 0x0)
|
||||
FIELD(CFU_ISR, USR_GTS_EVENT, 9, 1)
|
||||
FIELD(CFU_ISR, USR_GSR_EVENT, 8, 1)
|
||||
|
|
@ -222,6 +225,18 @@ struct XlnxVersalCFUFDRO {
|
|||
Fifo32 fdro_data;
|
||||
};
|
||||
|
||||
struct XlnxVersalCFUSFR {
|
||||
SysBusDevice parent_obj;
|
||||
MemoryRegion iomem_sfr;
|
||||
|
||||
/* 128-bit wfifo. */
|
||||
uint32_t wfifo[WFIFO_SZ];
|
||||
|
||||
struct {
|
||||
XlnxVersalCFUAPB *cfu;
|
||||
} cfg;
|
||||
};
|
||||
|
||||
/**
|
||||
* This is a helper function for updating a CFI data write fifo, an array of 4
|
||||
* uint32_t and 128 bits of data that are allowed to be written through 4
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue