Paul Beesley | f3653a6 | 2019-05-22 11:22:44 +0100 | [diff] [blame] | 1 | Xilinx Zynq UltraScale+ MPSoC |
| 2 | ============================= |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 3 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 4 | Trusted Firmware-A (TF-A) implements the EL3 firmware layer for Xilinx Zynq |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 5 | UltraScale + MPSoC. |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 6 | The platform only uses the runtime part of TF-A as ZynqMP already has a |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 7 | BootROM (BL1) and FSBL (BL2). |
| 8 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 9 | BL31 is TF-A. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 10 | BL32 is an optional Secure Payload. |
| 11 | BL33 is the non-secure world software (U-Boot, Linux etc). |
| 12 | |
| 13 | To build: |
| 14 | |
| 15 | .. code:: bash |
| 16 | |
Antonio Nino Diaz | 012c8bf | 2018-09-24 17:16:52 +0100 | [diff] [blame] | 17 | make CROSS_COMPILE=aarch64-none-elf- PLAT=zynqmp bl31 |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 18 | |
| 19 | To build bl32 TSP you have to rebuild bl31 too: |
| 20 | |
| 21 | .. code:: bash |
| 22 | |
Antonio Nino Diaz | 012c8bf | 2018-09-24 17:16:52 +0100 | [diff] [blame] | 23 | make CROSS_COMPILE=aarch64-none-elf- PLAT=zynqmp SPD=tspd bl31 bl32 |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 24 | |
| 25 | ZynqMP platform specific build options |
Paul Beesley | f3653a6 | 2019-05-22 11:22:44 +0100 | [diff] [blame] | 26 | -------------------------------------- |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 27 | |
| 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 Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 38 | FSBL->TF-A Parameter Passing |
Paul Beesley | f3653a6 | 2019-05-22 11:22:44 +0100 | [diff] [blame] | 39 | ---------------------------- |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 40 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 41 | The FSBL populates a data structure with image information for TF-A. TF-A uses |
| 42 | that data to hand off to the loaded images. The address of the handoff data |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 43 | structure is passed in the ``PMU_GLOBAL.GLOBAL_GEN_STORAGE6`` register. The |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 44 | register is free to be used by other software once TF-A has brought up |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 45 | further firmware images. |
| 46 | |
| 47 | Power Domain Tree |
Paul Beesley | f3653a6 | 2019-05-22 11:22:44 +0100 | [diff] [blame] | 48 | ----------------- |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 49 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 50 | The following power domain tree represents the power domain model used by TF-A |
| 51 | for ZynqMP: |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 52 | |
| 53 | :: |
| 54 | |
| 55 | +-+ |
| 56 | |0| |
| 57 | +-+ |
| 58 | +-------+---+---+-------+ |
| 59 | | | | | |
| 60 | | | | | |
| 61 | v v v v |
| 62 | +-+ +-+ +-+ +-+ |
| 63 | |0| |1| |2| |3| |
| 64 | +-+ +-+ +-+ +-+ |
| 65 | |
| 66 | The 4 leaf power domains represent the individual A53 cores, while resources |
| 67 | common to the cluster are grouped in the power domain on the top. |