icst.h 906 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * arch/arm/include/asm/hardware/icst.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 ICST
  11. * clock generators. See http://www.icst.com/ for more information
  12. * on these devices.
  13. */
  14. #ifndef ASMARM_HARDWARE_ICST_H
  15. #define ASMARM_HARDWARE_ICST_H
  16. struct icst_params {
  17. unsigned long ref;
  18. unsigned long vco_max; /* inclusive */
  19. unsigned long vco_min; /* exclusive */
  20. unsigned short vd_min; /* inclusive */
  21. unsigned short vd_max; /* inclusive */
  22. unsigned char rd_min; /* inclusive */
  23. unsigned char rd_max; /* inclusive */
  24. };
  25. struct icst_vco {
  26. unsigned short v;
  27. unsigned char r;
  28. unsigned char s;
  29. };
  30. #endif