clock2xxx.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * OMAP2 clock function prototypes and macros
  3. *
  4. * Copyright (C) 2005-2010 Texas Instruments, Inc.
  5. * Copyright (C) 2004-2010 Nokia Corporation
  6. */
  7. #ifndef __ARCH_ARM_MACH_OMAP2_CLOCK2XXX_H
  8. #define __ARCH_ARM_MACH_OMAP2_CLOCK2XXX_H
  9. #include <linux/clk-provider.h>
  10. #include "clock.h"
  11. unsigned long omap2_table_mpu_recalc(struct clk_hw *clk,
  12. unsigned long parent_rate);
  13. int omap2_select_table_rate(struct clk_hw *hw, unsigned long rate,
  14. unsigned long parent_rate);
  15. long omap2_round_to_table_rate(struct clk_hw *hw, unsigned long rate,
  16. unsigned long *parent_rate);
  17. unsigned long omap2xxx_sys_clk_recalc(struct clk_hw *clk,
  18. unsigned long parent_rate);
  19. unsigned long omap2_osc_clk_recalc(struct clk_hw *clk,
  20. unsigned long parent_rate);
  21. void omap2xxx_clkt_dpllcore_init(struct clk_hw *hw);
  22. unsigned long omap2xxx_clk_get_core_rate(void);
  23. u32 omap2xxx_get_sysclkdiv(void);
  24. void omap2xxx_clk_prepare_for_reboot(void);
  25. void omap2xxx_clkt_vps_check_bootloader_rates(void);
  26. void omap2xxx_clkt_vps_late_init(void);
  27. #ifdef CONFIG_SOC_OMAP2420
  28. int omap2420_clk_init(void);
  29. #else
  30. #define omap2420_clk_init() do { } while(0)
  31. #endif
  32. #ifdef CONFIG_SOC_OMAP2430
  33. int omap2430_clk_init(void);
  34. #else
  35. #define omap2430_clk_init() do { } while(0)
  36. #endif
  37. extern struct clk_hw *dclk_hw;
  38. #endif