clock34xx.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * OMAP3 clock function prototypes and macros
  3. *
  4. * Copyright (C) 2007-2009 Texas Instruments, Inc.
  5. * Copyright (C) 2007-2009 Nokia Corporation
  6. */
  7. #ifndef __ARCH_ARM_MACH_OMAP2_CLOCK_34XX_H
  8. #define __ARCH_ARM_MACH_OMAP2_CLOCK_34XX_H
  9. unsigned long omap3_dpll_recalc(struct clk *clk);
  10. unsigned long omap3_clkoutx2_recalc(struct clk *clk);
  11. void omap3_dpll_allow_idle(struct clk *clk);
  12. void omap3_dpll_deny_idle(struct clk *clk);
  13. u32 omap3_dpll_autoidle_read(struct clk *clk);
  14. int omap3_noncore_dpll_set_rate(struct clk *clk, unsigned long rate);
  15. int omap3_dpll4_set_rate(struct clk *clk, unsigned long rate);
  16. int omap3_core_dpll_m2_set_rate(struct clk *clk, unsigned long rate);
  17. void omap3_clk_lock_dpll5(void);
  18. /* CM_CLKEN_PLL*.EN* bit values - not all are available for every DPLL */
  19. #define DPLL_LOW_POWER_STOP 0x1
  20. #define DPLL_LOW_POWER_BYPASS 0x5
  21. #define DPLL_LOCKED 0x7
  22. extern struct clk *sdrc_ick_p;
  23. extern struct clk *arm_fck_p;
  24. /* OMAP34xx-specific clkops */
  25. extern const struct clkops clkops_omap3430es2_ssi_wait;
  26. extern const struct clkops clkops_omap3430es2_hsotgusb_wait;
  27. extern const struct clkops clkops_omap3430es2_dss_usbhost_wait;
  28. extern const struct clkops clkops_noncore_dpll_ops;
  29. #endif