tzpc.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) Copyright 2012 Samsung Electronics
  4. */
  5. #ifndef __TZPC_H_
  6. #define __TZPC_H_
  7. #ifndef __ASSEMBLY__
  8. struct exynos_tzpc {
  9. unsigned int r0size;
  10. char res1[0x7FC];
  11. unsigned int decprot0stat;
  12. unsigned int decprot0set;
  13. unsigned int decprot0clr;
  14. unsigned int decprot1stat;
  15. unsigned int decprot1set;
  16. unsigned int decprot1clr;
  17. unsigned int decprot2stat;
  18. unsigned int decprot2set;
  19. unsigned int decprot2clr;
  20. unsigned int decprot3stat;
  21. unsigned int decprot3set;
  22. unsigned int decprot3clr;
  23. char res2[0x7B0];
  24. unsigned int periphid0;
  25. unsigned int periphid1;
  26. unsigned int periphid2;
  27. unsigned int periphid3;
  28. unsigned int pcellid0;
  29. unsigned int pcellid1;
  30. unsigned int pcellid2;
  31. unsigned int pcellid3;
  32. };
  33. #define EXYNOS4_NR_TZPC_BANKS 6
  34. #define EXYNOS5_NR_TZPC_BANKS 10
  35. /* TZPC : Register Offsets */
  36. #define TZPC_BASE_OFFSET 0x10000
  37. /*
  38. * TZPC Register Value :
  39. * R0SIZE: 0x0 : Size of secured ram
  40. */
  41. #define R0SIZE 0x0
  42. /*
  43. * TZPC Decode Protection Register Value :
  44. * DECPROTXSET: 0xFF : Set Decode region to non-secure
  45. */
  46. #define DECPROTXSET 0xFF
  47. void tzpc_init(void);
  48. #endif
  49. #endif