imx_aipstz.h 524 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (c) 2019, ARM Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef IMX_AIPSTZ_H
  7. #define IMX_AIPSTZ_H
  8. #include <lib/utils_def.h>
  9. #define AIPSTZ_MPR0 U(0x0)
  10. #define AIPSTZ_MPR1 U(0x4)
  11. #define AIPSTZ_OPACR_NUM U(0x5)
  12. #define OPACR_OFFSET(i) U((i) * 4 + 0x40)
  13. struct aipstz_cfg {
  14. uintptr_t base;
  15. uint32_t mpr0;
  16. uint32_t mpr1;
  17. uint32_t opacr[AIPSTZ_OPACR_NUM];
  18. };
  19. void imx_aipstz_init(const struct aipstz_cfg *aipstz_cfg);
  20. #endif /* IMX_AIPSTZ_H */