icst525.h 983 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * arch/arm/include/asm/hardware/icst525.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 ICST525
  11. * clock generators. See http://www.icst.com/ for more information
  12. * on these devices.
  13. */
  14. #ifndef ASMARM_HARDWARE_ICST525_H
  15. #define ASMARM_HARDWARE_ICST525_H
  16. #include <asm/hardware/icst.h>
  17. unsigned long icst525_hz(const struct icst_params *p, struct icst_vco vco);
  18. struct icst_vco icst525_hz_to_vco(const struct icst_params *p, unsigned long freq);
  19. /*
  20. * ICST525 VCO frequency must be between 10MHz and 200MHz (3V) or 320MHz (5V).
  21. * This frequency is pre-output divider.
  22. */
  23. #define ICST525_VCO_MIN 10000000
  24. #define ICST525_VCO_MAX_3V 200000000
  25. #define ICST525_VCO_MAX_5V 320000000
  26. #endif