clock.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /*
  2. * Copyright (C) ST-Ericsson SA 2009
  3. *
  4. * See file CREDITS for list of people who contributed to this
  5. * project.
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License as
  9. * published by the Free Software Foundation; either version 2 of
  10. * the License, or (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  20. * MA 02111-1307 USA
  21. */
  22. #ifndef __ASM_ARCH_CLOCK
  23. #define __ASM_ARCH_CLOCK
  24. struct prcmu {
  25. unsigned int armclkfix_mgt;
  26. unsigned int armclk_mgt;
  27. unsigned int svammdspclk_mgt;
  28. unsigned int siammdspclk_mgt;
  29. unsigned int reserved;
  30. unsigned int sgaclk_mgt;
  31. unsigned int uartclk_mgt;
  32. unsigned int msp02clk_mgt;
  33. unsigned int i2cclk_mgt;
  34. unsigned int sdmmcclk_mgt;
  35. unsigned int slimclk_mgt;
  36. unsigned int per1clk_mgt;
  37. unsigned int per2clk_mgt;
  38. unsigned int per3clk_mgt;
  39. unsigned int per5clk_mgt;
  40. unsigned int per6clk_mgt;
  41. unsigned int per7clk_mgt;
  42. unsigned int lcdclk_mgt;
  43. unsigned int reserved1;
  44. unsigned int bmlclk_mgt;
  45. unsigned int hsitxclk_mgt;
  46. unsigned int hsirxclk_mgt;
  47. unsigned int hdmiclk_mgt;
  48. unsigned int apeatclk_mgt;
  49. unsigned int apetraceclk_mgt;
  50. unsigned int mcdeclk_mgt;
  51. unsigned int ipi2cclk_mgt;
  52. unsigned int dsialtclk_mgt;
  53. unsigned int spare2clk_mgt;
  54. unsigned int dmaclk_mgt;
  55. unsigned int b2r2clk_mgt;
  56. unsigned int tvclk_mgt;
  57. unsigned int unused[82];
  58. unsigned int tcr;
  59. unsigned int unused1[23];
  60. unsigned int ape_softrst;
  61. };
  62. extern void u8500_clock_enable(int periph, int kern, int cluster);
  63. static inline void u8500_prcmu_enable(unsigned int *reg)
  64. {
  65. writel(readl(reg) | (1 << 8), reg);
  66. }
  67. #endif /* __ASM_ARCH_CLOCK */