clock.h 687 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * TI DaVinci clock definitions
  3. *
  4. * Copyright (C) 2006 Texas Instruments.
  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. #ifndef __ARCH_ARM_DAVINCI_CLOCK_H
  11. #define __ARCH_ARM_DAVINCI_CLOCK_H
  12. struct clk {
  13. struct list_head node;
  14. struct module *owner;
  15. const char *name;
  16. unsigned int *rate;
  17. int id;
  18. __s8 usecount;
  19. __u8 flags;
  20. __u8 lpsc;
  21. };
  22. /* Clock flags */
  23. #define RATE_CKCTL 1
  24. #define RATE_FIXED 2
  25. #define RATE_PROPAGATES 4
  26. #define VIRTUAL_CLOCK 8
  27. #define ALWAYS_ENABLED 16
  28. #define ENABLE_REG_32BIT 32
  29. #endif