tc_dpe.h 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * Copyright (c) 2024, Arm Limited. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef TC_DPE_H
  7. #define TC_DPE_H
  8. /*
  9. * The certificate structure on the TC platform:
  10. * - The arrows indicate the parent/child relationships (who loads who).
  11. * - The boxes indicate the certificates.
  12. *
  13. * AP FW Cert.
  14. * +--------------------------------+
  15. * | |
  16. * Plat Cert. | +->SPx | Hyper Cert.
  17. * +--------------------------+ | +->SP1 | +--------------------+
  18. * RoT Cert. | | | +->TOS_FW_CONF | | |
  19. * +------------+ | +->SCP_BL1 +-----+-----+-->FW_CONF +->AP_BL32 | | +->PVMFW |
  20. * | | | | | | | | | | | |
  21. * | RSE_BL1_2--+-----+-->RSE_BL2------->AP_BL1--+-----+------------->AP_BL2------------+-----+-->AP_BL33 |
  22. * | | | | | | | | | | | |
  23. * +------------+ | +->RSE_S +-----+-----+-->TB_FW_CONF +->AP_BL31 | | +->HYPERVISOR |
  24. * | +->RSE_NS | | +->SCP_BL2 | | |
  25. * | | | +->HW_CONF | | |
  26. * +--------------------------+ | +---------------+-----+-->NT_FW_CONF |
  27. * | | | |
  28. * +--------------------------------+ +--------------------+
  29. */
  30. #define DPE_AP_FW_CERT_ID 0x300 /* Includes: FW_CONF - SP1 */
  31. #define DPE_HYPERVISOR_CERT_ID 0x400 /* Includes: AP_BL33 - PVMFW */
  32. /* Common definition */
  33. #define DPE_CERT_ID_SAME_AS_PARENT 0xFFFFFFFF
  34. /*
  35. * Target Locality:
  36. * The goal is to specify that a certain component is expected to run and
  37. * thereby send DPE commands from a given security domain. RSE is capable of
  38. * of distinguishing the client's locality based on the MHU channel used for
  39. * communication.
  40. * Defines here must match with RSE side:
  41. */
  42. #define LOCALITY_NONE -1
  43. /* #define LOCALITY_RSE_S 0 */ /* Not applicable on AP side */
  44. /* #define LOCALITY_RSE_NS 1 */ /* Not applicable on AP side */
  45. #define LOCALITY_AP_S 2
  46. #define LOCALITY_AP_NS 3
  47. #endif /* TC_DPE_H */