clk-regmap-divider.h 513 B

123456789101112131415161718192021222324
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2014, 2017, The Linux Foundation. All rights reserved.
  4. */
  5. #ifndef __QCOM_CLK_REGMAP_DIVIDER_H__
  6. #define __QCOM_CLK_REGMAP_DIVIDER_H__
  7. #include <linux/clk-provider.h>
  8. #include "clk-regmap.h"
  9. struct clk_regmap_div {
  10. u32 reg;
  11. u32 shift;
  12. u32 width;
  13. u32 flags;
  14. const struct clk_div_table *table;
  15. struct clk_regmap clkr;
  16. };
  17. extern const struct clk_ops clk_regmap_div_ops;
  18. extern const struct clk_ops clk_regmap_div_ro_ops;
  19. #endif