clk-cpumux.h 880 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (c) 2015 Linaro Ltd.
  3. * Author: Pi-Cheng Chen <pi-cheng.chen@linaro.org>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. */
  14. #ifndef __DRV_CLK_CPUMUX_H
  15. #define __DRV_CLK_CPUMUX_H
  16. struct mtk_clk_cpumux {
  17. struct clk_hw hw;
  18. struct regmap *regmap;
  19. u32 reg;
  20. u32 mask;
  21. u8 shift;
  22. };
  23. int mtk_clk_register_cpumuxes(struct device_node *node,
  24. const struct mtk_composite *clks, int num,
  25. struct clk_onecell_data *clk_data);
  26. #endif /* __DRV_CLK_CPUMUX_H */