tzpc.h 1.1 KB

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