cablePowerDataOperation.c 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /*
  2. * OMAP2430 clock data
  3. *
  4. * Copyright (C) 2005-2009, 2012 Texas Instruments, Inc.
  5. * Copyright (C) 2004-2011 Nokia Corporation
  6. *
  7. * Contacts:
  8. * Richard Woodruff <r-woodruff2@ti.com>
  9. * Paul Walmsley
  10. *
  11. * This program is free software; you can redistribute it and/or modify
  12. * it under the terms of the GNU General Public License version 2 as
  13. * published by the Free Software Foundation.
  14. */
  15. #include <linux/kernel.h>
  16. #include <linux/clk.h>
  17. #include <linux/clk-private.h>
  18. #include <linux/list.h>
  19. #include "soc.h"
  20. #include "iomap.h"
  21. #include "clock.h"
  22. #include "clock2xxx.h"
  23. #include "opp2xxx.h"
  24. #include "cm2xxx.h"
  25. #include "prm2xxx.h"
  26. #include "prm-regbits-24xx.h"
  27. #include "cm-regbits-24xx.h"
  28. #include "sdrc.h"
  29. #include "control.h"
  30. #define OMAP_CM_REGADDR OMAP2430_CM_REGADDR
  31. /*
  32. * 2430 clock tree.
  33. *
  34. * NOTE:In many cases here we are assigning a 'default' parent. In
  35. * many cases the parent is selectable. The set parent calls will
  36. * also switch sources.
  37. *
  38. * Several sources are given initial rates which may be wrong, this will
  39. * be fixed up in the init func.
  40. *
  41. * Things are broadly separated below by clock domains. It is
  42. * noteworthy that most peripherals have dependencies on multiple clock
  43. * domains. Many get their interface clocks from the L4 domain, but get
  44. * functional clocks from fixed sources or other core domain derived
  45. * clocks.
  46. */
  47. DEFINE_CLK_FIXED_RATE(alt_ck, CLK_IS_ROOT, 54000000, 0x0);
  48. DEFINE_CLK_FIXED_RATE(func_32k_ck, CLK_IS_ROOT, 32768, 0x0);
  49. DEFINE_CLK_FIXED_RATE(mcbsp_clks, CLK_IS_ROOT, 0x0, 0x0);
  50. static struct clk osc_ck;
  51. static const struct clk_ops osc_ck_ops = {
  52. .enable = &omap2_enable_osc_ck,
  53. .disable = omap2_disable_osc_ck,
  54. .recalc_rate = &omap2_osc_clk_recalc,
  55. };
  56. static struct clk_hw_omap osc_ck_hw = {
  57. .hw = {
  58. .clk = &osc_ck,
  59. },
  60. };
  61. static struct clk osc_ck = {