xilinx-zynqmp.rst 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. Xilinx Zynq UltraScale+ MPSoC
  2. =============================
  3. Trusted Firmware-A (TF-A) implements the EL3 firmware layer for Xilinx Zynq
  4. UltraScale + MPSoC.
  5. The platform only uses the runtime part of TF-A as ZynqMP already has a
  6. BootROM (BL1) and FSBL (BL2).
  7. BL31 is TF-A.
  8. BL32 is an optional Secure Payload.
  9. BL33 is the non-secure world software (U-Boot, Linux etc).
  10. To build:
  11. .. code:: bash
  12. make CROSS_COMPILE=aarch64-none-elf- PLAT=zynqmp RESET_TO_BL31=1 bl31
  13. To build bl32 TSP you have to rebuild bl31 too:
  14. .. code:: bash
  15. make CROSS_COMPILE=aarch64-none-elf- PLAT=zynqmp SPD=tspd RESET_TO_BL31=1 bl31 bl32
  16. To build TF-A for JTAG DCC console:
  17. .. code:: bash
  18. make CROSS_COMPILE=aarch64-none-elf- PLAT=zynqmp RESET_TO_BL31=1 bl31 ZYNQMP_CONSOLE=dcc
  19. ZynqMP platform specific build options
  20. --------------------------------------
  21. - ``ZYNQMP_ATF_MEM_BASE``: Specifies the base address of the bl31 binary.
  22. - ``ZYNQMP_ATF_MEM_SIZE``: Specifies the size of the memory region of the bl31 binary.
  23. - ``ZYNQMP_BL32_MEM_BASE``: Specifies the base address of the bl32 binary.
  24. - ``ZYNQMP_BL32_MEM_SIZE``: Specifies the size of the memory region of the bl32 binary.
  25. - ``ZYNQMP_CONSOLE``: Select the console driver. Options:
  26. - ``cadence``, ``cadence0``: Cadence UART 0
  27. - ``cadence1`` : Cadence UART 1
  28. FSBL->TF-A Parameter Passing
  29. ----------------------------
  30. The FSBL populates a data structure with image information for TF-A. TF-A uses
  31. that data to hand off to the loaded images. The address of the handoff data
  32. structure is passed in the ``PMU_GLOBAL.GLOBAL_GEN_STORAGE6`` register. The
  33. register is free to be used by other software once TF-A has brought up
  34. further firmware images.
  35. Power Domain Tree
  36. -----------------
  37. The following power domain tree represents the power domain model used by TF-A
  38. for ZynqMP:
  39. ::
  40. +-+
  41. |0|
  42. +-+
  43. +-------+---+---+-------+
  44. | | | |
  45. | | | |
  46. v v v v
  47. +-+ +-+ +-+ +-+
  48. |0| |1| |2| |3|
  49. +-+ +-+ +-+ +-+
  50. The 4 leaf power domains represent the individual A53 cores, while resources
  51. common to the cluster are grouped in the power domain on the top.