clock.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * linux/arch/arm/mach-s3c2410/clock.h
  3. *
  4. * Copyright (c) 2004-2005 Simtec Electronics
  5. * http://www.simtec.co.uk/products/SWLINUX/
  6. * Written by Ben Dooks, <ben@simtec.co.uk>
  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. struct clk {
  13. struct list_head list;
  14. struct module *owner;
  15. struct clk *parent;
  16. const char *name;
  17. int id;
  18. unsigned long rate;
  19. unsigned long ctrlbit;
  20. int (*enable)(struct clk *, int enable);
  21. };
  22. /* other clocks which may be registered by board support */
  23. extern struct clk s3c24xx_dclk0;
  24. extern struct clk s3c24xx_dclk1;
  25. extern struct clk s3c24xx_clkout0;
  26. extern struct clk s3c24xx_clkout1;
  27. extern struct clk s3c24xx_uclk;
  28. /* exports for arch/arm/mach-s3c2410
  29. *
  30. * Please DO NOT use these outside of arch/arm/mach-s3c2410
  31. */
  32. extern int s3c24xx_clkcon_enable(struct clk *clk, int enable);
  33. extern int s3c24xx_register_clock(struct clk *clk);
  34. extern int s3c24xx_setup_clocks(unsigned long xtal,
  35. unsigned long fclk,
  36. unsigned long hclk,
  37. unsigned long pclk);