clk-krait.h 735 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. bool disable_sec_src_gating;
  16. struct clk_hw hw;
  17. struct notifier_block clk_nb;
  18. };
  19. #define to_krait_mux_clk(_hw) container_of(_hw, struct krait_mux_clk, hw)
  20. extern const struct clk_ops krait_mux_clk_ops;
  21. struct krait_div2_clk {
  22. u32 offset;
  23. u8 width;
  24. u32 shift;
  25. bool lpl;
  26. struct clk_hw hw;
  27. };
  28. #define to_krait_div2_clk(_hw) container_of(_hw, struct krait_div2_clk, hw)
  29. extern const struct clk_ops krait_div2_clk_ops;
  30. #endif