/kern_oII/arch/arm/mach-msm/clock.h

http://omnia2droid.googlecode.com/ · C++ Header · 48 lines · 24 code · 9 blank · 15 comment · 0 complexity · dd1f5f1d0e97bb76909072092071784f MD5 · raw file

  1. /* arch/arm/mach-msm/clock.h
  2. *
  3. * Copyright (C) 2007 Google, Inc.
  4. * Copyright (c) 2007 QUALCOMM Incorporated
  5. *
  6. * This software is licensed under the terms of the GNU General Public
  7. * License version 2, as published by the Free Software Foundation, and
  8. * may be copied, distributed, and modified under those terms.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. */
  16. #ifndef __ARCH_ARM_MACH_MSM_CLOCK_H
  17. #define __ARCH_ARM_MACH_MSM_CLOCK_H
  18. #include <linux/list.h>
  19. #define CLKFLAG_INVERT 0x00000001
  20. #define CLKFLAG_NOINVERT 0x00000002
  21. #define CLKFLAG_NONEST 0x00000004
  22. #define CLKFLAG_NORESET 0x00000008
  23. #define CLK_FIRST_AVAILABLE_FLAG 0x00000100
  24. #define CLKFLAG_USE_MIN_MAX_TO_SET 0x00000200
  25. #define CLKFLAG_AUTO_OFF 0x00000400
  26. struct clk {
  27. uint32_t id;
  28. uint32_t count;
  29. uint32_t flags;
  30. const char *name;
  31. struct list_head list;
  32. struct device *dev;
  33. };
  34. #define A11S_CLK_CNTL_ADDR (MSM_CSR_BASE + 0x100)
  35. #define A11S_CLK_SEL_ADDR (MSM_CSR_BASE + 0x104)
  36. #define A11S_VDD_SVS_PLEVEL_ADDR (MSM_CSR_BASE + 0x124)
  37. extern struct clk msm_clocks[];
  38. extern unsigned msm_num_clocks;
  39. #endif