dataMonitoring.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /*
  2. *
  3. * arch/arm/mach-u300/include/mach/syscon.h
  4. *
  5. *
  6. * Copyright (C) 2008-2012 ST-Ericsson AB
  7. *
  8. * Author: Rickard Andersson <rickard.andersson@stericsson.com>
  9. */
  10. #ifndef __MACH_SYSCON_H
  11. #define __MACH_SYSCON_H
  12. /*
  13. * All register defines for SYSCON registers that concerns individual
  14. * block clocks and reset lines are registered here. This is because
  15. * we don't want any other file to try to fool around with this stuff.
  16. */
  17. /* APP side SYSCON registers */
  18. /* TODO: this is incomplete. Add all from asic_syscon_map.h eventually. */
  19. /* CLK Control Register 16bit (R/W) */
  20. #define U300_SYSCON_CCR (0x0000)
  21. #define U300_SYSCON_CCR_I2S1_USE_VCXO (0x0040)
  22. #define U300_SYSCON_CCR_I2S0_USE_VCXO (0x0020)
  23. #define U300_SYSCON_CCR_TURN_VCXO_ON (0x0008)
  24. #define U300_SYSCON_CCR_CLKING_PERFORMANCE_MASK (0x0007)
  25. #define U300_SYSCON_CCR_CLKING_PERFORMANCE_LOW_POWER (0x04)
  26. #define U300_SYSCON_CCR_CLKING_PERFORMANCE_LOW (0x03)
  27. #define U300_SYSCON_CCR_CLKING_PERFORMANCE_INTERMEDIATE (0x02)
  28. #define U300_SYSCON_CCR_CLKING_PERFORMANCE_HIGH (0x01)
  29. #define U300_SYSCON_CCR_CLKING_PERFORMANCE_BEST (0x00)
  30. /* CLK Status Register 16bit (R/W) */
  31. #define U300_SYSCON_CSR (0x0004)
  32. #define U300_SYSCON_CSR_PLL208_LOCK_IND (0x0002)
  33. #define U300_SYSCON_CSR_PLL13_LOCK_IND (0x0001)
  34. /* Reset lines for SLOW devices 16bit (R/W) */
  35. #define U300_SYSCON_RSR (0x0014)
  36. #define U300_SYSCON_RSR_PPM_RESET_EN (0x0200)
  37. #define U300_SYSCON_RSR_ACC_TMR_RESET_EN (0x0100)
  38. #define U300_SYSCON_RSR_APP_TMR_RESET_EN (0x0080)
  39. #define U300_SYSCON_RSR_RTC_RESET_EN (0x0040)
  40. #define U300_SYSCON_RSR_KEYPAD_RESET_EN (0x0020)
  41. #define U300_SYSCON_RSR_GPIO_RESET_EN (0x0010)
  42. #define U300_SYSCON_RSR_EH_RESET_EN (0x0008)
  43. #define U300_SYSCON_RSR_BTR_RESET_EN (0x0004)
  44. #define U300_SYSCON_RSR_UART_RESET_EN (0x0002)
  45. #define U300_SYSCON_RSR_SLOW_BRIDGE_RESET_EN (0x0001)
  46. /* Reset lines for FAST devices 16bit (R/W) */
  47. #define U300_SYSCON_RFR (0x0018)
  48. #define U300_SYSCON_RFR_UART1_RESET_ENABLE (0x0080)
  49. #define U300_SYSCON_RFR_SPI_RESET_ENABLE (0x0040)
  50. #define U300_SYSCON_RFR_MMC_RESET_ENABLE (0x0020)
  51. #define U300_SYSCON_RFR_PCM_I2S1_RESET_ENABLE (0x0010)
  52. #define U300_SYSCON_RFR_PCM_I2S0_RESET_ENABLE (0x0008)
  53. #define U300_SYSCON_RFR_I2C1_RESET_ENABLE (0x0004)
  54. #define U300_SYSCON_RFR_I2C0_RESET_ENABLE (0x0002)
  55. #define U300_SYSCON_RFR_FAST_BRIDGE_RESET_ENABLE (0x0001)
  56. /* Reset lines for the rest of the peripherals 16bit (R/W) */
  57. #define U300_SYSCON_RRR (0x001c)
  58. #define U300_SYSCON_RRR_CDS_RESET_EN (0x4000)
  59. #define U300_SYSCON_RRR_ISP_RESET_EN (0x2000)
  60. #define U300_SYSCON_RRR_INTCON_RESET_EN (0x1000)
  61. #define U300_SYSCON_RRR_MSPRO_RESET_EN (0x0800)
  62. #define U300_SYSCON_RRR_XGAM_RESET_EN (0x0100)
  63. #define U300_SYSCON_RRR_XGAM_VC_SYNC_RESET_EN (0x0080)
  64. #define U300_SYSCON_RRR_NANDIF_RESET_EN (0x0040)
  65. #define U300_SYSCON_RRR_EMIF_RESET_EN (0x0020)
  66. #define U300_SYSCON_RRR_DMAC_RESET_EN (0x0010)