qcom_scm-64.c 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /* Copyright (c) 2015, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. */
  12. #include <linux/io.h>
  13. #include <linux/errno.h>
  14. #include <linux/qcom_scm.h>
  15. /**
  16. * qcom_scm_set_cold_boot_addr() - Set the cold boot address for cpus
  17. * @entry: Entry point function for the cpus
  18. * @cpus: The cpumask of cpus that will use the entry point
  19. *
  20. * Set the cold boot address of the cpus. Any cpu outside the supported
  21. * range would be removed from the cpu present mask.
  22. */
  23. int __qcom_scm_set_cold_boot_addr(void *entry, const cpumask_t *cpus)
  24. {
  25. return -ENOTSUPP;
  26. }
  27. /**
  28. * qcom_scm_set_warm_boot_addr() - Set the warm boot address for cpus
  29. * @entry: Entry point function for the cpus
  30. * @cpus: The cpumask of cpus that will use the entry point
  31. *
  32. * Set the Linux entry point for the SCM to transfer control to when coming
  33. * out of a power down. CPU power down may be executed on cpuidle or hotplug.
  34. */
  35. int __qcom_scm_set_warm_boot_addr(void *entry, const cpumask_t *cpus)
  36. {
  37. return -ENOTSUPP;
  38. }
  39. /**
  40. * qcom_scm_cpu_power_down() - Power down the cpu
  41. * @flags - Flags to flush cache
  42. *
  43. * This is an end point to power down cpu. If there was a pending interrupt,
  44. * the control would return from this function, otherwise, the cpu jumps to the
  45. * warm boot entry point set for this cpu upon reset.
  46. */
  47. void __qcom_scm_cpu_power_down(u32 flags)
  48. {
  49. }
  50. int __qcom_scm_is_call_available(u32 svc_id, u32 cmd_id)
  51. {
  52. return -ENOTSUPP;
  53. }
  54. int __qcom_scm_hdcp_req(struct qcom_scm_hdcp_req *req, u32 req_cnt, u32 *resp)
  55. {
  56. return -ENOTSUPP;
  57. }