s5p-clock.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* linux/arch/arm/plat-s5p/include/plat/s5p-clock.h
  2. *
  3. * Copyright 2009 Samsung Electronics Co., Ltd.
  4. * http://www.samsung.com/
  5. *
  6. * Header file for s5p clock support
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * published by the Free Software Foundation.
  11. */
  12. #ifndef __ASM_PLAT_S5P_CLOCK_H
  13. #define __ASM_PLAT_S5P_CLOCK_H __FILE__
  14. #include <linux/clk.h>
  15. #define GET_DIV(clk, field) ((((clk) & field##_MASK) >> field##_SHIFT) + 1)
  16. #define clk_fin_apll clk_ext_xtal_mux
  17. #define clk_fin_mpll clk_ext_xtal_mux
  18. #define clk_fin_epll clk_ext_xtal_mux
  19. #define clk_fin_vpll clk_ext_xtal_mux
  20. extern struct clk clk_ext_xtal_mux;
  21. extern struct clk clk_48m;
  22. extern struct clk clk_fout_apll;
  23. extern struct clk clk_fout_mpll;
  24. extern struct clk clk_fout_epll;
  25. extern struct clk clk_arm;
  26. extern struct clk clk_vpll;
  27. extern struct clksrc_sources clk_src_apll;
  28. extern struct clksrc_sources clk_src_mpll;
  29. extern struct clksrc_sources clk_src_epll;
  30. extern int s5p6440_clk48m_ctrl(struct clk *clk, int enable);
  31. extern int s5p_gatectrl(void __iomem *reg, struct clk *clk, int enable);
  32. #endif /* __ASM_PLAT_S5P_CLOCK_H */