clock.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /*
  2. * (C) Copyright 2009 Samsung Electronics
  3. * Minkyu Kang <mk7.kang@samsung.com>
  4. * Heungjun Kim <riverful.kim@samsung.com>
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License as
  8. * published by the Free Software Foundation; either version 2 of
  9. * the License, or (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  19. * MA 02111-1307 USA
  20. *
  21. */
  22. #ifndef __ASM_ARM_ARCH_CLOCK_H_
  23. #define __ASM_ARM_ARCH_CLOCK_H_
  24. #ifndef __ASSEMBLY__
  25. struct s5pc100_clock {
  26. unsigned int apll_lock;
  27. unsigned int mpll_lock;
  28. unsigned int epll_lock;
  29. unsigned int hpll_lock;
  30. unsigned char res1[0xf0];
  31. unsigned int apll_con;
  32. unsigned int mpll_con;
  33. unsigned int epll_con;
  34. unsigned int hpll_con;
  35. unsigned char res2[0xf0];
  36. unsigned int src0;
  37. unsigned int src1;
  38. unsigned int src2;
  39. unsigned int src3;
  40. unsigned char res3[0xf0];
  41. unsigned int div0;
  42. unsigned int div1;
  43. unsigned int div2;
  44. unsigned int div3;
  45. unsigned int div4;
  46. unsigned char res4[0x1ec];
  47. unsigned int gate_d00;
  48. unsigned int gate_d01;
  49. unsigned int gate_d02;
  50. unsigned char res5[0x54];
  51. unsigned int gate_sclk0;
  52. unsigned int gate_sclk1;
  53. };
  54. struct s5pc110_clock {
  55. unsigned int apll_lock;
  56. unsigned char res1[0x4];
  57. unsigned int mpll_lock;
  58. unsigned char res2[0x4];
  59. unsigned int epll_lock;
  60. unsigned char res3[0xc];
  61. unsigned int vpll_lock;
  62. unsigned char res4[0xdc];
  63. unsigned int apll_con;
  64. unsigned char res5[0x4];
  65. unsigned int mpll_con;
  66. unsigned char res6[0x4];
  67. unsigned int epll_con;
  68. unsigned char res7[0xc];
  69. unsigned int vpll_con;
  70. unsigned char res8[0xdc];
  71. unsigned int src0;
  72. unsigned int src1;
  73. unsigned int src2;
  74. unsigned int src3;
  75. unsigned char res9[0xf0];
  76. unsigned int div0;
  77. unsigned int div1;
  78. unsigned int div2;
  79. unsigned int div3;
  80. unsigned int div4;
  81. unsigned char res10[0x1ec];
  82. unsigned int gate_d00;
  83. unsigned int gate_d01;
  84. unsigned int gate_d02;
  85. unsigned char res11[0x54];
  86. unsigned int gate_sclk0;
  87. unsigned int gate_sclk1;
  88. };
  89. #endif
  90. #endif