smc.h 975 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (c) 2012 Samsung Electronics.
  4. *
  5. * EXYNOS - SMC Call
  6. */
  7. #ifndef __ASM_ARCH_EXYNOS_SMC_H
  8. #define __ASM_ARCH_EXYNOS_SMC_H
  9. #define SMC_CMD_INIT (-1)
  10. #define SMC_CMD_INFO (-2)
  11. /* For Power Management */
  12. #define SMC_CMD_SLEEP (-3)
  13. #define SMC_CMD_CPU1BOOT (-4)
  14. #define SMC_CMD_CPU0AFTR (-5)
  15. #define SMC_CMD_SAVE (-6)
  16. #define SMC_CMD_SHUTDOWN (-7)
  17. /* For CP15 Access */
  18. #define SMC_CMD_C15RESUME (-11)
  19. /* For L2 Cache Access */
  20. #define SMC_CMD_L2X0CTRL (-21)
  21. #define SMC_CMD_L2X0SETUP1 (-22)
  22. #define SMC_CMD_L2X0SETUP2 (-23)
  23. #define SMC_CMD_L2X0INVALL (-24)
  24. #define SMC_CMD_L2X0DEBUG (-25)
  25. #ifndef __ASSEMBLY__
  26. extern void exynos_smc(u32 cmd, u32 arg1, u32 arg2, u32 arg3);
  27. #endif /* __ASSEMBLY__ */
  28. /* op type for SMC_CMD_SAVE and SMC_CMD_SHUTDOWN */
  29. #define OP_TYPE_CORE 0x0
  30. #define OP_TYPE_CLUSTER 0x1
  31. /* Power State required for SMC_CMD_SAVE and SMC_CMD_SHUTDOWN */
  32. #define SMC_POWERSTATE_IDLE 0x1
  33. #endif