imx_csu.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef IMX_CSU_H
  7. #define IMX_CSU_H
  8. #include <arch.h>
  9. /*
  10. * Security Reference Manual for i.MX 7Dual and 7Solo Applications Processors,
  11. * Rev. 0, 03/2017 Section 3.3.1
  12. *
  13. * Config secure level register (CSU_CSLn)
  14. */
  15. #define CSU_CSL_LOCK_S1 BIT(24)
  16. #define CSU_CSL_NSW_S1 BIT(23)
  17. #define CSU_CSL_NUW_S1 BIT(22)
  18. #define CSU_CSL_SSW_S1 BIT(21)
  19. #define CSU_CSL_SUW_S1 BIT(20)
  20. #define CSU_CSL_NSR_S1 BIT(19)
  21. #define CSU_CSL_NUR_S1 BIT(18)
  22. #define CSU_CSL_SSR_S1 BIT(17)
  23. #define CSU_CSL_SUR_S1 BIT(16)
  24. #define CSU_CSL_LOCK_S2 BIT(8)
  25. #define CSU_CSL_NSW_S2 BIT(7)
  26. #define CSU_CSL_NUW_S2 BIT(6)
  27. #define CSU_CSL_SSW_S2 BIT(5)
  28. #define CSU_CSL_SUW_S2 BIT(4)
  29. #define CSU_CSL_NSR_S2 BIT(3)
  30. #define CSU_CSL_NUR_S2 BIT(2)
  31. #define CSU_CSL_SSR_S2 BIT(1)
  32. #define CSU_CSL_SUR_S2 BIT(0)
  33. #define CSU_CSL_OPEN_ACCESS (CSU_CSL_NSW_S1 | CSU_CSL_NUW_S1 | CSU_CSL_SSW_S1 |\
  34. CSU_CSL_SUW_S1 | CSU_CSL_NSR_S1 | CSU_CSL_NUR_S1 |\
  35. CSU_CSL_SSR_S1 | CSU_CSL_SUR_S1 | CSU_CSL_NSW_S2 |\
  36. CSU_CSL_NUW_S2 | CSU_CSL_SSW_S2 | CSU_CSL_SUW_S2 |\
  37. CSU_CSL_NSR_S2 | CSU_CSL_NUR_S2 | CSU_CSL_SSR_S2 |\
  38. CSU_CSL_SUR_S2)
  39. void imx_csu_init(void);
  40. #endif /* IMX_CSU_H */