icst307.h 981 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * arch/arm/include/asm/hardware/icst307.h
  3. *
  4. * Copyright (C) 2003 Deep Blue Solutions, Ltd, All Rights Reserved.
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. *
  10. * Support functions for calculating clocks/divisors for the ICS307
  11. * clock generators. See http://www.icst.com/ for more information
  12. * on these devices.
  13. *
  14. * This file is similar to the icst525.h file
  15. */
  16. #ifndef ASMARM_HARDWARE_ICST307_H
  17. #define ASMARM_HARDWARE_ICST307_H
  18. #include <asm/hardware/icst.h>
  19. unsigned long icst307_hz(const struct icst_params *p, struct icst_vco vco);
  20. struct icst_vco icst307_hz_to_vco(const struct icst_params *p, unsigned long freq);
  21. /*
  22. * ICST307 VCO frequency must be between 6MHz and 200MHz (3.3 or 5V).
  23. * This frequency is pre-output divider.
  24. */
  25. #define ICST307_VCO_MIN 6000000
  26. #define ICST307_VCO_MAX 200000000
  27. #endif