digital-cdc-rsc-mgr.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2020, The Linux Foundation. All rights reserved.
  4. * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
  5. */
  6. #ifndef DIGITAL_CDC_RSC_MGR_H
  7. #define DIGITAL_CDC_RSC_MGR_H
  8. #include <linux/clk.h>
  9. #ifdef CONFIG_DIGITAL_CDC_RSC_MGR
  10. int digital_cdc_rsc_mgr_hw_vote_enable(struct clk *vote_handle, struct device *dev);
  11. void digital_cdc_rsc_mgr_hw_vote_disable(struct clk *vote_handle, struct device *dev);
  12. void digital_cdc_rsc_mgr_hw_vote_reset(struct clk *vote_handle);
  13. void digital_cdc_rsc_mgr_init(void);
  14. void digital_cdc_rsc_mgr_exit(void);
  15. #else
  16. static inline int digital_cdc_rsc_mgr_hw_vote_enable(struct clk *vote_handle, struct device *dev)
  17. {
  18. return 0;
  19. }
  20. static inline void digital_cdc_rsc_mgr_hw_vote_disable(struct clk *vote_handle, struct device *dev)
  21. {
  22. }
  23. static inline void digital_cdc_rsc_mgr_hw_vote_reset(struct clk *vote_handle)
  24. {
  25. }
  26. static inline void digital_cdc_rsc_mgr_init(void)
  27. {
  28. }
  29. static inline void digital_cdc_rsc_mgr_exit(void)
  30. {
  31. }
  32. #endif /* CONFIG_DIGITAL_CDC_RSC_MGR */
  33. #endif /* DIGITAL_CDC_RSC_MGR_H */