apusys_security_ctrl_plat.h 942 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Copyright (c) 2023, MediaTek Inc. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef APUSYS_SECURITY_CTRL_PLAT_H
  7. #define APUSYS_SECURITY_CTRL_PLAT_H
  8. #include <platform_def.h>
  9. #define SOC2APU_SET1_0 (APU_SEC_CON + 0x0c)
  10. #define SOC2APU_SET1_1 (APU_SEC_CON + 0x10)
  11. #define REG_DOMAIN_NUM (8)
  12. #define REG_DOMAIN_BITS (4)
  13. #define DOMAIN_REMAP_SEL BIT(6)
  14. #define D0_REMAP_DOMAIN (0)
  15. #define D1_REMAP_DOMAIN (1)
  16. #define D2_REMAP_DOMAIN (2)
  17. #define D3_REMAP_DOMAIN (3)
  18. #define D4_REMAP_DOMAIN (4)
  19. #define D5_REMAP_DOMAIN (14)
  20. #define D6_REMAP_DOMAIN (6)
  21. #define D7_REMAP_DOMAIN (14)
  22. #define D8_REMAP_DOMAIN (8)
  23. #define D9_REMAP_DOMAIN (9)
  24. #define D10_REMAP_DOMAIN (10)
  25. #define D11_REMAP_DOMAIN (11)
  26. #define D12_REMAP_DOMAIN (12)
  27. #define D13_REMAP_DOMAIN (13)
  28. #define D14_REMAP_DOMAIN (14)
  29. #define D15_REMAP_DOMAIN (15)
  30. void apusys_security_ctrl_init(void);
  31. #endif /* APUSYS_SECURITY_CTRL_PLAT_H */