tegra2_dvfs.c 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /*
  2. * arch/arm/mach-tegra/tegra2_dvfs.c
  3. *
  4. * Copyright (C) 2010 Google, Inc.
  5. *
  6. * Author:
  7. * Colin Cross <ccross@google.com>
  8. *
  9. * This software is licensed under the terms of the GNU General Public
  10. * License version 2, as published by the Free Software Foundation, and
  11. * may be copied, distributed, and modified under those terms.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. */
  19. #include <linux/kernel.h>
  20. #include "clock.h"
  21. #include "tegra2_dvfs.h"
  22. static struct dvfs_table virtual_cpu_process_0[] = {
  23. {314000000, 750},
  24. {456000000, 825},
  25. {608000000, 900},
  26. {760000000, 975},
  27. {817000000, 1000},
  28. {912000000, 1050},
  29. {1000000000, 1100},
  30. {0, 0},
  31. };
  32. static struct dvfs_table virtual_cpu_process_1[] = {
  33. {314000000, 750},
  34. {456000000, 825},
  35. {618000000, 900},
  36. {770000000, 975},
  37. {827000000, 1000},
  38. {922000000, 1050},
  39. {1000000000, 1100},
  40. {0, 0},
  41. };
  42. static struct dvfs_table virtual_cpu_process_2[] = {
  43. {494000000, 750},
  44. {675000000, 825},
  45. {817000000, 875},
  46. {922000000, 925},
  47. {1000000000, 975},
  48. {0, 0},
  49. };
  50. static struct dvfs_table virtual_cpu_process_3[] = {
  51. {730000000, 750},
  52. {760000000, 775},
  53. {845000000, 800},
  54. {1000000000, 875},
  55. {0, 0},
  56. };
  57. struct dvfs tegra_dvfs_virtual_cpu_dvfs = {
  58. .reg_id = "vdd_cpu",
  59. .process_id_table = {
  60. {
  61. .process_id = 0,
  62. .table = virtual_cpu_process_0,
  63. },
  64. {
  65. .process_id = 1,
  66. .table = virtual_cpu_process_1,
  67. },
  68. {
  69. .process_id = 2,
  70. .table = virtual_cpu_process_2,
  71. },
  72. {
  73. .process_id = 3,
  74. .table = virtual_cpu_process_3,
  75. },
  76. },
  77. .process_id_table_length = 4,
  78. .cpu = 1,
  79. };