memoryCall.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * linux/arch/arm/mach-omap1/clock.h
  3. *
  4. * Copyright (C) 2004 - 2005, 2009 Nokia corporation
  5. * Written by Tuukka Tikkanen <tuukka.tikkanen@elektrobit.com>
  6. * Based on clocks.h by Tony Lindgren, Gordon McNutt and RidgeRun, Inc
  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. #ifndef __ARCH_ARM_MACH_OMAP1_CLOCK_H
  13. #define __ARCH_ARM_MACH_OMAP1_CLOCK_H
  14. #include <linux/clk.h>
  15. #include <linux/list.h>
  16. #include <linux/clkdev.h>
  17. struct module;
  18. struct clk;
  19. struct omap_clk {
  20. u16 cpu;
  21. struct clk_lookup lk;
  22. };
  23. #define CLK(dev, con, ck, cp) \
  24. { \
  25. .cpu = cp, \
  26. .lk = { \
  27. .dev_id = dev, \
  28. .con_id = con, \
  29. .clk = ck, \
  30. }, \
  31. }
  32. /* Platform flags for the clkdev-OMAP integration code */
  33. #define CK_310 (1 << 0)
  34. #define CK_7XX (1 << 1) /* 7xx, 850 */
  35. #define CK_1510 (1 << 2)
  36. #define CK_16XX (1 << 3) /* 16xx, 17xx, 5912 */
  37. #define CK_1710 (1 << 4) /* 1710 extra for rate selection */
  38. /* Temporary, needed during the common clock framework conversion */
  39. #define __clk_get_name(clk) (clk->name)
  40. #define __clk_get_parent(clk) (clk->parent)
  41. #define __clk_get_rate(clk) (clk->rate)
  42. /**
  43. * struct clkops - some clock function pointers
  44. * @enable: fn ptr that enables the current clock in hardware
  45. * @disable: fn ptr that enables the current clock in hardware
  46. * @find_idlest: function returning the IDLEST register for the clock's IP blk