0010-reset-mediatek-mt2701-reset-controller-dt-binding-fi.patch 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. From 8d134cbe750b59d15c591622d81e2e9daa09f0c4 Mon Sep 17 00:00:00 2001
  2. From: Shunli Wang <[email protected]>
  3. Date: Tue, 5 Jan 2016 14:30:21 +0800
  4. Subject: [PATCH 10/53] reset: mediatek: mt2701 reset controller dt-binding
  5. file
  6. Dt-binding file about reset controller is used to provide
  7. kinds of definition, which is referenced by dts file and
  8. IC-specified reset controller driver code.
  9. Signed-off-by: Shunli Wang <[email protected]>
  10. ---
  11. .../dt-bindings/reset-controller/mt2701-resets.h | 74 ++++++++++++++++++++
  12. 1 file changed, 74 insertions(+)
  13. create mode 100644 include/dt-bindings/reset-controller/mt2701-resets.h
  14. diff --git a/include/dt-bindings/reset-controller/mt2701-resets.h b/include/dt-bindings/reset-controller/mt2701-resets.h
  15. new file mode 100644
  16. index 0000000..00efeb0
  17. --- /dev/null
  18. +++ b/include/dt-bindings/reset-controller/mt2701-resets.h
  19. @@ -0,0 +1,74 @@
  20. +/*
  21. + * Copyright (c) 2015 MediaTek, Shunli Wang <[email protected]>
  22. + *
  23. + * This program is free software; you can redistribute it and/or modify
  24. + * it under the terms of the GNU General Public License version 2 as
  25. + * published by the Free Software Foundation.
  26. + *
  27. + * This program is distributed in the hope that it will be useful,
  28. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  29. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  30. + * GNU General Public License for more details.
  31. + */
  32. +
  33. +#ifndef _DT_BINDINGS_RESET_CONTROLLER_MT2701
  34. +#define _DT_BINDINGS_RESET_CONTROLLER_MT2701
  35. +
  36. +/* INFRACFG resets */
  37. +#define MT2701_INFRA_EMI_REG_RST 0
  38. +#define MT2701_INFRA_DRAMC0_A0_RST 1
  39. +#define MT2701_INFRA_FHCTL_RST 2
  40. +#define MT2701_INFRA_APCIRQ_EINT_RST 3
  41. +#define MT2701_INFRA_APXGPT_RST 4
  42. +#define MT2701_INFRA_SCPSYS_RST 5
  43. +#define MT2701_INFRA_KP_RST 6
  44. +#define MT2701_INFRA_PMIC_WRAP_RST 7
  45. +#define MT2701_INFRA_MIPI_RST 8
  46. +#define MT2701_INFRA_IRRX_RST 9
  47. +#define MT2701_INFRA_CEC_RST 10
  48. +#define MT2701_INFRA_EMI_RST 32
  49. +#define MT2701_INFRA_DRAMC0_RST 34
  50. +#define MT2701_INFRA_TRNG_RST 37
  51. +#define MT2701_INFRA_SYSIRQ_RST 38
  52. +
  53. +/* PERICFG resets */
  54. +#define MT2701_PERI_UART0_SW_RST 0
  55. +#define MT2701_PERI_UART1_SW_RST 1
  56. +#define MT2701_PERI_UART2_SW_RST 2
  57. +#define MT2701_PERI_UART3_SW_RST 3
  58. +#define MT2701_PERI_GCPU_SW_RST 5
  59. +#define MT2701_PERI_BTIF_SW_RST 6
  60. +#define MT2701_PERI_PWM_SW_RST 8
  61. +#define MT2701_PERI_AUXADC_SW_RST 10
  62. +#define MT2701_PERI_DMA_SW_RST 11
  63. +#define MT2701_PERI_NFI_SW_RST 14
  64. +#define MT2701_PERI_NLI_SW_RST 15
  65. +#define MT2701_PERI_THERM_SW_RST 16
  66. +#define MT2701_PERI_MSDC2_SW_RST 17
  67. +#define MT2701_PERI_MSDC0_SW_RST 19
  68. +#define MT2701_PERI_MSDC1_SW_RST 20
  69. +#define MT2701_PERI_I2C0_SW_RST 22
  70. +#define MT2701_PERI_I2C1_SW_RST 23
  71. +#define MT2701_PERI_I2C2_SW_RST 24
  72. +#define MT2701_PERI_I2C3_SW_RST 25
  73. +#define MT2701_PERI_USB_SW_RST 28
  74. +#define MT2701_PERI_ETH_SW_RST 29
  75. +#define MT2701_PERI_SPI0_SW_RST 33
  76. +
  77. +/* TOPRGU resets */
  78. +#define MT2701_TOPRGU_INFRA_RST 0
  79. +#define MT2701_TOPRGU_MM_RST 1
  80. +#define MT2701_TOPRGU_MFG_RST 2
  81. +#define MT2701_TOPRGU_ETHDMA_RST 3
  82. +#define MT2701_TOPRGU_VDEC_RST 4
  83. +#define MT2701_TOPRGU_VENC_IMG_RST 5
  84. +#define MT2701_TOPRGU_DDRPHY_RST 6
  85. +#define MT2701_TOPRGU_MD_RST 7
  86. +#define MT2701_TOPRGU_INFRA_AO_RST 8
  87. +#define MT2701_TOPRGU_CONN_RST 9
  88. +#define MT2701_TOPRGU_APMIXED_RST 10
  89. +#define MT2701_TOPRGU_HIFSYS_RST 11
  90. +#define MT2701_TOPRGU_CONN_MCU_RST 12
  91. +#define MT2701_TOPRGU_BDP_DISP_RST 13
  92. +
  93. +#endif /* _DT_BINDINGS_RESET_CONTROLLER_MT2701 */
  94. --
  95. 1.7.10.4