xref: /rk3399_ARM-atf/docs/plat/xilinx-versal.rst (revision 24dba2b39f880e156965237dc49a253aa196585a)
1*24dba2b3SPaul BeesleyXilinx Versal
2*24dba2b3SPaul Beesley=============
3*24dba2b3SPaul Beesley
4*24dba2b3SPaul BeesleyTrusted Firmware-A implements the EL3 firmware layer for Xilinx Versal.
5*24dba2b3SPaul BeesleyThe platform only uses the runtime part of TF-A as Xilinx Versal already has a
6*24dba2b3SPaul BeesleyBootROM (BL1) and PMC FW (BL2).
7*24dba2b3SPaul Beesley
8*24dba2b3SPaul BeesleyBL31 is TF-A.
9*24dba2b3SPaul BeesleyBL32 is an optional Secure Payload.
10*24dba2b3SPaul BeesleyBL33 is the non-secure world software (U-Boot, Linux etc).
11*24dba2b3SPaul Beesley
12*24dba2b3SPaul BeesleyTo build:
13*24dba2b3SPaul Beesley```bash
14*24dba2b3SPaul Beesleymake RESET_TO_BL31=1 CROSS_COMPILE=aarch64-none-elf- PLAT=versal bl31
15*24dba2b3SPaul Beesley```
16*24dba2b3SPaul Beesley
17*24dba2b3SPaul BeesleyTo build ATF for different platform (for now its just versal virtual "versal_virt")
18*24dba2b3SPaul Beesley```bash
19*24dba2b3SPaul Beesleymake RESET_TO_BL31=1 CROSS_COMPILE=aarch64-none-elf- PLAT=versal VERSAL_PLATFORM=versal_virt bl31
20*24dba2b3SPaul Beesley```
21*24dba2b3SPaul Beesley
22*24dba2b3SPaul BeesleyXilinx Versal platform specific build options
23*24dba2b3SPaul Beesley---------------------------------------------
24*24dba2b3SPaul Beesley
25*24dba2b3SPaul Beesley*   `VERSAL_ATF_MEM_BASE`: Specifies the base address of the bl31 binary.
26*24dba2b3SPaul Beesley*   `VERSAL_ATF_MEM_SIZE`: Specifies the size of the memory region of the bl31 binary.
27*24dba2b3SPaul Beesley*   `VERSAL_BL32_MEM_BASE`: Specifies the base address of the bl32 binary.
28*24dba2b3SPaul Beesley*   `VERSAL_BL32_MEM_SIZE`: Specifies the size of the memory region of the bl32 binary.
29*24dba2b3SPaul Beesley
30*24dba2b3SPaul Beesley*   `VERSAL_CONSOLE`: Select the console driver. Options:
31*24dba2b3SPaul Beesley    -   `pl011`, `pl011_0`: ARM pl011 UART 0
32*24dba2b3SPaul Beesley    -   `pl011_1`         : ARM pl011 UART 1
33*24dba2b3SPaul Beesley
34*24dba2b3SPaul Beesley*   `VERSAL_PLATFORM`: Select the platform. Options:
35*24dba2b3SPaul Beesley    -   `versal_virt`	: Versal Virtual platform
36