mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
xlnx-versal: Connect Xilinx VERSAL CANFD controllers
Connect CANFD0 and CANFD1 on the Versal-virt machine and update xlnx-versal-virt document with CANFD command line examples. Signed-off-by: Vikram Garhwal <vikram.garhwal@amd.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Francisco Iglesias <frasse.iglesias@gmail.com> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
32dbebcc7e
commit
042d6b0255
4 changed files with 133 additions and 0 deletions
|
@ -31,6 +31,7 @@
|
|||
#include "hw/dma/xlnx_csu_dma.h"
|
||||
#include "hw/misc/xlnx-versal-crl.h"
|
||||
#include "hw/misc/xlnx-versal-pmc-iou-slcr.h"
|
||||
#include "hw/net/xlnx-versal-canfd.h"
|
||||
|
||||
#define TYPE_XLNX_VERSAL "xlnx-versal"
|
||||
OBJECT_DECLARE_SIMPLE_TYPE(Versal, XLNX_VERSAL)
|
||||
|
@ -43,6 +44,8 @@ OBJECT_DECLARE_SIMPLE_TYPE(Versal, XLNX_VERSAL)
|
|||
#define XLNX_VERSAL_NR_SDS 2
|
||||
#define XLNX_VERSAL_NR_XRAM 4
|
||||
#define XLNX_VERSAL_NR_IRQS 192
|
||||
#define XLNX_VERSAL_NR_CANFD 2
|
||||
#define XLNX_VERSAL_CANFD_REF_CLK (24 * 1000 * 1000)
|
||||
|
||||
struct Versal {
|
||||
/*< private >*/
|
||||
|
@ -73,6 +76,8 @@ struct Versal {
|
|||
CadenceGEMState gem[XLNX_VERSAL_NR_GEMS];
|
||||
XlnxZDMA adma[XLNX_VERSAL_NR_ADMAS];
|
||||
VersalUsb2 usb;
|
||||
CanBusState *canbus[XLNX_VERSAL_NR_CANFD];
|
||||
XlnxVersalCANFDState canfd[XLNX_VERSAL_NR_CANFD];
|
||||
} iou;
|
||||
|
||||
/* Real-time Processing Unit. */
|
||||
|
@ -133,6 +138,8 @@ struct Versal {
|
|||
#define VERSAL_CRL_IRQ 10
|
||||
#define VERSAL_UART0_IRQ_0 18
|
||||
#define VERSAL_UART1_IRQ_0 19
|
||||
#define VERSAL_CANFD0_IRQ_0 20
|
||||
#define VERSAL_CANFD1_IRQ_0 21
|
||||
#define VERSAL_USB0_IRQ_0 22
|
||||
#define VERSAL_GEM0_IRQ_0 56
|
||||
#define VERSAL_GEM0_WAKE_IRQ_0 57
|
||||
|
@ -163,6 +170,11 @@ struct Versal {
|
|||
#define MM_UART1 0xff010000U
|
||||
#define MM_UART1_SIZE 0x10000
|
||||
|
||||
#define MM_CANFD0 0xff060000U
|
||||
#define MM_CANFD0_SIZE 0x10000
|
||||
#define MM_CANFD1 0xff070000U
|
||||
#define MM_CANFD1_SIZE 0x10000
|
||||
|
||||
#define MM_GEM0 0xff0c0000U
|
||||
#define MM_GEM0_SIZE 0x10000
|
||||
#define MM_GEM1 0xff0d0000U
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue