mt2701-afe-clock-ctrl.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * mt2701-afe-clock-ctrl.h -- Mediatek 2701 afe clock ctrl definition
  4. *
  5. * Copyright (c) 2016 MediaTek Inc.
  6. * Author: Garlic Tseng <[email protected]>
  7. * Ryder Lee <[email protected]>
  8. */
  9. #ifndef _MT2701_AFE_CLOCK_CTRL_H_
  10. #define _MT2701_AFE_CLOCK_CTRL_H_
  11. struct mtk_base_afe;
  12. struct mt2701_i2s_path;
  13. int mt2701_init_clock(struct mtk_base_afe *afe);
  14. int mt2701_afe_enable_clock(struct mtk_base_afe *afe);
  15. int mt2701_afe_disable_clock(struct mtk_base_afe *afe);
  16. int mt2701_afe_enable_i2s(struct mtk_base_afe *afe,
  17. struct mt2701_i2s_path *i2s_path,
  18. int dir);
  19. void mt2701_afe_disable_i2s(struct mtk_base_afe *afe,
  20. struct mt2701_i2s_path *i2s_path,
  21. int dir);
  22. int mt2701_afe_enable_mclk(struct mtk_base_afe *afe, int id);
  23. void mt2701_afe_disable_mclk(struct mtk_base_afe *afe, int id);
  24. int mt2701_enable_btmrg_clk(struct mtk_base_afe *afe);
  25. void mt2701_disable_btmrg_clk(struct mtk_base_afe *afe);
  26. int mt2701_mclk_configuration(struct mtk_base_afe *afe, int id);
  27. #endif