tzpc.h 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) Copyright 2015 Chen-Yu Tsai <wens@csie.org>
  4. */
  5. #ifndef _SUNXI_TZPC_H
  6. #define _SUNXI_TZPC_H
  7. #ifndef __ASSEMBLY__
  8. struct sunxi_tzpc {
  9. u32 r0size; /* 0x00 Size of secure RAM region */
  10. u32 decport0_status; /* 0x04 Status of decode protection port 0 */
  11. u32 decport0_set; /* 0x08 Set decode protection port 0 */
  12. u32 decport0_clear; /* 0x0c Clear decode protection port 0 */
  13. /* For A80 and later SoCs */
  14. u32 decport1_status; /* 0x10 Status of decode protection port 1 */
  15. u32 decport1_set; /* 0x14 Set decode protection port 1 */
  16. u32 decport1_clear; /* 0x18 Clear decode protection port 1 */
  17. u32 decport2_status; /* 0x1c Status of decode protection port 2 */
  18. u32 decport2_set; /* 0x20 Set decode protection port 2 */
  19. u32 decport2_clear; /* 0x24 Clear decode protection port 2 */
  20. };
  21. #endif
  22. #define SUN6I_TZPC_DECPORT0_RTC (1 << 1)
  23. #define SUN8I_H3_TZPC_DECPORT0_ALL 0xbe
  24. #define SUN8I_H3_TZPC_DECPORT1_ALL 0xff
  25. #define SUN8I_H3_TZPC_DECPORT2_ALL 0x7f
  26. void tzpc_init(void);
  27. #endif /* _SUNXI_TZPC_H */