usb.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. /*
  2. * Copyright (c) 2011 The Chromium OS Authors.
  3. * Copyright (c) 2013 NVIDIA Corporation
  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 _TEGRA114_USB_H_
  23. #define _TEGRA114_USB_H_
  24. /* USB Controller (USBx_CONTROLLER_) regs */
  25. struct usb_ctlr {
  26. /* 0x000 */
  27. uint id;
  28. uint reserved0;
  29. uint host;
  30. uint device;
  31. /* 0x010 */
  32. uint txbuf;
  33. uint rxbuf;
  34. uint reserved1[2];
  35. /* 0x020 */
  36. uint reserved2[56];
  37. /* 0x100 */
  38. u16 cap_length;
  39. u16 hci_version;
  40. uint hcs_params;
  41. uint hcc_params;
  42. uint reserved3[5];
  43. /* 0x120 */
  44. uint dci_version;
  45. uint dcc_params;
  46. uint reserved4[2];
  47. /* 0x130 */
  48. uint usb_cmd;
  49. uint usb_sts;
  50. uint usb_intr;
  51. uint frindex;
  52. /* 0x140 */
  53. uint reserved5;
  54. uint periodic_list_base;
  55. uint async_list_addr;
  56. uint reserved5_1;
  57. /* 0x150 */
  58. uint burst_size;
  59. uint tx_fill_tuning;
  60. uint reserved6;
  61. uint icusb_ctrl;
  62. /* 0x160 */
  63. uint ulpi_viewport;
  64. uint reserved7[3];
  65. /* 0x170 */
  66. uint reserved;
  67. uint port_sc1;
  68. uint reserved8[6];
  69. /* 0x190 */
  70. uint reserved9[8];
  71. /* 0x1b0 */
  72. uint reserved10;
  73. uint hostpc1_devlc;
  74. uint reserved10_1[2];
  75. /* 0x1c0 */
  76. uint reserved10_2[4];
  77. /* 0x1d0 */
  78. uint reserved10_3[4];
  79. /* 0x1e0 */
  80. uint reserved10_4[4];
  81. /* 0x1f0 */
  82. uint reserved10_5;
  83. uint otgsc;
  84. uint usb_mode;
  85. uint reserved10_6;
  86. /* 0x200 */
  87. uint endpt_nak;
  88. uint endpt_nak_enable;
  89. uint endpt_setup_stat;
  90. uint reserved11_1[0x7D];
  91. /* 0x400 */
  92. uint susp_ctrl;
  93. uint phy_vbus_sensors;
  94. uint phy_vbus_wakeup_id;
  95. uint phy_alt_vbus_sys;
  96. /* 0x410 */
  97. uint usb1_legacy_ctrl;
  98. uint reserved12[3];
  99. /* 0x420 */
  100. uint reserved13[56];
  101. /* 0x500 */
  102. uint reserved14[64 * 3];
  103. /* 0x800 */
  104. uint utmip_pll_cfg0;
  105. uint utmip_pll_cfg1;
  106. uint utmip_xcvr_cfg0;
  107. uint utmip_bias_cfg0;
  108. /* 0x810 */
  109. uint utmip_hsrx_cfg0;
  110. uint utmip_hsrx_cfg1;
  111. uint utmip_fslsrx_cfg0;
  112. uint utmip_fslsrx_cfg1;
  113. /* 0x820 */
  114. uint utmip_tx_cfg0;
  115. uint utmip_misc_cfg0;
  116. uint utmip_misc_cfg1;
  117. uint utmip_debounce_cfg0;
  118. /* 0x830 */
  119. uint utmip_bat_chrg_cfg0;
  120. uint utmip_spare_cfg0;
  121. uint utmip_xcvr_cfg1;
  122. uint utmip_bias_cfg1;
  123. };
  124. /* USB2D_HOSTPC1_DEVLC_0 */
  125. #define PTS_SHIFT 29
  126. #define PTS_MASK (0x7U << PTS_SHIFT)
  127. #define STS (1 << 28)
  128. #endif /* _TEGRA114_USB_H_ */