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

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