RTEMS 7.0-rc1
Loading...
Searching...
No Matches
xilinx_versal.h
Go to the documentation of this file.
1
7/*
8 * Copyright (C) 2025 Airbus Defence and Space
9 *
10 * Written by Remi Debord <remi.debord@airbus.com>
11 *
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions
14 * are met:
15 * 1. Redistributions of source code must retain the above copyright
16 * notice, this list of conditions and the following disclaimer.
17 * 2. Redistributions in binary form must reproduce the above copyright
18 * notice, this list of conditions and the following disclaimer in the
19 * documentation and/or other materials provided with the distribution.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
25 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31 * POSSIBILITY OF SUCH DAMAGE.
32 */
33
34#ifndef LIBBSP_SHARED_PERIPHERAL_MAPS_VERSAL
35#define LIBBSP_SHARED_PERIPHERAL_MAPS_VERSAL
36
37/* Data derived from https://docs.amd.com/r/en-US/am011-versal-acap-trm/4-GB-Processor-System-Address-Map */
38
39/* LPD IO Peripherals */
40#define VERSAL_UART0 (0xFF000000)
41#define VERSAL_UART1 (0xFF010000)
42#define VERSAL_I2C0 (0xFF020000)
43#define VERSAL_I2C1 (0xFF030000)
44#define VERSAL_SPI0 (0xFF040000)
45#define VERSAL_SPI1 (0xFF050000)
46#define VERSAL_CAN0 (0xFF060000)
47#define VERSAL_CAN1 (0xFF070000)
48#define VERSAL_GPIO (0xFF0B0000)
49#define VERSAL_GEM0 (0xFF0C0000)
50#define VERSAL_GEM1 (0xFF0D0000)
51
52/* LPD System Registers */
53#define VERSAL_IPI (0xFF300000)
54#define VERSAL_TTC0 (0xFF0E0000)
55#define VERSAL_TTC1 (0xFF0F0000)
56#define VERSAL_TTC2 (0xFF100000)
57#define VERSAL_TTC3 (0xFF110000)
58#define VERSAL_LPD_SWDT (0xFF120000)
59#define VERSAL_OCM_XMPU (0xFF980000)
60#define VERSAL_LPD_XPPU (0xFF990000)
61#define VERSAL_LPD_DMA_CH0 (0xFFA80000)
62#define VERSAL_LPD_DMA_CH1 (0xFFA90000)
63#define VERSAL_LPD_DMA_CH2 (0xFFAA0000)
64#define VERSAL_LPD_DMA_CH3 (0xFFAB0000)
65#define VERSAL_LPD_DMA_CH4 (0xFFAC0000)
66#define VERSAL_LPD_DMA_CH5 (0xFFAD0000)
67#define VERSAL_LPD_DMA_CH6 (0xFFAE0000)
68#define VERSAL_LPD_DMA_CH7 (0xFFAF0000)
69
70/* System Interrupt Table */
71
72/* SPIs */
73#define VERSAL_IRQ_UART_0 50
74#define VERSAL_IRQ_UART_1 51
75
76#define VERSAL_IRQ_TTC_0_0 69
77#define VERSAL_IRQ_TTC_0_1 70
78#define VERSAL_IRQ_TTC_0_2 71
79#define VERSAL_IRQ_TTC_1_0 72
80#define VERSAL_IRQ_TTC_1_1 73
81#define VERSAL_IRQ_TTC_1_2 74
82#define VERSAL_IRQ_TTC_2_0 75
83#define VERSAL_IRQ_TTC_2_1 76
84#define VERSAL_IRQ_TTC_2_2 77
85#define VERSAL_IRQ_TTC_3_0 78
86#define VERSAL_IRQ_TTC_3_1 79
87#define VERSAL_IRQ_TTC_3_2 80
88
89#endif /* LIBBSP_SHARED_PERIPHERAL_MAPS_VERSAL */