clk-krait.h 704 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __QCOM_CLK_KRAIT_H
  3. #define __QCOM_CLK_KRAIT_H
  4. #include <linux/clk-provider.h>
  5. struct krait_mux_clk {
  6. unsigned int *parent_map;
  7. u32 offset;
  8. u32 mask;
  9. u32 shift;
  10. u32 en_mask;
  11. bool lpl;
  12. u8 safe_sel;
  13. u8 old_index;
  14. bool reparent;
  15. struct clk_hw hw;
  16. struct notifier_block clk_nb;
  17. };
  18. #define to_krait_mux_clk(_hw) container_of(_hw, struct krait_mux_clk, hw)
  19. extern const struct clk_ops krait_mux_clk_ops;
  20. struct krait_div2_clk {
  21. u32 offset;
  22. u8 width;
  23. u32 shift;
  24. bool lpl;
  25. struct clk_hw hw;
  26. };
  27. #define to_krait_div2_clk(_hw) container_of(_hw, struct krait_div2_clk, hw)
  28. extern const struct clk_ops krait_div2_clk_ops;
  29. #endif