mc_trustzone.h 609 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (C) 2018 Marvell International Ltd.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. * https://spdx.org/licenses
  6. */
  7. #ifndef MC_TRUSTZONE_H
  8. #define MC_TRUSTZONE_H
  9. #include <drivers/marvell/addr_map.h>
  10. #define MVEBU_TZ_MAX_WINS 16
  11. #define TZ_VALID (1 << 0)
  12. #define TZ_PERM(x) ((x) << 1)
  13. #define TZ_RZ_ENABLE (1 << 3)
  14. /* tz attr definitions */
  15. #define TZ_PERM_RW (TZ_PERM(0))
  16. #define TZ_PERM_RO (TZ_PERM(1))
  17. #define TZ_PERM_WO (TZ_PERM(2))
  18. #define TZ_PERM_ABORT (TZ_PERM(3))
  19. void tz_enable_win(int ap_index, const struct addr_map_win *win, int win_id);
  20. #endif /* MC_TRUSTZONE_H */