preliminaryDataProcessing.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. * opp2xxx.h - macros for old-style OMAP2xxx "OPP" definitions
  3. *
  4. * Copyright (C) 2005-2009 Texas Instruments, Inc.
  5. * Copyright (C) 2004-2009 Nokia Corporation
  6. *
  7. * Richard Woodruff <r-woodruff2@ti.com>
  8. *
  9. * The OMAP2 processor can be run at several discrete 'PRCM configurations'.
  10. * These configurations are characterized by voltage and speed for clocks.
  11. * The device is only validated for certain combinations. One way to express
  12. * these combinations is via the 'ratio's' which the clocks operate with
  13. * respect to each other. These ratio sets are for a given voltage/DPLL
  14. * setting. All configurations can be described by a DPLL setting and a ratio
  15. * There are 3 ratio sets for the 2430 and X ratio sets for 2420.
  16. *
  17. * 2430 differs from 2420 in that there are no more phase synchronizers used.
  18. * They both have a slightly different clock domain setup. 2420(iva1,dsp) vs
  19. * 2430 (iva2.1, NOdsp, mdm)
  20. *
  21. * XXX Missing voltage data.
  22. *
  23. * THe format described in this file is deprecated. Once a reasonable
  24. * OPP API exists, the data in this file should be converted to use it.
  25. *
  26. * This is technically part of the OMAP2xxx clock code.
  27. */
  28. #ifndef __ARCH_ARM_MACH_OMAP2_OPP2XXX_H
  29. #define __ARCH_ARM_MACH_OMAP2_OPP2XXX_H
  30. /**
  31. * struct prcm_config - define clock rates on a per-OPP basis (24xx)
  32. *
  33. * Key dividers which make up a PRCM set. Ratio's for a PRCM are mandated.
  34. * xtal_speed, dpll_speed, mpu_speed, CM_CLKSEL_MPU,CM_CLKSEL_DSP
  35. * CM_CLKSEL_GFX, CM_CLKSEL1_CORE, CM_CLKSEL1_PLL CM_CLKSEL2_PLL, CM_CLKSEL_MDM
  36. *
  37. * This is deprecated. As soon as we have a decent OPP API, we should
  38. * move all this stuff to it.
  39. */
  40. struct prcm_config {
  41. unsigned long xtal_speed; /* crystal rate */
  42. unsigned long dpll_speed; /* dpll: out*xtal*M/(N-1)table_recalc */
  43. unsigned long mpu_speed; /* speed of MPU */
  44. unsigned long cm_clksel_mpu; /* mpu divider */
  45. unsigned long cm_clksel_dsp; /* dsp+iva1 div(2420), iva2.1(2430) */
  46. unsigned long cm_clksel_gfx; /* gfx dividers */
  47. unsigned long cm_clksel1_core; /* major subsystem dividers */
  48. unsigned long cm_clksel1_pll; /* m,n */
  49. unsigned long cm_clksel2_pll; /* dpllx1 or x2 out */
  50. unsigned long cm_clksel_mdm; /* modem dividers 2430 only */
  51. unsigned long base_sdrc_rfr; /* base refresh timing for a set */
  52. unsigned short flags;
  53. };