clk-max-gen.h 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * clk-max-gen.h - Generic clock driver for Maxim PMICs clocks
  3. *
  4. * Copyright (C) 2014 Google, Inc
  5. *
  6. * This program is free software; you can redistribute it and/or modify it
  7. * under the terms of the GNU General Public License as published by the
  8. * Free Software Foundation; either version 2 of the License, or (at your
  9. * option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. */
  17. #ifndef __CLK_MAX_GEN_H__
  18. #define __CLK_MAX_GEN_H__
  19. #include <linux/types.h>
  20. #include <linux/device.h>
  21. #include <linux/clkdev.h>
  22. #include <linux/regmap.h>
  23. #include <linux/platform_device.h>
  24. int max_gen_clk_probe(struct platform_device *pdev, struct regmap *regmap,
  25. u32 reg, struct clk_init_data *clks_init, int num_init);
  26. int max_gen_clk_remove(struct platform_device *pdev, int num_init);
  27. extern struct clk_ops max_gen_clk_ops;
  28. #endif /* __CLK_MAX_GEN_H__ */