blob: 5db4488a05858d534501a0f75f6598bb4082ebbe [file] [log] [blame]
Paul Beesleyf3653a62019-05-22 11:22:44 +01001Xilinx Zynq UltraScale+ MPSoC
2=============================
Douglas Raillardd7c21b72017-06-28 15:23:03 +01003
Dan Handley610e7e12018-03-01 18:44:00 +00004Trusted Firmware-A (TF-A) implements the EL3 firmware layer for Xilinx Zynq
Douglas Raillardd7c21b72017-06-28 15:23:03 +01005UltraScale + MPSoC.
Dan Handley610e7e12018-03-01 18:44:00 +00006The platform only uses the runtime part of TF-A as ZynqMP already has a
Douglas Raillardd7c21b72017-06-28 15:23:03 +01007BootROM (BL1) and FSBL (BL2).
8
Dan Handley610e7e12018-03-01 18:44:00 +00009BL31 is TF-A.
Douglas Raillardd7c21b72017-06-28 15:23:03 +010010BL32 is an optional Secure Payload.
11BL33 is the non-secure world software (U-Boot, Linux etc).
12
13To build:
14
15.. code:: bash
16
Antonio Nino Diaz012c8bf2018-09-24 17:16:52 +010017 make CROSS_COMPILE=aarch64-none-elf- PLAT=zynqmp bl31
Douglas Raillardd7c21b72017-06-28 15:23:03 +010018
19To build bl32 TSP you have to rebuild bl31 too:
20
21.. code:: bash
22
Antonio Nino Diaz012c8bf2018-09-24 17:16:52 +010023 make CROSS_COMPILE=aarch64-none-elf- PLAT=zynqmp SPD=tspd bl31 bl32
Douglas Raillardd7c21b72017-06-28 15:23:03 +010024
25ZynqMP platform specific build options
Paul Beesleyf3653a62019-05-22 11:22:44 +010026--------------------------------------
Douglas Raillardd7c21b72017-06-28 15:23:03 +010027
28- ``ZYNQMP_ATF_MEM_BASE``: Specifies the base address of the bl31 binary.
29- ``ZYNQMP_ATF_MEM_SIZE``: Specifies the size of the memory region of the bl31 binary.
30- ``ZYNQMP_BL32_MEM_BASE``: Specifies the base address of the bl32 binary.
31- ``ZYNQMP_BL32_MEM_SIZE``: Specifies the size of the memory region of the bl32 binary.
32
33- ``ZYNQMP_CONSOLE``: Select the console driver. Options:
34
35 - ``cadence``, ``cadence0``: Cadence UART 0
36 - ``cadence1`` : Cadence UART 1
37
Dan Handley610e7e12018-03-01 18:44:00 +000038FSBL->TF-A Parameter Passing
Paul Beesleyf3653a62019-05-22 11:22:44 +010039----------------------------
Douglas Raillardd7c21b72017-06-28 15:23:03 +010040
Dan Handley610e7e12018-03-01 18:44:00 +000041The FSBL populates a data structure with image information for TF-A. TF-A uses
42that data to hand off to the loaded images. The address of the handoff data
Douglas Raillardd7c21b72017-06-28 15:23:03 +010043structure is passed in the ``PMU_GLOBAL.GLOBAL_GEN_STORAGE6`` register. The
Dan Handley610e7e12018-03-01 18:44:00 +000044register is free to be used by other software once TF-A has brought up
Douglas Raillardd7c21b72017-06-28 15:23:03 +010045further firmware images.
46
47Power Domain Tree
Paul Beesleyf3653a62019-05-22 11:22:44 +010048-----------------
Douglas Raillardd7c21b72017-06-28 15:23:03 +010049
Dan Handley610e7e12018-03-01 18:44:00 +000050The following power domain tree represents the power domain model used by TF-A
51for ZynqMP:
Douglas Raillardd7c21b72017-06-28 15:23:03 +010052
53::
54
55 +-+
56 |0|
57 +-+
58 +-------+---+---+-------+
59 | | | |
60 | | | |
61 v v v v
62 +-+ +-+ +-+ +-+
63 |0| |1| |2| |3|
64 +-+ +-+ +-+ +-+
65
66The 4 leaf power domains represent the individual A53 cores, while resources
67common to the cluster are grouped in the power domain on the top.