exynos5422-asv.h 625 B

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (c) 2019 Samsung Electronics Co., Ltd.
  4. * http://www.samsung.com/
  5. *
  6. * Samsung Exynos 5422 SoC Adaptive Supply Voltage support
  7. */
  8. #ifndef __LINUX_SOC_EXYNOS5422_ASV_H
  9. #define __LINUX_SOC_EXYNOS5422_ASV_H
  10. #include <linux/errno.h>
  11. enum {
  12. EXYNOS_ASV_SUBSYS_ID_ARM,
  13. EXYNOS_ASV_SUBSYS_ID_KFC,
  14. EXYNOS_ASV_SUBSYS_ID_MAX
  15. };
  16. struct exynos_asv;
  17. #ifdef CONFIG_EXYNOS_ASV_ARM
  18. int exynos5422_asv_init(struct exynos_asv *asv);
  19. #else
  20. static inline int exynos5422_asv_init(struct exynos_asv *asv)
  21. {
  22. return -ENOTSUPP;
  23. }
  24. #endif
  25. #endif /* __LINUX_SOC_EXYNOS5422_ASV_H */