clk_interface.h 683 B

1234567891011121314151617181920
  1. #ifndef __ASM_POWERPC_CLK_INTERFACE_H
  2. #define __ASM_POWERPC_CLK_INTERFACE_H
  3. #include <linux/clk.h>
  4. struct clk_interface {
  5. struct clk* (*clk_get) (struct device *dev, const char *id);
  6. int (*clk_enable) (struct clk *clk);
  7. void (*clk_disable) (struct clk *clk);
  8. unsigned long (*clk_get_rate) (struct clk *clk);
  9. void (*clk_put) (struct clk *clk);
  10. long (*clk_round_rate) (struct clk *clk, unsigned long rate);
  11. int (*clk_set_rate) (struct clk *clk, unsigned long rate);
  12. int (*clk_set_parent) (struct clk *clk, struct clk *parent);
  13. struct clk* (*clk_get_parent) (struct clk *clk);
  14. };
  15. extern struct clk_interface clk_functions;
  16. #endif /* __ASM_POWERPC_CLK_INTERFACE_H */